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

Mapper frontend login + remove temp auth from React frontend #1903

Open
wants to merge 23 commits into
base: development
Choose a base branch
from

Conversation

NSUWAL123
Copy link
Contributor

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation
  • πŸ§‘β€πŸ’» Refactor
  • βœ… Test
  • πŸ€– Build or CI
  • ❓ Other (please specify)

Related Issue

Describe this PR

This PR contains the following works:
Mapper Frontend

  • OSM and Temp login add to mapper frontend
  • Remove Temp login from react frontend
  • Change hot-header component with custom header component with drawer

React Frontend

  • Replace Legend Toggle to map control component
  • Add button named START MAPPING to link react frontend to mapper frontend

Screenshots

image
image
image
image

@github-actions github-actions bot added enhancement New feature or request frontend Related to frontend code labels Nov 21, 2024
@NSUWAL123
Copy link
Contributor Author

Oh, the frontend test is failing as we had used a temp login for the playwright test. Now what shall be the alternative?

Creating an OSM account to conduct the e2e test? Would that be feasible?

Copy link
Member

@spwoodcock spwoodcock left a comment

Choose a reason for hiding this comment

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

This is excellent!

The only thing missing is the cookie refresh behaviour. On first load the refresh endpoint should be called to attempt cookie refresh (and extend it's expiry). The react frontend does this.

Perhaps it can be a follow up PR, as this is great to merge πŸ˜„

@spwoodcock
Copy link
Member

Oh, the frontend test is failing as we had used a temp login for the playwright test. Now what shall be the alternative?

Creating an OSM account to conduct the e2e test? Would that be feasible?

Also good point!

I will hold off from merging and look at playwright options for login πŸ‘

Could you look at the refresh action?

@NSUWAL123
Copy link
Contributor Author

Sure!

@NSUWAL123
Copy link
Contributor Author

@spwoodcock the /refresh endpoint called on the first load on mapper frontend has already been implemented by you.
You were mentioning this right? or I am confused.
image

@spwoodcock
Copy link
Member

Yes that's the one!
I must have forgot πŸ˜…
Looks like we are set then!
(I'll just fix up the playwright stuff tomorrow then merge)

@spwoodcock spwoodcock changed the title Feat/mapper login Mapper frontend login + remove temp auth from React frontend Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Related to frontend code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants