Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My home #2425

Merged
merged 93 commits into from
Dec 17, 2024
Merged

My home #2425

merged 93 commits into from
Dec 17, 2024

Conversation

richardolsson
Copy link
Member

@richardolsson richardolsson commented Dec 11, 2024

Description

This PR creates a prototype replacement for the Gen2 "dashboard".

Screenshots

Changes

  • Adds two new pages, /my/home and /my/feed, including a shared layout
    • Implements most of the functionality from Gen2 /dashboard
    • Includes filters for date, kind and organization
  • Adds new hook useRemoteList() which uses React Suspense instead of our own IFuture interface
  • Adds new utility redirectIfLoginNeeded() that can be used in app router pages to verify authentication before rendering the page (and redirecting to the login page if necessary)
  • Adds new hook useIncrementalDelay() which can be used when animating things one after the other
  • Creates ZUIModalBackground component that can be used for the Modal component in the upcoming ZUI design system
  • Creates ZUILogoLoadingIndicator which is an animated version of the Zetkin logo to use when loading
  • Consolidates two separate react contexts that existed for user data, into a single UserContext / UserProvider / useUser()
  • Changes the location of the canvassing pages, from /my/canvassassignments/ID to /canvass/ID
  • Removes the /my/canvassassignments page (these are now listed on the /my/home page alongside call assignments and events)

Notes to reviewer

We're sorry.

Related issues

Resolves #1616

Copy link
Member Author

@richardolsson richardolsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed all the code, mine and @ziggabyte's!

Copy link
Contributor

@ziggabyte ziggabyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we did great. i approve.

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.

User home page, "My home" ✊
2 participants