Skip to content

Feat/add alert page#191

Open
theo-rodrigues-dev wants to merge 4 commits intomainfrom
feat/add-alert-page
Open

Feat/add alert page#191
theo-rodrigues-dev wants to merge 4 commits intomainfrom
feat/add-alert-page

Conversation

@theo-rodrigues-dev
Copy link
Copy Markdown
Collaborator

@theo-rodrigues-dev theo-rodrigues-dev commented Mar 25, 2026

  • Add alert page by id
  • Add Share button
Enregistrement.de.l.ecran.2026-03-25.a.13.29.58.mov

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
new-pyro-platform Ready Ready Preview, Comment Mar 25, 2026 0:25am

Copy link
Copy Markdown
Member

@fe51 fe51 left a comment

Choose a reason for hiding this comment

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

Just a functional review from my end.
Thanks for the PR ! ! Having a dedicated page for alerts will be handy for sharing them !

Indeed, the need to scroll isn’t incredible
Also, on a large screen, see screenshot, it leads to this kin. of display, wich is acceptable but not perfect -> This situation that makes us want to address #192 :)

It’s approved as-is for me, since the next updates should be released before users start using this feature (barring accidental discovery by a curious firefighter clicking the “share” button)

Thanks !

Image

</Grid>
</Grid>
)}
<Snackbar
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This snackbar is not visible (too far from the button). Maybe we ca reuse the tooltip from the button "CopyToClipboard" ?

queryFn: getCameraList,
});

const alertsList: AlertType[] = useMemo(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It's weird to have an alerts list in a signel alert page
If the mapper mapAlertTypeApiToAlertType takes only a list, maybe we can reafctor the function like this :
mapOneAlertApiToAlertType(alert: AlertApi, cameras: Camera[])

mapListAlertApiToAlertType(alertList: AlertApi[], cameras: Camera[]) {
alertList.map(alert -> mapOneAlertApiToAlertType(alert, cameras);
}

}
},
"alertPage": {
"forbiddenTitle": "Accès refusé",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Those labels aren't used. Maybe we can redirect to dedicated pages. We already have an ErrorPage
We might need also a forbidden page

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Dedicated Page for an Alert As a user, I want to be able to open one alert directly

3 participants