Commit 942d480
authored
Rebrand to new logo/colors and fix dropdown, breadcrumb, and dark mode issues (#553)
* Polish allocations and projects pages UX
Hide allocation GUIDs/cluster IDs from list and detail views, remove
duplicate breadcrumbs, and improve the overview detail sections with
consistent colon alignment, background, and rounded corners. Add
dividers and a brand-tinted pill background to the meta row below
each detail page title, sized to match the status badge height.
* Wrap PI email in parentheses on project overview
Plain trailing email next to the PI name read ambiguously; bracketing
it makes clear it's supplementary contact info.
* Replace wordmark with new logo and rebrand to orange
Swap the plain-text "Custos" wordmark in the sidebar and sign-in card
for the new logo SVG, and repoint the brand color system (--brand,
--custos-primary, --custos-action) from blue to the logo's orange.
Fix AccessCard's brand-tint text pairing to use --brand instead of the
stale blue --accent-foreground. Also tweak the dark-theme default
button fill from blue to a neutral gray for consistency with light
theme, align the sidebar logo vertically with the topbar nav arrows,
and lighten the sidebar section labels.
* Rework native selects into themed dropdowns, fix breadcrumbs and post-login redirect
Replace native <select> filters (Users & Permissions roles/identities,
Allocations/Projects status) with the shared Select component so they
share the app's theming, open below their trigger, and never render
narrower than their widest option (was clipping into the checkmark on
the change-request type dropdown). Give trigger/menu matching, fixed
widths and friendly labels instead of raw values everywhere they're used.
Breadcrumbs on allocation/project detail pages now show the resource's
name instead of its raw ID, via a small context that lets the detail
page register a label once its data loads.
Also: surface Initial SUs in the allocation header meta row, and make
the signed-in root route redirect straight to /allocations instead of
showing an empty placeholder page.
* Use theme-aware tone tokens for status badges
StatusBadge hardcoded light-theme colors (e.g. custos-green-50), so
badges like ACTIVE rendered as a solid light box in dark mode instead
of blending in. Switch to the existing --tone-ok/-error/-warn/-info
tokens, which already define a translucent dark-mode variant for each.
* Remove dead Suspense/SignInForm JSX left over from the master merge
The merge brought in master's redesigned sign-in page (redirect-only,
no custom UI) but left the old card markup in place, referencing
components that no longer exist and breaking the build.
* Remove duplicate roleLabelFor/identityLabelFor in UsersTable
The merge duplicated both helper functions verbatim, which TypeScript
flags as a duplicate implementation and fails the build. Keep a single
copy of each; behavior is unchanged.
* Use the configured brand logo in the sidebar instead of a duplicate asset
Sidebar.tsx hardcoded a new public/custos-logo.svg with a fixed "Custos"
alt text, bypassing the existing brand.logo/brand.name config (already
wired to NEXT_PUBLIC_PORTAL_LOGO/NEXT_PUBLIC_PORTAL_NAME) and silently
breaking white-labeling. The new logo is byte-identical to the one
already shipped at public/brand/logo/custos-logo.svg, so point the
sidebar back at brand.logo and drop the redundant duplicate file.
* Restore config-driven brand logo in Sidebar.tsx
Missed in the previous commit: point the sidebar's <img> back at
brand.logo/brand.name instead of the hardcoded path removed there.1 parent c067404 commit 942d480
3 files changed
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
77 | 83 | | |
78 | 84 | | |
79 | | - | |
| 85 | + | |
80 | 86 | | |
81 | | - | |
| 87 | + | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
88 | | - | |
| 94 | + | |
89 | 95 | | |
90 | | - | |
| 96 | + | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| |||
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
200 | | - | |
| 206 | + | |
201 | 207 | | |
202 | | - | |
| 208 | + | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
0 commit comments