Skip to content

feat(web): migrate workspace people + billing off bespoke CSS (migration phase 3, surface 1) - #787

Merged
Zach Dunn (zachdunn) merged 2 commits into
mainfrom
feat/shadcn-phase-3-people-billing
Aug 23, 2026
Merged

feat(web): migrate workspace people + billing off bespoke CSS (migration phase 3, surface 1)#787
Zach Dunn (zachdunn) merged 2 commits into
mainfrom
feat/shadcn-phase-3-people-billing

Conversation

@zachdunn

Copy link
Copy Markdown
Member

First phase-3 surface of the Tailwind + shadcn migration (follows #779/#785; plan in .context/2026-08-22-tailwind-shadcn-migration-plan.md, local doc).

What

  • People: renderMembersHtml / renderInvitesHtml / placeholder in workspace-ui.ts now emit Tailwind utilities instead of the .member-row* family; legacy class names stay in the markup as DOM/test hooks. The role select keeps the shared ul-select primitive.
  • Billing: renderPlanCardsGridHtml in billing-ui.ts + the #ws-plan-cards grid moved to Tailwind (auto-fit minmax(220px,1fr), same 4px/14px rhythm); .plan-card* family deleted.
  • Dead CSS removed from account-content.css: all .member-row*/.member-list and .plan-card* rules (each grepped repo-wide first; shared classes like ul-callout, ws-form, settings-*, .pro-badge untouched — they serve other pages and go with their own surfaces later).
  • Re-plumbing, not a redesign: spacing values map onto Tailwind's scale exactly except row padding 9px→8px (py-2).

Verification

  • astro build, pnpm lint green; workspace-ui/billing-ui vitest 68/68.
  • Visual audit against the local stack with a signed-in session on the migrated DOM: both pages render at parity; computed plan-grid margins/gap measure exactly 4px/14px/14px and the current-plan border resolves to --fg, matching the deleted CSS.
  • Not coverable locally: pending-invite row styling (fixture has no invites) — the override is baked into the row's own class list; worth an eyeball in prod after merge.

Screenshots of the migrated pages attach via the managed comment.

Move renderMembersHtml/renderInvitesHtml/renderMembersPlaceholderHtml
(workspace-ui.ts) from .member-row* classes to Tailwind utilities, and
delete the now-unused .member-list/.member-row* rules from
account-content.css (exclusive to the people tab; .ul-select styling
for the role picker is unaffected, it's shared).
Move renderPlanCardsGridHtml (billing-ui.ts) and the plan-cards grid /
manage-billing button (billing.astro) from .plan-card*/.plan-cards
classes to Tailwind utilities. The .plan-card*/.plan-cards/
#ws-manage-billing-btn rules were already removed from
account-content.css in the prior people-list commit (same file edit).
@changeset-bot

changeset-bot Bot commented Aug 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b2d65b2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@uploads-sh

uploads-sh Bot commented Aug 23, 2026

Copy link
Copy Markdown

127.0.0.1-account-workspaces-dev-demo-billing-after.webp
/account/workspaces/dev-demo/billing · after

127.0.0.1-account-workspaces-dev-demo-people-after.webp
/account/workspaces/dev-demo/people · after

Maintained by uploads.sh · add media: uploads put <file> --pr 787 · docs

@zachdunn
Zach Dunn (zachdunn) merged commit d476c53 into main Aug 23, 2026
1 of 3 checks passed
@zachdunn
Zach Dunn (zachdunn) deleted the feat/shadcn-phase-3-people-billing branch August 23, 2026 00:29
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (2)
  • coderabbit:review
  • review
🚫 Excluded labels (none allowed) (1)
  • wip

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9ddde822-55d7-4ee8-9c9d-ebeaa1a08d3b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Zach Dunn (zachdunn) added a commit that referenced this pull request Aug 23, 2026
…n phase 3, surface 2) (#789)

* feat(web): migrate workspace settings pages off bespoke CSS (migration phase 3, surface 2)

Move the GitHub-comment settings tab (settings.astro) and the storage /
BYO-bucket sub-page (settings/storage.astro) from their page-scoped .cs-*
and .storage-* CSS onto Tailwind utility classes, keeping the legacy
class names in markup as DOM/test hooks (none turned out to be asserted
on by tests). Both pages' scoped <style> blocks only ever served these
two pages exclusively (confirmed by grep across apps/web/src) — no
account-content.css rule needed touching, and settings-page/
settings-section/ws-page-header stay untouched since they're shared
with developers/profile/galleries pages outside this surface.

storage.astro: .storage-actions, .storage-summary(__step/__num/__body/
__title/__sub), .storage-instructions, #storage-form, .storage-checklist
(+ :empty/li), .storage-adopt-label, .storage-check-row/-hint,
.storage-signed-only-note, and the data-state color rules all move to
utilities (including in the two script-generated markup strings); the
entire <style> block is deleted.

settings.astro: .cs-install(__body/__cta incl. hover/focus-visible),
.cs-repo-banner, #cs-form, .cs-row(__info/__label-line/__label/__desc/
__control), .cs-image-width-px, #cs-max-inline, .cs-row--note(__note-head/
__note-count + textarea), .cs-preview-repo-field/-select/-footnote,
.cs-ghc(-avatar/-bubble/-head/-user/-bot-chip), .cs-preview-body (+ img/
table/td), and the savebar's static layout all move to utilities
(including the 680px stack breakpoint, via max-[680px]:). Left as CSS,
deliberately: .cs-toggle/__knob (aria-checked pseudo-state transitions),
.cs-seg/__btn (radiogroup aria-checked + :hover:not()/:first-child), the
JS-toggled .cs-row--dimmed class, and the savebar's data-state/data-mode
conditional-visibility selectors — genuinely state-driven CSS, not layout
duplication, and converting them risked functional regressions for no
CSS-debt payoff.

Verified: astro build green, pnpm lint clean (only pre-existing warnings
elsewhere), comment-preview-sanitize.test.ts passes (29/29, unaffected by
this change — no test asserts these class strings).

* fix(web): inline widths where utilities lose to unlayered ul-* primitives

Tailwind utilities live in @layer utilities, so any unlayered rule from the
kept ul-* primitives (ul-input/ul-select set width: 100%) beats them
regardless of specificity. The three narrow-width controls (max-inline and
image-width inputs on comment settings, the member role select from #787)
now carry inline widths instead of w-* utilities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant