Commit graph

9 commits

Author SHA1 Message Date
e2d13ca64c deps: react-router-dom 4 -> 6 (history 5, react-router-bootstrap 0.26)
Removes the Router/Switch/Route/Link/LinkContainer legacy-context
warnings. Keeps the shared history singleton (used outside React by
NotificationsObserver + Utils/location) via unstable_HistoryRouter, and
bridges v6 hooks back to v4-shaped history/match/location props with a
new withRouterCompat HOC so the ~20 class pages stay untouched.

- <Switch> -> <Routes>, component= -> element=
- Authenticated/Public -> guard components (children or <Navigate replace>)
- LocationListener -> useLocation + useEffect function
- regex route /fire/:type(active|archive|alert)/:id -> /fire/:type/:id
- history.listen callback is ({ location }) in history v5

Browser-verified: SPA nav, /subscriptions->/login auth redirect,
deep-link /fire/archive/:id (params), browser back/forward. REST smoke
byte-identical.
2026-07-21 13:00:15 +02:00
a997aa7cae cleanup: silence our own React dev-console warnings
UNSAFE_ rename of our 4 componentWillReceiveProps (FireStats, Fires, FromNow,
SelectionMap) and Authenticated/Public component propType func -> elementType.
Rest of the console noise is legacy react-* dev-mode warnings, absent in prod.
2026-07-18 05:47:44 +02:00
cleverbeagle
518fb7d9de move logout functionality to logout page 2017-09-07 10:11:58 -05:00
cleverbeagle
f308d32739 add pili's fix on Public and Authenticated routes 2017-09-07 09:23:28 -05:00
pilarArr
efd7e23fae fix props not passed down to rendered component 2017-09-06 13:08:07 +02:00
cleverbeagle
e763aebb11 remove unnecessary loggingIn check when rendering authenticated and public routes 2017-07-09 17:36:31 -05:00
cleverbeagle
e9517bd80b fix PropTypes import from react package throwing warning 2017-06-14 11:42:28 -05:00
cleverbeagle
b0270cc98b add oauth flows, profile, logout page, and index page 2017-05-29 22:02:22 -05:00
cleverbeagle
cdc15f019d wip Pup 1.0.0 2017-05-23 20:05:46 -05:00