Skip to content

Prevent .env overwrite; add ReviewsTrendChart and dynamic CriticalUpdates on dashboard#4

Open
streamsmarter wants to merge 5 commits into
mainfrom
codex/update-dashboard-page-with-new-features
Open

Prevent .env overwrite; add ReviewsTrendChart and dynamic CriticalUpdates on dashboard#4
streamsmarter wants to merge 5 commits into
mainfrom
codex/update-dashboard-page-with-new-features

Conversation

@streamsmarter
Copy link
Copy Markdown
Owner

Motivation

  • Prevent accidental overwrites of an existing .env.local when scaffolding environment files and make the dashboard surface live activity and review trends.

Description

  • Update README.md environment examples to use placeholders and note that create-env scripts no longer overwrite .env.local by default and that the dashboard is at /app after sign-in.
  • Change create-env.mjs and create-env-fixed.mjs to check for an existing .env.local, detect existing Supabase values, and only overwrite when --force is passed, otherwise print informative messages.
  • Add src/components/reviews-trend-chart.tsx, a client component that queries review rows via Supabase + @tanstack/react-query, groups reviews by date, and renders a configurable LineChart with a time-range selector and loading skeletons.
  • Update src/components/critical-updates.tsx to fetch recent update rows from Supabase using useQuery, map update_color to update types, format relative times, handle loading/empty states, and present live activity; and modify src/app/app/page.tsx to show the new ReviewsTrendChart and wrap CriticalUpdates in the dashboard layout.

Testing

  • Ran npm run lint and it completed successfully with no lint errors.
  • Ran npm run build and the production build completed successfully.

Codex Task

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 1, 2026

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

Project Deployment Actions Updated (UTC)
rep-guardian-obhh Ready Ready Preview, Comment Mar 2, 2026 3:56am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant