Rebuild the page's controls with Carbon web components (#70) #71
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
epic:E1-foundation
epic:E2-correct-metrics
epic:E3-fast-jobs
epic:E4-cli
epic:E5-web-ui
epic:E6-history
good first issue
help wanted
invalid
question
sprint-tracking
story
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/screener!71
Loading…
Reference in a new issue
No description provided.
Delete branch "70-carbon-controls"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🤖 Claude: Closes #70
The page's controls are now IBM Carbon web components, in Carbon's light (g10) and dark (g100) themes, chosen by the system setting. The #67 layout is unchanged.
What changed
cds-button(primary, ghost, tertiary),cds-checkboxfor sectors,cds-number-inputfor market cap, acds-sliderwithvalue-upper(the two-handle slider) each for ROTC and EY,cds-inline-notificationin the notice band, andcds-progress-barin the pipeline steps. They are registered inweb/carbon.ts.<table>, now with Carbon's data table classes (--sm --sort --zebra) and Carbon's sort buttons. The sticky header is our ownposition: sticky, because Carbon's sticky variant turns the table into blocks. Our sorting and re-ranking are unchanged.@carbon/styles' compiled CSS is 1.2 MB and loads IBM Plex from IBM's CDN, which would undo #67's self-hosted fonts. Soscripts/carbon-css.tsgeneratesweb/carbon.cssfrom it with only what the page uses: Carbon's:roottokens, the g10/g100 themes and the data table rules (81 KB). Rerun the script after upgrading@carbon/styles.web/style.cssnow handles layout only and uses only Carbon tokens.postinstall(ibmtelemetry) is blocked because the packages aren't intrustedDependencies(bun addreported "Blocked 21 postinstalls"). CLAUDE.md documentsIBM_TELEMETRY_DISABLED=true..impeccable/design.jsonand the page brief now describe the Carbon-based system. CLAUDE.md mentions the Carbon packages.Things worth a look
The two-handle slider (unstable) works with mouse and keyboard in Chrome and in happy-dom. Three things to know about it:
0as "no upper handle".A metric with fewer than two distinct values disables its slider. Before, only zero values did, and with one value the slider couldn't filter anything anyway.
The slider hides its end labels. ROTC runs to 418,220%, which overflowed the rail. The Min/Max readouts under each track still say "any" at the ends, and the handle tooltips show values.
The filter rail is 304px instead of 264px. Carbon's number input is at least 9.375rem wide, so two side by side need the room.
A step's Run button is named "Run " through visually hidden text. Carbon doesn't pass
aria-labelthrough to its inner button.Carbon logs a one-time
[@carbon/feature-flags]notice aboutenable-v12-autoalign, in tests and in the browser console. I left the flag alone.Definition of Done
Acceptance criteria met and demonstrated:
bun testpasses: 329 pass, 0 fail, three runs in a row. First task done: Lit components work in happy-dom, with one catch. happy-dom drops the attributes of elements upgraded after the fact, so the test importsweb/carbon.tsbefore any markup.test/app.test.tsdrives the real components: clicks inside their shadow roots, typing into the number inputs, and arrow keys on the slider handles.bun checkis clean, andbun fmt --check --changed=origin/mainpasses.web/carbon.cssis generated, so it's in the fmtignorePatterns.Runs end to end on real data:
bun run webagainst the localcompany_facts.db(1,391 companies). In Chrome:fetchstubbed in the page, so no job ran).I didn't start a real pipeline run from the page.
Stand-up posted on the milestone tracking issue when the story started and when this PR opened. I missed the start-of-story stand-up again; the ready-for-review one is posted on #51.
Open product questions: none new.
🤖 Generated with Claude Code
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
Security
View full report
Code review
No issues found. Checked for bugs and CLAUDE.md compliance.
/review
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.