Add helpful empty states to the home sidebar #25
Labels
No labels
bug
chore
data
feature
frontend
good first issue
intermediate
needs/docs
needs/research
needs/upstream
type/bug
type/external
type/feature
type/refactor
urgency
high
urgency
immediate
urgency
low
urgency
medium
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/cal#25
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
A new user with nothing in their schedule sees "No courses in your schedule" and no way forward. Replace the bare text with a short message and a button that takes them to the next step.
What you'll learn
Conditional rendering, Next.js
Link, and matching a design from Figma.Resources
Where to start
web/src/app/components/ProfileSidebar.tsx: the "My Courses" and "My Clubs" view modes render plain text whencourses.length === 0orclubs.length === 0.currentScheduleIdis undefined when the user has no schedule.web/src/app/components/Navbar.tsx: shows a "Create Schedule" button when the user has no schedules. Today, adding a course without a schedule ends in analert().web/src/app/components/BottomNav.tsxandNavbar.tsx: examples ofimport Link from "next/link".Done when
setIsCoursesEditMode(true))Linkto/exploreNotes
There is no saved-events panel in the app yet, so this issue covers schedules, courses, and clubs only.