prometheus/web/ui/mantine-ui/src/state
Julius Volz b826c43987
Calculate path prefix directly in initial settings Redux value (#14981)
Without this, the page that is shown first renders once with an empty path
prefix value, since the settings update takes a render cycle to complete.
However, we only fetch certain data from the API exactly once for a given
page, and not for every re-render with changed path prefix value (and we
also wouldn't want to fetch it from the wrong location initially).

This duplicates the served endpoint list once more, but exporting them from
App.tsx would also have been dirty (hot reload only works when a file only
exports one component and nothing else, thus there'd be a linter warning).

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2024-09-30 14:22:40 +02:00
..
hooks.ts Clean up file hierarchy a bit, add some more comments 2024-04-09 12:36:53 +02:00
initializeFromLocalStorage.ts Build initial targets page 2024-04-03 14:43:03 +02:00
localStorageMiddleware.ts Implement query history 2024-09-04 17:25:34 +02:00
queryPageSlice.ts Add beginnings of a PromLens-style tree view 2024-09-04 17:43:08 +02:00
serviceDiscoveryPageSlice.ts Add initial Service Discovery page 2024-08-28 14:56:35 +02:00
settingsSlice.ts Calculate path prefix directly in initial settings Redux value (#14981) 2024-09-30 14:22:40 +02:00
store.ts Add initial Service Discovery page 2024-08-28 14:56:35 +02:00
targetsPageSlice.ts Better target table formatting, store filters in URL 2024-08-10 20:25:38 +02:00
useNotifications.ts Add notifications to the web UI when configuration reload fails. 2024-09-27 15:28:38 +02:00