-
Notifications
You must be signed in to change notification settings - Fork 44
feat: Add is_extended_promotional column to all component tables #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,7 @@ export const bjtTransistorTableSpec: DerivedTableSpec<BJTTransistor> = { | |
| { name: "temperature_range", type: "text" }, | ||
| { name: "is_basic", type: "boolean" }, | ||
| { name: "is_preferred", type: "boolean" }, | ||
| { name: "is_extended_promotional", type: "boolean" }, | ||
| ], | ||
| listCandidateComponents(db: KyselyDatabaseInstance) { | ||
| return db | ||
|
|
@@ -74,6 +75,7 @@ export const bjtTransistorTableSpec: DerivedTableSpec<BJTTransistor> = { | |
| in_stock: Boolean((c.stock || 0) > 0), | ||
| is_basic: Boolean(c.basic), | ||
| is_preferred: Boolean(c.preferred), | ||
| is_extended_promotional: Boolean(c.extended_promotional), | ||
| package: c.package || "", | ||
| current_gain: current_gain, | ||
|
Comment on lines
75
to
80
|
||
| collector_current: collector_current, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,7 @@ export const boostConverterTableSpec: DerivedTableSpec<BoostConverter> = { | |
| { name: "number_of_outputs", type: "integer" }, | ||
| { name: "is_basic", type: "boolean" }, | ||
| { name: "is_preferred", type: "boolean" }, | ||
| { name: "is_extended_promotional", type: "boolean" }, | ||
| ], | ||
| listCandidateComponents: (db) => | ||
| db | ||
|
|
@@ -117,6 +118,7 @@ export const boostConverterTableSpec: DerivedTableSpec<BoostConverter> = { | |
| in_stock: c.stock > 0, | ||
| is_basic: Boolean(c.basic), | ||
| is_preferred: Boolean(c.preferred), | ||
| is_extended_promotional: Boolean(c.extended_promotional), | ||
| package: c.package || "", | ||
| input_voltage_min: inputMin, | ||
|
Comment on lines
119
to
123
|
||
| input_voltage_max: inputMax, | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -32,6 +32,7 @@ export const buckBoostConverterTableSpec: DerivedTableSpec<BuckBoostConverter> = | |||||
| { name: "number_of_outputs", type: "integer" }, | ||||||
| { name: "is_basic", type: "boolean" }, | ||||||
| { name: "is_preferred", type: "boolean" }, | ||||||
| { name: "is_extended_promotional", type: "boolean" }, | ||||||
| ], | ||||||
|
||||||
| ], | |
| ], |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,7 @@ export const fpcConnectorTableSpec: DerivedTableSpec<FpcConnector> = { | |
| { name: "locking_feature", type: "text" }, | ||
| { name: "is_basic", type: "boolean" }, | ||
| { name: "is_preferred", type: "boolean" }, | ||
| { name: "is_extended_promotional", type: "boolean" }, | ||
| ], | ||
| listCandidateComponents(db: KyselyDatabaseInstance) { | ||
| return db | ||
|
|
@@ -55,6 +56,7 @@ export const fpcConnectorTableSpec: DerivedTableSpec<FpcConnector> = { | |
| in_stock: Boolean((c.stock || 0) > 0), | ||
| is_basic: Boolean(c.basic), | ||
| is_preferred: Boolean(c.preferred), | ||
| is_extended_promotional: Boolean(c.extended_promotional), | ||
| pitch_mm: parseNum(attrs["Pitch"]), | ||
| number_of_contacts: isNaN(contacts) ? null : contacts, | ||
| contact_type: attrs["Contact Type"] || null, | ||
|
Comment on lines
57
to
62
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,6 +68,7 @@ export const fpgaTableSpec: DerivedTableSpec<FPGA> = { | |
| { name: "logic_gates", type: "real" }, | ||
| { name: "is_basic", type: "boolean" }, | ||
| { name: "is_preferred", type: "boolean" }, | ||
| { name: "is_extended_promotional", type: "boolean" }, | ||
| ], | ||
| listCandidateComponents: (db) => | ||
| db | ||
|
|
@@ -99,6 +100,7 @@ export const fpgaTableSpec: DerivedTableSpec<FPGA> = { | |
| in_stock: Boolean((c.stock ?? 0) > 0), | ||
| is_basic: Boolean(c.basic), | ||
| is_preferred: Boolean(c.preferred), | ||
| is_extended_promotional: Boolean(c.extended_promotional), | ||
| package: extra?.package ?? c.package ?? "", | ||
| type: attrs["Type"] ?? null, | ||
|
Comment on lines
101
to
105
|
||
| logic_array_blocks: parseNumericValue(attrs["Logic Array Blocks"]), | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ export const fuseTableSpec: DerivedTableSpec<Fuse> = { | |
| { name: "is_resettable", type: "boolean" }, | ||
| { name: "is_basic", type: "boolean" }, | ||
| { name: "is_preferred", type: "boolean" }, | ||
| { name: "is_extended_promotional", type: "boolean" }, | ||
| ], | ||
| listCandidateComponents(db: KyselyDatabaseInstance) { | ||
| return db | ||
|
|
@@ -90,6 +91,7 @@ export const fuseTableSpec: DerivedTableSpec<Fuse> = { | |
| in_stock: Boolean((c.stock || 0) > 0), | ||
| is_basic: Boolean(c.basic), | ||
| is_preferred: Boolean(c.preferred), | ||
| is_extended_promotional: Boolean(c.extended_promotional), | ||
| current_rating: current_rating as number, | ||
| voltage_rating: voltage_rating as number, | ||
| response_time, | ||
|
Comment on lines
92
to
97
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new
is_extended_promotionalfield line is mis-indented compared to the surrounding object literal.bun run format:check(Biome) will fail unless the file is formatted; please run the formatter (or fix indentation) before merging.