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

[MonitorExt] Mise en place de MonitorExt #1441

Open
wants to merge 3 commits into
base: thomas/ajout-cerbere
Choose a base branch
from

Conversation

claire2212
Copy link
Collaborator

Related Pull Requests & Issues


  • Tests E2E (Cypress)

@claire2212 claire2212 self-assigned this Jun 7, 2024
@claire2212 claire2212 changed the base branch from main to thomas/ajout-cerbere June 7, 2024 08:10
@claire2212 claire2212 marked this pull request as draft June 7, 2024 08:10
@claire2212 claire2212 marked this pull request as ready for review June 11, 2024 06:49
@@ -77,65 +77,65 @@ export function Map() {

{/* MAP */}
{/* @ts-ignore */}
<MeasurementLayer />
{isSuperUser && <MeasurementLayer />}
Copy link
Collaborator

Choose a reason for hiding this comment

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

suggestion : Regrouper les composants qui doivent vérifier qu'on doit etre SuperUser

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

non on ne peut pas car on doit passer les props de BaseMap, le fait d'ajouter <></>empêche ça

Copy link
Collaborator

@maximeperraultdev maximeperraultdev Jun 13, 2024

Choose a reason for hiding this comment

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

Ok mais on peut c'est possible d'avoir quelque chose dans le genre ?
{!isSuperUser ? <BaseMap>..</BaseMap> : <BaseMap></BaseMap> Avec les layers qui vont bien dans chacun des cas ?

frontend/src/pages/HomePage.tsx Show resolved Hide resolved
@@ -27,7 +27,7 @@ export function Login() {
return <Navigate to="/" />
}

if (auth?.isAuthenticated && isSuccess && user?.isSuperUser) {
if (auth?.isAuthenticated && isSuccess && !user?.isSuperUser) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

praise: héhé

@maximeperraultdev
Copy link
Collaborator

suggestion: Ajouter des tests e2e pour vérifier de ce que l'ont voit en lecture seule. (si c'est pas trop compliqué)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MonitorExt] Ouvrir l'application pour l'accès aux couches carto
2 participants