Commit Graph

44 Commits

Author SHA1 Message Date
Łukasz Mierzwa
4eacd18cf6 fix(ui): drop react-onclickoutside
use a custom hook instad
2020-05-13 17:56:00 +01:00
Łukasz Mierzwa
65e7f7e33d fix(ui): rewrite AlertManagerInput with hooks 2020-05-11 12:49:24 +01:00
Łukasz Mierzwa
60bdf96be1 feat(ui): use hooks for fetch requests 2020-05-11 12:49:24 +01:00
Łukasz Mierzwa
5a85ec239d fix(ui): rewrite FaviconBadge using hooks 2020-04-17 15:03:14 +01:00
Łukasz Mierzwa
7eaa7cbf34 fix(ui): add animation settings to the theme context 2020-04-16 10:06:33 +01:00
Łukasz Mierzwa
2db0344a70 fix(tests): don't duplicate storybook grids 2020-03-31 11:12:44 +01:00
Łukasz Mierzwa
65a9623fb0 fix(tests): render grids on storybook 2020-03-31 09:16:56 +01:00
Łukasz Mierzwa
0efd3a9d3c fix(ui): correctly pass UI defaults from config 2020-03-31 09:16:55 +01:00
Łukasz Mierzwa
ec1705a0f0 feat(ui): support multiple grids in the UI 2020-03-31 09:16:55 +01:00
Łukasz Mierzwa
1fc6aaf949 fix(tests): update mocks with grids 2020-03-31 09:16:55 +01:00
Łukasz Mierzwa
c12f218b4e fix(ui): reformat code using prettier v2 2020-03-25 21:43:39 +00:00
Łukasz Mierzwa
26963b4d3b feat(ui): add a pagination component with keyboard shortcuts 2020-02-29 10:16:41 +00:00
Łukasz Mierzwa
1f22a11e14 fix(ui): use CORS credential settings from each alertmanager configuration
Fixes #1432
2020-02-19 12:10:42 +00:00
Łukasz Mierzwa
d0f59977b0 fix(ui): remove alertmanager API V1 support 2020-02-12 16:09:55 +00:00
Łukasz Mierzwa
3df4d27efc feat(ui): disable silence actions for read-only alertmanagers 2020-01-28 22:26:56 +00:00
Łukasz Mierzwa
378866ae34 fix(ui): remove hash tests, it's no longer exposed in the API 2020-01-06 22:23:16 +00:00
Łukasz Mierzwa
cc4da6d16b feat(ui): follow browser preferences when setting theme 2019-11-29 22:00:41 +00:00
Łukasz Mierzwa
a7b409e661 fix(ui): reduce bundle size 2019-11-29 15:58:16 +00:00
Łukasz Mierzwa
5b4b218272 fix(storybook): add missing fetch mocks 2019-11-28 14:16:13 +00:00
Łukasz Mierzwa
c184323f09 fix(storybook): remove duplicated prop 2019-11-28 12:21:35 +00:00
Łukasz Mierzwa
f3e2ed2b00 feat(storybook): add more stories to storybook 2019-11-26 23:36:07 +00:00
Łukasz Mierzwa
ae86f9f10c fix(ui): migrate to @silence_ticket filters 2019-11-11 23:24:06 +00:00
Łukasz Mierzwa
63a3d2a30b feat(ui): allow acknowledging alerts using short lived silences 2019-11-05 14:11:23 +00:00
Łukasz Mierzwa
794607919a feat(ui): experimental dark theme
Very ugly, might be buggy, but need to start somewhere
2019-10-28 18:38:12 +00:00
Łukasz Mierzwa
f43d9ece7d feat(ui): ui default settings are populated from the config file 2019-10-04 23:28:34 +01:00
Łukasz Mierzwa
80c30f1879 fix(ui): pass configured alertmanager headers when making requests from the browser
Right now configured headers are only set on requests made from the backend to alertmanager API.
With this change fetch() calls in the browser will use those headers if proxy mode is not enabled.
2019-09-26 20:37:23 +01:00
Łukasz Mierzwa
96b775dcb1 fix(tests): move node mocks to the ui folder
react-scripts 3.1.x fails while running all tests, this was caused by mocks being no longer loaded properly.
Looks like jsconfig.json options are now enforced and since ui/src is the root of the projects mock files
need to move there
2019-08-14 14:50:09 +01:00
Łukasz Mierzwa
6b497217d9 fix(backend): remove endsAt from alerts
This is unused but keeps changing
2019-08-08 15:45:00 +01:00
Łukasz Mierzwa
f0fee594d9 feat(api): add labels stats to the api response
These will be used by an overview modal, showing top labels.
2019-07-09 23:03:01 +01:00
Łukasz Mierzwa
8242ec64f8 feat(ui): use silence form settings exposed via the backend API
Silence form when populating matchers from alerts or alert groups will now ignore labels listed in silenceForm:strip:labels
2019-04-29 20:54:17 +01:00
Łukasz Mierzwa
41cca9e501 feat(ui): deduplicate silences
If all alerts in a group are silenced and the same silence ID is used for all of them then there's no point in rendering silence object for each of the alerts, since they are all identical. Move the silence rendering to the footer if that happens so we save screen space
2019-03-08 17:41:22 +00:00
Łukasz Mierzwa
f099ccc0ea feat(ui): render an indicator icon when alert is inhibited
Right now we don't mark inhibted alerts in any way, so they look like silenced alerts with no silence details. Add an icon with tooltip so inhibited alerts can be easily distinguished from silenced onces
2019-03-05 11:02:08 +00:00
Łukasz Mierzwa
3bd6ebbf3a feat(ui): use grid sorting settings from the API as defaults 2019-02-20 22:24:54 +00:00
Łukasz Mierzwa
397bbe5783 feat(config): allow configuring label value mapping for sorting
This feature solves the problem of sorting by label when values have special meaning and alphabetic sort doesn't make sense for it.
2019-02-18 23:17:47 +00:00
Łukasz Mierzwa
a3ef1dd40e chore(api): drop counters from API response
Not used by any UI code, remove it.
2019-01-05 11:52:45 +00:00
Łukasz Mierzwa
9f4ee09a56 fix(ui): only show one silence per Alertmanager cluster
HA clusters share silences which means that they are currently duplicated for each alertmanager instance in that cluster
2018-12-01 10:47:24 +00:00
Łukasz Mierzwa
3a905b748e feat(api): consume Alertmanager cluster id in the UI 2018-12-01 09:57:59 +00:00
Łukasz Mierzwa
fd2e852050 feat(ui): consumer Alertmanager version and cluster members 2018-11-30 18:35:34 +00:00
Łukasz Mierzwa
af6c166259 feat(ui): allow editing exiting silences
Fixes #87
2018-10-01 21:26:51 +01:00
Łukasz Mierzwa
455cb288ca fix(tests): alert.alertmanager doesn't have uri key 2018-09-30 09:23:43 +01:00
Łukasz Mierzwa
af65a988b5 feat(tests): add silenceFormStore tests 2018-08-25 18:27:49 +01:00
Łukasz Mierzwa
210da0a5ba refactor(tests): use jest-mock-console for mocking console calls 2018-08-22 15:46:03 +01:00
Łukasz Mierzwa
99f5f3999e refactor(tests): use jest-fetch-mock for mocking fetch() calls 2018-08-22 15:34:58 +01:00
Łukasz Mierzwa
9fe6494830 feat(test): add mock modules for fetch() and console 2018-08-21 18:43:37 +01:00