Skip to content

feat(dashboard): refresh experts page and unify tabs/buttons styling across the app - #2754

Open
lulinzhi37-alt wants to merge 3 commits into
TencentCloud:developfrom
lulinzhi37-alt:feat/dashboard-ui-refresh-pr
Open

lulinzhi37-alt wants to merge 3 commits into
TencentCloud:developfrom
lulinzhi37-alt:feat/dashboard-ui-refresh-pr

Conversation

@lulinzhi37-alt

Copy link
Copy Markdown
Contributor

Summary

  • Expert avatars: rebuilt 23 avatar SVGs as precise 160x160 crops — fixes blurry rendering and cuts repo weight from ~28MB to ~2MB; 4 new avatars for the recently added experts, with their library manifests updated
  • Expert market cards: full-bleed grey footer (per Figma spec) with a neutral create button; 24px gap between page subtitle and tab bar; subtitle color now #000 90%
  • Global tab design tokens: new --fn-tab-text / --fn-tab-text-active / --fn-tab-ink CSS vars (light + dark) plus antd Tabs theme tokens — idle rgba(0,0,0,0.7)/400, selected rgba(0,0,0,0.9)/600, 2px ink bar
  • Tab bars unified: shared TabBar gains a plain (no-icon) mode matching antd Tabs, enabled on Connectors / Admin Users / Security / Advanced Settings; icons removed from Skills / Storage / Plugins / Models tabs; Skills page moved to antd Tabs with pinned nav + scrolling pane; fixed the plain-mode active underline being clipped to ~1px by overflow
  • Buttons & cards: neutral outline replaces brand-red styling on the Skills toolbar, RemoteBrowser/RemoteDesktop uninstall buttons; SkillPackages selected/hover cards use 1px black-based outlines without drop shadows and a hairline sidebar divider; Users page role legend lost its red left border
  • Fix: renamed backendFlag.ts → backendFlagModel.ts — on case-insensitive filesystems it collided with BackendFlag.tsx and broke TS resolution of ./BackendFlag imports

Test plan

  • tsc -b, eslint, prettier pass
  • Verified in a real browser on the local dev server: experts / skills / connectors / users / security / advanced / storage / plugins / models / skill-packages pages
  • Dark mode checked (tab tokens, ink bar, card outlines flip correctly)

- replace 18 built-in expert avatars with new 36x36 SVG set; render at 32px
- experts cards: 1px rgba(0,0,0,.08) border, no hover accent/shadow, #f9f9f9 hover
- my-experts card: drop top accent bar, shadow and avatar background
- global: white page background, #f9f9f9 sidebar, no rail divider line
- tabs: black/white selected color + underline, 600 weight, drop tab icons
- solid primary buttons turn black (white in dark mode) via --fn-btn-solid-*
- PageShell: left-align content with title, 24px gap, transparent body
- sidebar nav active state: #efefef bg, 90% text; default 65% text
- add dark-mode variants for every new token
- Rebuilt 19 expert avatar SVGs as precise 160x160 crops (fixes
  blurry rendering; drops repo weight from ~28MB to ~2MB)
- Added 4 new avatars for cowork-plugin-management / design /
  engineering / productivity experts
- Updated the 4 affected library manifests to reference the new icons
Global design tokens:
- New --fn-tab-text / --fn-tab-text-active / --fn-tab-ink CSS vars
  (light + dark) and antd Tabs theme tokens: idle rgba(0,0,0,0.7),
  selected rgba(0,0,0,0.9), weight 400/600, 2px ink bar
- PageShell subtitle now #000 90%; optional titleGap prop (Experts
  page uses it for a 24px gap under the subtitle)

Tab bars:
- Shared TabBar gains a plain mode (no icons) matching antd Tabs;
  enabled on Connectors, Admin Users, Security, Advanced Settings
- Skills / Storage / Plugins / Models tabs: icons removed, Skills
  page moved to antd Tabs with pinned nav + scrolling pane
- Fixed plain-mode active underline being clipped to ~1px (overflow)
  and ink color now pure #000 (white in dark mode)

Buttons & cards:
- Skills page toolbar buttons: neutral outline instead of brand red
- Expert market cards: full-bleed grey footer per Figma spec, plus
  neutral create button on the footer
- SkillPackages: selected/hover card outlines are 1px black-based,
  drop shadows removed, sidebar divider hairline instead of 8px bar
- Users page: role legend no longer has the red left border
- RemoteBrowser / RemoteDesktop uninstall buttons: neutral instead
  of danger red

Misc:
- Rename backendFlag.ts -> backendFlagModel.ts: on case-insensitive
  filesystems 'backendFlag.ts' collided with 'BackendFlag.tsx' and
  broke TS module resolution for ./BackendFlag imports

This branch has not been deployed

No deployments
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