openclimatefix / quartz-frontend

Front End repo for the Nowcasting project.
https://openclimatefix.org/projects/nowcasting/
MIT License
103 stars 16 forks source link

Issue/504 add auth #518

Closed braddf closed 4 months ago

braddf commented 4 months ago

Pull Request

Description

Add Auth0 integration and corresponding endpoints/auth loading state/logout page:

image

Fixes #504

N.B. also includes small fix for nowcasting-app as the SSR wasn't passing Cypress tests with date string formats being different between prerender on server and render on client-side, causing a React hydration error. Have forced the component to render client-side for now, but may need to keep an eye on this for date/time stuff.

How Has This Been Tested?

Locally and Vercel preview branch: https://quartz-4su29j2w3-openclimatefix.vercel.app/

Checklist:

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
quartz-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 30, 2024 11:04am
1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **nowcasting-app** | ⬜️ Ignored ([Inspect](https://vercel.com/openclimatefix/nowcasting-app/DhGoKXWFi6DV99oPoRgKRNHSJ4kp)) | [Visit Preview](https://nowcasting-app-git-issue-504-add-auth-openclimatefix.vercel.app) | | May 30, 2024 11:04am |
peterdudfield commented 4 months ago

Node CI error?

braddf commented 4 months ago

Node CI error?

@peterdudfield Yes – this needs a bit of tinkering to get Cypress to run properly in the CI – I think I got most of the way there but need to revisit when I get a chance... is an expected error atm and it runs pre-commit successfully so should be okay in meantime