Skip to content

Dashboard: click a number or a chart day to see the detail behind it - #30

Merged
WhatBoxLLC merged 5 commits into
mainfrom
claude/project-thread-fjf33c
Nov 29, 2026
Merged

WhatBoxLLC merged 5 commits into
mainfrom
claude/project-thread-fjf33c

Conversation

@WhatBoxLLC

Copy link
Copy Markdown
Owner

Requested by Jeff Oakes · project thread

Follow-up to #16. Jeff: "I should be able to click them and see the detail."

What you can click

  • Tiles: sign-ups, active members and messages open the detail for the whole period. Visitors opens pages and sources. "Waiting for review" still opens the queue.
  • Any bar in a chart opens that day. Details on a chart opens the whole period. The panel has previous and next day buttons.
  • What each one shows:
    • New sign-ups / Active members / Sign-ins: the members, with main photo, age, city and badges (imported, profile not finished, Paid/VIP, suspended/deleted). Click one to open their admin profile.
    • Messages: who wrote to whom, how many, and how many were held or flagged. It never shows the text; reading a conversation stays in the member's audited "Review messages".
    • Photos: the uploads, with their status. Click one to open the member.
    • New moderation items: the items raised, with their status and a button to the queue.
    • Visitors / page views: visitors, visits and views, plus the pages and sources for that day or period.
  • Platform Admin: clicking a day splits it by site. Clicking a site, or a row in the by-site table, opens that site's own dashboard.

Rules kept

  • One site at a time, from that site's own database. It goes through adminSite, so owners get 403 on sites that aren't theirs (tested).
  • At most 120 days and 200 rows per request. Imported members never count as new sign-ups.
  • New table member_sign_ins (per member per day), so sign-ins can be listed by member from this update on. Earlier days show the total only, and the panel says so.

Testing

  • New test: the drill-down lists the right members and leaves out imported ones. Sign-ins are listed by member, traffic pages and referrers come back for the day, and messages carry no text. Range limits hold, and an owner can't drill into another owner's site. Core: 87 pass. API: 13 pass. Typecheck is clean.
  • End to end on local PostgreSQL in a browser: tiles, chart days, a member profile opened from the list (it appears on top and returns to the list on close), day navigation, the platform split by site, and the phone layout.

Screenshots are in the project thread. Needs db:migrate on deploy (one new table).


Generated by Claude Code

…ssages, photos, moderation; optional Google tags per site

- Owner Admin: Dashboard tab per site (7/30/90 days, vs previous period, top pages, referrers)
- Platform Admin: all sites added up plus a by-site table; owners only ever see their own sites
- Public page views counted by WhatBox itself: no cookies, daily-salted visitor hash deleted after 2 days, counts stored in each site's own database
- New sign-ups leave imported members out; imports shown separately with how many have signed in since
- Site settings: Google Analytics 4 / Google Ads IDs, off by default, public pages only, after cookie consent; ad personalization off on sensitive and adult sites

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015x8UvNtJhdMZrRQNLxjVYY
…banner and measure

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015x8UvQVT5SDXUZWPGMitEF
… the number

- Sign-ups, active members and sign-ins list the members (photo, age, city, badges); click one for their admin profile
- Messages show who wrote to whom and how many (held/flagged), never the text; reading stays in the audited message review
- Photos show the uploads; moderation lists the items raised with a button to the queue
- Visitors / page views show the pages and sources for that day or period
- Previous / next day in the panel; Platform Admin: a chart day splits by site, and each site opens its own dashboard
- New member_sign_ins table so sign-ins can be listed by member from now on
- One site at a time, admin only (owners get 403 on other sites); at most 120 days and 200 rows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015x8UvNtJhdMZrRQNLxjVYY
…to claude/project-thread-fjf33c

# Conflicts:
#	apps/api/scripts/seed.ts
#	apps/api/sql/site.sql
#	apps/api/src/app.ts
#	apps/api/src/main.ts
#	apps/api/src/pg-repo.ts
#	apps/member/src/app/admin/index.tsx
#	apps/member/src/ui/Dashboard.tsx
#	packages/core/src/api.ts
#	packages/core/src/demo-analytics.ts
#	packages/core/src/http-client.ts
#	packages/core/src/memory-platform.ts
#	packages/core/src/memory-repo.ts
#	packages/core/src/repo.ts
#	packages/core/src/services.ts
#	packages/core/src/types.ts
#	packages/core/test/dashboard.test.ts
…-fjf33c

# Conflicts:
#	apps/api/sql/site.sql
#	apps/api/src/pg-repo.ts
#	packages/core/src/api.ts
#	packages/core/src/http-client.ts
#	packages/core/src/services.ts
@WhatBoxLLC
WhatBoxLLC merged commit 01a5e60 into main Nov 29, 2026
2 checks passed
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.

2 participants