Skip to content

Add data extraction and personalized greeting to dashboard#69

Merged
roy-bme merged 2 commits into
claude/blackmass-corporate-website-caGTRfrom
claude/fix-dashboard-greeting-WbfcK
May 7, 2026
Merged

Add data extraction and personalized greeting to dashboard#69
roy-bme merged 2 commits into
claude/blackmass-corporate-website-caGTRfrom
claude/fix-dashboard-greeting-WbfcK

Conversation

@roy-bme
Copy link
Copy Markdown
Owner

@roy-bme roy-bme commented May 7, 2026

Summary

This PR refactors the dashboard page to extract and normalize API response data into typed variables, and adds a time-based personalized greeting for users.

Key Changes

  • Data extraction: Added explicit variable assignments to extract and normalize data from API responses (linksRes, eventsUpcomingRes, introsRes, agentRunsRes, briefRes, flagsRes, regSignalsRes)
  • Type safety: Cast extracted data to appropriate types (AgentRun[], ComplianceFlag[], RegulatorySignal[], etc.) for better type checking downstream
  • Personalized greeting: Implemented time-of-day aware greeting that displays "Good morning/afternoon/evening" based on current hour, followed by the user's first name
  • Data filtering: Added logic to filter pending introductions based on roy_approved status

Implementation Details

  • Greeting logic uses 12-hour and 18-hour thresholds to determine time of day
  • User's first name is extracted by splitting the full name on spaces with a fallback to the complete name
  • API response data is safely extracted with fallbacks (e.g., ?? 0, ?? []) to handle missing or malformed responses
  • Intro filtering checks for items where roy_approved is falsy

https://claude.ai/code/session_01RewehvZ5pbZba5r6YcHmqk

claude added 2 commits May 7, 2026 13:50
Adds back the time-of-day greeting (morning/afternoon/evening) plus the
user's first name so PageHeader's title prop has a defined value again.

https://claude.ai/code/session_01RewehvZ5pbZba5r6YcHmqk
Commit 5135269 ("strip Launch 6") removed the entire block of variable
declarations between total and today, but only one of them (launch6Done)
was Launch-6-specific. Restores linkCount, eventsUpcoming, intros,
introsPending, runs, brief, flags, and regSignals so the dashboard JSX
that consumes them compiles again.

https://claude.ai/code/session_01RewehvZ5pbZba5r6YcHmqk
@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blackmasswebsite Ready Ready Preview, Comment May 7, 2026 1:54pm

Request Review

@supabase
Copy link
Copy Markdown

supabase Bot commented May 7, 2026

This pull request has been ignored for the connected project ipqmdinidqpmchggjdov because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@roy-bme roy-bme merged commit 98750a9 into claude/blackmass-corporate-website-caGTR May 7, 2026
3 of 4 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