Skip to content

feat(web): make dashboard Home say what needs you and your next night - #531

Merged
botandbang merged 3 commits into
mainfrom
bnb/dashboard-home
Nov 10, 2026
Merged

botandbang merged 3 commits into
mainfrom
bnb/dashboard-home

Conversation

@botandbang

Copy link
Copy Markdown
Contributor

The overview answered "what does this site contain" in equal-sized cards, behind one boolean choosing between a DJ layout and a promoter layout. Home now answers one question for every account: what needs me, and what's my next night.

Added:

  • lib/server/home.ts: needsYou lists booking replies by night, then undated ones, then ones whose date went by, then requests staff sent back. accessWaiting adds people asking to see a press kit. nextNights merges announced shows, bookings and the planner by date, counting a booking that became a show once. withOthers says what is with someone else.
  • needsCount, read from the site's own index through BookingService.waitingOn and RequestService.sentBack, so the heading and the sidebar's count never wait for the directory.
  • soon, which renders a result that's ready within 150 ms on the server and streams a slower one, so a healthy directory shows no placeholders at all.
  • NeedsList and NightList, which reserve the room of the rows on their way, and resolved, which lets a streamed value join what's on the page.
  • tentative and compact on DateBlock, and nightLabel for dates like Sat 14 Nov.

Changed:

  • One count: Home's number and the sidebar's are the same, and reading a notification never clears it.
  • Threads and requests now list without their project name while the directory is down, by treating it as offline. Before, a directory outage or a slow directory failed or held the whole overview and the bookings page.
  • The first-run card leads only an otherwise empty page, and sits below anything waiting on the person.

Removed:

  • The handle as a page title, the sign out button (still in the account menu), the panels for projects, saved DJs and submissions, and the empty panels with their competing buttons. Declined and cancelled threads no longer reach Home.

@botandbang
botandbang requested a review from bnb as a code owner November 9, 2026 15:40
@bnb
bnb added this pull request to stack #532 November 9, 2026 15:41
bnb
bnb previously approved these changes Nov 9, 2026
@github-actions github-actions Bot added web The Local Network website (apps/web) web: projects Project profiles, claims, and the DJ stats and sets on them web: epk Press kits and who can see them web: bookings Booking inquiries and their threads web: planner Promoters' private planner web: staff Admin, moderation and the audit log web: accounts Signing in, sessions and the account pages web: ui Shared components, design tokens, layout and the static pages tests Tests, fixtures and test harnesses labels Nov 9, 2026
bnb
bnb previously approved these changes Nov 9, 2026
Base automatically changed from bnb/dashboard-shell to main November 9, 2026 21:18
@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Coverage Report for apps/web

Status Category Percentage Covered / Total
🟢 Lines 99.76% (🎯 99%)
⬇️ -0.01 pp
11210 / 11236
🟢 Statements 99.45% (🎯 99%)
⬇️ -0.01 pp
17189 / 17283
🟢 Functions 99.63% (🎯 99%)
🟰 ±0 pp
4656 / 4673
🟢 Branches 94.62% (🎯 94%)
⬇️ -0.06 pp
8370 / 8845
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
apps/web/src/lib/bookings.ts 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/web/src/lib/format.ts 100%
🟰 ±0 pp
96.55%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/web/src/lib/home.ts 100% 100% 100% 100%
apps/web/src/lib/resolved.svelte.ts 100% 75% 100% 100%
apps/web/src/lib/components/NeedsList.svelte 100% 90.9% 100% 100%
apps/web/src/lib/components/NightList.svelte 100% 100% 100% 100%
apps/web/src/lib/components/ProfileSetupCard.svelte 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/web/src/lib/server/home.ts 100% 92.77% 100% 100%
apps/web/src/lib/server/services/bookings.ts 99.64%
⬆️ +0.01 pp
97.5%
⬇️ -1.20 pp
100%
🟰 ±0 pp
99.57%
⬆️ +0.01 pp
69
apps/web/src/lib/server/services/epk.ts 99.41%
⬆️ +0.01 pp
97.7%
⬇️ -0.43 pp
100%
🟰 ±0 pp
99.62%
⬆️ +0.01 pp
226, 990
apps/web/src/lib/server/services/requests.ts 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/web/src/lib/ui/DateBlock.svelte 100%
🟰 ±0 pp
90%
⬆️ +40.00 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/web/src/routes/dashboard/+layout.server.ts 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
apps/web/src/routes/dashboard/+page.server.ts 100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
100%
🟰 ±0 pp
Generated in workflow #618 for commit eb6e8db by the Vitest Coverage Report Action

Size

Compared with main. KiB are 1,024 bytes.

This pull request main Change
Client JavaScript 806.2 KiB 806.1 KiB +140 B (+0%)
Client JavaScript, brotli 272.9 KiB 272.1 KiB +798 B (+0.3%)
Client CSS 99.4 KiB 99.1 KiB +298 B (+0.3%)
Client CSS, brotli 14.4 KiB 14.2 KiB +152 B (+1%)

bnb
bnb previously approved these changes Nov 9, 2026
@botandbang botandbang added the no-issue No issue to link, so the PR issue check passes label Nov 9, 2026
Home no longer has its own Sign out button, so the helper opens the header's account menu, and the drafts test posts the sign-out from outside the page, as a form does without scripts.
@botandbang
botandbang added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 0c24d85 Nov 10, 2026
42 of 44 checks passed
@botandbang
botandbang deleted the bnb/dashboard-home branch November 10, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-issue No issue to link, so the PR issue check passes tests Tests, fixtures and test harnesses web: accounts Signing in, sessions and the account pages web: bookings Booking inquiries and their threads web: epk Press kits and who can see them web: planner Promoters' private planner web: projects Project profiles, claims, and the DJ stats and sets on them web: staff Admin, moderation and the audit log web: ui Shared components, design tokens, layout and the static pages web The Local Network website (apps/web)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants