Skip to content

Align Virtual Servers layout with the other components pages - #48

Merged
gcgoncalves merged 1 commit into
light-theme-componentsfrom
virtual-servers-card-layout
Aug 19, 2026
Merged

Align Virtual Servers layout with the other components pages#48
gcgoncalves merged 1 commit into
light-theme-componentsfrom
virtual-servers-card-layout

Conversation

@a-effort

@a-effort a-effort commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Makes the Virtual Servers grid read like Tools / Resources / Prompts.

2 virtual sevrers dark theme

Changes

  • Grid becomes grid-cols-1 / lg:2 / 2xl:3. col-span-full and sortServersForLayout both go — cards are uniform now, so empty servers no longer need sorting to the end to keep a full-width row from splitting the grid. Servers render in API order.
  • Page shell moves from space-y-9 to a mb-6 heading, and the loading branch stops early-returning, so the title survives the spinner.
  • Cards drop min-h-29 / min-h-35 and their justify-* pairs.
  • New --server-icon-bg token joins --tool-icon-bg and --prompt-icon-bg; the card status dot stops hardcoding emerald/red and picks up --tool-status-*.
  • ConnectSourceCard adopts AddToolsCard's add-icon token, hover and description leading.

Notes for review

  • Based on light-theme-components, not main: it needs bdeef45 for the corrected --tool-status-* shades and the matching drawer fix. Merge that first.
  • The card body is deliberately untouched: component counts, tags and the last-synced timestamp stay. Swapping them for CardTag chips is what would make the body itself read like the other three, and that is a separate call.
  • The disabled "Open (coming soon)" upload button is removed from the card header, so the row ends in the actions menu like the other three. It only rendered on cards that had components. Its unit and e2e tests became negative assertions.
  • The error block keeps its destructive tokens rather than adopting the hardcoded reds the other three pages still carry.

Testing

2896 unit tests pass; tsc -b, eslint, prettier and build are clean.

- Grid becomes `grid-cols-1 / lg:2 / 2xl:3`. `col-span-full` and
  `sortServersForLayout` both go — cards are uniform now, so empty
  servers no longer need sorting to the end to keep a full-width row from
  splitting the grid. Servers render in API order.
- Page shell moves from `space-y-9` to a `mb-6` heading, and the loading
  branch stops early-returning, so the title survives the spinner.
- Cards drop `min-h-29` / `min-h-35` and their `justify-*` pairs.
- New `--server-icon-bg` token joins `--tool-icon-bg` and
  `--prompt-icon-bg`; the card status dot stops hardcoding emerald/red
  and picks up `--tool-status-*`.
- `ConnectSourceCard` adopts `AddToolsCard`'s add-icon token, hover and
  description leading.

2896 tests pass; tsc, eslint, prettier and build are clean. The e2e suite
was not run — no local Chromium.

Signed-off-by: Anna Effort <anna.effort@ibm.com>
@a-effort
a-effort requested review from Yosiefeyob, gandhipratik203, gcgoncalves, marekdano and vishu-bh and removed request for marekdano August 19, 2026 07:18

@marekdano marekdano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@a-effort - this a great improvement!
The changes look good!

LGTM 🚀

@gcgoncalves
gcgoncalves merged commit f8e7de9 into light-theme-components Aug 19, 2026
1 check passed
@gcgoncalves
gcgoncalves deleted the virtual-servers-card-layout branch August 19, 2026 10:21
a-effort added a commit that referenced this pull request Aug 19, 2026
- Grid becomes `grid-cols-1 / lg:2 / 2xl:3`. `col-span-full` and
  `sortServersForLayout` both go — cards are uniform now, so empty
  servers no longer need sorting to the end to keep a full-width row from
  splitting the grid. Servers render in API order.
- Page shell moves from `space-y-9` to a `mb-6` heading, and the loading
  branch stops early-returning, so the title survives the spinner.
- Cards drop `min-h-29` / `min-h-35` and their `justify-*` pairs.
- New `--server-icon-bg` token joins `--tool-icon-bg` and
  `--prompt-icon-bg`; the card status dot stops hardcoding emerald/red
  and picks up `--tool-status-*`.
- `ConnectSourceCard` adopts `AddToolsCard`'s add-icon token, hover and
  description leading.

2896 tests pass; tsc, eslint, prettier and build are clean. The e2e suite
was not run — no local Chromium.

Signed-off-by: Anna Effort <anna.effort@ibm.com>
gcgoncalves pushed a commit that referenced this pull request Aug 19, 2026
* Adjust tools, resources & prompts light theme

Applies PR #34's light-mode pass to the three surfaces it missed.

- Status tokens gain a `.dark` override; six sites that hardcoded the
  emerald/gray shades now use them, including the two server drawers.
- Drawer body and right rail both inherit `bg-popover`. The dark-only
  override they carried split the panes in dark and did nothing in light,
  where both were pure white.
- Scrim `bg-black/10` → `/50` on all five drawers.
- The three drawer tables adopt `ServersTable`'s card-per-row pattern,
  with rows a step down from the drawer body rather than up from the
  page. Hover and selected are pinned to the row fill.
- Page chrome moves to `text-foreground` / `text-muted-foreground`, the
  off-palette blue spinners are retinted, and two badges stop bypassing
  the icon tokens.

Also fixes an unrelated bug in `VirtualServerDetailsPanel`: the status
icon was unconditionally green while its label branched on `enabled`.

Forms keep their hardcoded neutrals, matching what PR #34 left behind.

2896 tests pass; tsc, eslint, prettier and build are clean.

Signed-off-by: Anna Effort <anna.effort@ibm.com>

* fix(ui): restore row hover/selected contrast and drawer rail background

Signed-off-by: Marek Dano <mk.dano@gmail.com>

* fix(ui): align Users/Teams pagination controls and status icons with theme tokens

Signed-off-by: Marek Dano <mk.dano@gmail.com>

* Align Virtual Servers layout with the other components pages (#48)

- Grid becomes `grid-cols-1 / lg:2 / 2xl:3`. `col-span-full` and
  `sortServersForLayout` both go — cards are uniform now, so empty
  servers no longer need sorting to the end to keep a full-width row from
  splitting the grid. Servers render in API order.
- Page shell moves from `space-y-9` to a `mb-6` heading, and the loading
  branch stops early-returning, so the title survives the spinner.
- Cards drop `min-h-29` / `min-h-35` and their `justify-*` pairs.
- New `--server-icon-bg` token joins `--tool-icon-bg` and
  `--prompt-icon-bg`; the card status dot stops hardcoding emerald/red
  and picks up `--tool-status-*`.
- `ConnectSourceCard` adopts `AddToolsCard`'s add-icon token, hover and
  description leading.

2896 tests pass; tsc, eslint, prettier and build are clean. The e2e suite
was not run — no local Chromium.

Signed-off-by: Anna Effort <anna.effort@ibm.com>

---------

Signed-off-by: Anna Effort <anna.effort@ibm.com>
Signed-off-by: Marek Dano <mk.dano@gmail.com>
Co-authored-by: Marek Dano <mk.dano@gmail.com>
@a-effort a-effort self-assigned this Aug 19, 2026
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.

3 participants