Nikhill/dashboard cont#13
Conversation
- accomodate shared design system components - have dashboard + extension split
…l-dti/cornell-loop into annie/setup-design-system
Convex Schema
Remove broken feed Toggle, move SearchBar into feed header, swap hardcoded Landing hex for secondary-500 token, add Manrope to font link. Wire RoutedHome with client-side sample posts / side panels (Convex schema has no post table yet). New playwright helper for /home screenshots. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Brings in DS component polish (Avatar, Button, Cards, DateBadge, Logo, SearchBar/Panel, SideBar, Tags, Toggle), new components (Bookmark, Dropdown, OrgHoverCard), token updates, shared fallbackColors util, prettier config, and README/CI tweaks. Conflict resolutions: - Kept HEAD monorepo layout: all DS code lives under shared/ui, apps/dashboard imports via @app/ui barrel. - Moved annie's root src/components/* + src/utils/* under shared/ui/src/. - Dropped stray pre-monorepo root files (src/App.tsx, src/main.tsx, vite.config.ts) — replaced long ago by apps/dashboard equivalents. - Rewrote DesignSystem.tsx imports to use @app/ui and @app/ui/assets/* subpath; added ./assets/* to shared/ui package exports. - Extended shared/ui/src/index.ts to re-export Bookmark, Dropdown, OrgHoverCard. - Added lucide-react as peer dep (shared/ui) and dep (apps/dashboard) — multiple DS components rely on it. - Root package.json keeps workspace-dispatch scripts; added prettier format / format:check scripts + dev deps. - Kept Manrope font link addition from previous commit. - Dropped annie's committed .env (contained a rotated Gemini API key — pre-existing leak on source branch, addressed separately). Added .env / .env.local to .gitignore. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
anchen9
left a comment
There was a problem hiding this comment.
Great work overall Nikhill on implementing the dashboard frontend! (Also great work to Megan for the initial wiring)! The dashboard's looking great and really appreciate your work this semester!
|
|
||
| const ALLOWED_EMAIL_DOMAIN = "@cornell.edu"; | ||
|
|
||
| export const { auth, signIn, signOut, store, isAuthenticated } = convexAuth({ |
There was a problem hiding this comment.
Great job working with convex auth & checking for non-cornell emails!
| ); | ||
| } | ||
|
|
||
| export const currentUser = query({ |
There was a problem hiding this comment.
I wonder if this non-cornell user logic could be consolidated with the code in convex/auth.ts?
There was a problem hiding this comment.
Very useful having some dev only tools and shortcuts, but I think this file is inhibiting some local testing for auth on the fakeSignIn function! We can probably either implement an override or remove the shortcuts before implementing auth fixes!
Summary This PR adds the UI for various pages on the Loop dashboard (home, subscriptions, bookmarks, profile, org page). This pages were created using already made cards and components shared from previous development.
This pull request is the first step towards implementing feature dashboard
Remaining TODOs:
Check BE connectivity
Depends on #{number of PR}
Test Plan
Notes
Breaking Changes