feat: coordinator tabs (Shifts, Contacts, Settings)

- pages.tsx: Layout shows a Coordinator tab row on every signed-in /admin
  page. Shifts covers the dashboard, events, shifts and templates; Contacts
  covers /admin/contacts; Settings covers /admin/settings and /admin/admins.
- admin-pages.tsx: remove the dashboard link cluster and the redundant
  Contacts/Settings breadcrumbs. Administrators moves under Settings, with a
  "Manage administrators" card. Routes are unchanged.
- app.css: .desk-tabs styles (white pill, gold underline on the current tab,
  48px tap targets, full width on phones, hidden in print); drop .desk-links.
- tests: admins.test.ts checks the tabs and the new Settings link.
This commit is contained in:
Cosmically Creative committed 2026-11-20 13:24:23 -06:00
1 parent 1230030e39
commit c4fe911969
4 files changed
+117 -14

No files matched your search

+61 -5
View File
@@ -2259,6 +2259,11 @@ article.shift-card {
display: flex;
}
.settings-more {
max-width: 46rem;
margin-top: 2rem;
}
@media (max-width: 42em) {
.settings-fields {
grid-template-columns: 1fr;
@@ -3279,18 +3284,68 @@ button.btn-quiet::before {
margin: 0.15rem 0 0;
}
.desk-links {
/* Coordinator tabs. Same family as the session bar: a white pill, plain links, a gold line under the current one. */
.desk-tabs {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.35rem 0.9rem;
font-size: 0.95rem;
align-items: center;
gap: 0 1.75rem;
width: fit-content;
max-width: 100%;
margin: 0 0 1.25rem;
padding: 0 1.5rem;
background: #fff;
border: 1px solid #e6eef3;
border-radius: 999px;
box-shadow: var(--hope-shadow-soft);
}
.desk-links a {
.desk-tabs a {
position: relative;
display: inline-flex;
align-items: center;
min-height: 48px;
color: var(--hope-ink);
font-size: 1.05rem;
font-weight: 500;
line-height: 1;
text-decoration: none;
}
.desk-tabs a:hover {
color: var(--hope-ink-2);
}
.desk-tabs a[aria-current] {
font-weight: 650;
}
.desk-tabs a[aria-current]::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 10px;
height: 2px;
border-radius: 999px;
background: var(--hope-gold);
}
.desk-tabs a:focus-visible {
outline: 2px solid var(--hope-ink);
outline-offset: 3px;
border-radius: 4px;
}
@media (max-width: 42em) {
.desk-tabs {
width: 100%;
justify-content: space-between;
gap: 0 1rem;
padding: 0 1.25rem;
}
}
.coordinator-board {
display: grid;
gap: 1rem;
@@ -5846,6 +5901,7 @@ main > .crumb,
.header,
.footer,
.session-bar,
.desk-tabs,
.crumb,
.desk-actions,
.desk-inline,