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

feat(ui): use toasts for error messages #2147

Merged
merged 1 commit into from
Sep 7, 2020
Merged

feat(ui): use toasts for error messages #2147

merged 1 commit into from
Sep 7, 2020

Conversation

prymitive
Copy link
Owner

No description provided.

@prymitive
Copy link
Owner Author

Webpack bundle size diff

Total diff: +29.3 KB

+ build/static/css/17.17e68ace.chunk.css 207.5 KB +207.5 KB
+ Fonts.scss 7 B +7 B
+ LightTheme.scss 172 B +172 B
+ [unmapped] 0 B
+ bootstrap 85.6 KB +85.6 KB
+ 17.17e68ace.chunk.css 35 B +35 B
+ LightThemeLoader.scss 110.2 KB +110.2 KB
+ Components 8.6 KB +8.6 KB
+ react-input-range 1.5 KB +1.5 KB
+ [sourceMappingURL] 49 B +49 B
+ bootswatch 1.3 KB +1.3 KB
+ [EOLs] 1 B +1 B
+ build/static/css/16.37158105.chunk.css 203.5 KB +203.5 KB
+ Fonts.scss 7 B +7 B
+ [unmapped] 0 B
+ 16.37158105.chunk.css 35 B +35 B
+ DarkThemeLoader.scss 106.9 KB +106.9 KB
+ bootstrap 85 KB +85 KB
+ DarkTheme.scss 201 B +201 B
+ Components 8.6 KB +8.6 KB
+ react-input-range 1.5 KB +1.5 KB
+ [sourceMappingURL] 49 B +49 B
+ bootswatch 1.2 KB +1.2 KB
+ [EOLs] 1 B +1 B
M build/static/js/3.312b6ada.chunk.js 20.5 KB 88.5 KB +68.1 KB
- Components/ToggleIcon 274 B -274 B
- Components/Grid/AlertGrid/AlertGroup/Annotation 1.3 KB -1.3 KB
M [no source] 1.4 KB 695 B -755 B
- Components/LabelSetList 1.2 KB -1.2 KB
- Components/Labels/FilteringCounterBadge 870 B -870 B
- Components/ManagedSilence 10.1 KB -10.1 KB
- Components/DateFromNow 451 B -451 B
- Common 293 B -293 B
- Components/Labels/StaticLabel 316 B -316 B
- Hooks 2.3 KB -2.3 KB
- Components/Pagination 1.1 KB -1.1 KB
- Components/PaginatedAlertList 809 B -809 B
+ memoize-one 311 B +311 B
+ @babel 108 B +108 B
+ @emotion 15.7 KB +15.7 KB
+ @FortAwesome 563 B +563 B
+ react-select 66 KB +66 KB
+ react-input-autosize 5.1 KB +5.1 KB
M build/static/js/1.4d3a85d7.chunk.js 50.7 KB 66.1 KB +15.3 KB
- react-popper 3.7 KB -3.7 KB
M date-fns 318 B 8.6 KB +8.3 KB
- react-fast-compare 1.6 KB -1.6 KB
- body-scroll-lock 2.4 KB -2.4 KB
- hotkeys-js 5.2 KB -5.2 KB
M [no source] 1.6 KB 15.4 KB +13.8 KB
M @babel 541 B 121 B -420 B
- babel-preset-react-app 739 B -739 B
- ../../src 3.5 KB -3.5 KB
- warning 32 B -32 B
- react-cool-dimensions 3.7 KB -3.7 KB
- @popperjs 17.4 KB -17.4 KB
M [unmapped] 223 B 163 B -60 B
M react-transition-group 6 KB 2.4 KB -3.6 KB
M @FortAwesome 3.2 KB 13.2 KB +10 KB
- dom-helpers 612 B -612 B
+ paginator 797 B +797 B
+ react-js-pagination 9.1 KB +9.1 KB
+ mobx-react-lite 717 B +717 B
+ react-linkify 2.5 KB +2.5 KB
+ copy-to-clipboard 1.7 KB +1.7 KB
+ classnames 446 B +446 B
+ uc.micro 2.1 KB +2.1 KB
+ toggle-selection 408 B +408 B
+ linkify-it 8.4 KB +8.4 KB
M build/static/js/9.ce7f55ef.chunk.js 30.3 KB 56.3 KB +26 KB
M [no source] 12.6 KB 2.7 KB -9.9 KB
- ../../../src/js 13 B -13 B
- ../../../../src/js/utils 469 B -469 B
- @FortAwesome 683 B -683 B
M [unmapped] 231 B 178 B -53 B
- lodash.debounce 1.6 KB -1.6 KB
- autobind-decorator 1 KB -1 KB
- ../../../../src/js/input-range 13.7 KB -13.7 KB
+ Components/Grid/AlertGrid/AlertGroup/Annotation 1.3 KB +1.3 KB
+ Components/Pagination 1.1 KB +1.1 KB
+ Components/Grid/AlertGrid/AlertGroup 4 KB +4 KB
+ Components/Grid/AlertGrid/AlertGroup/GroupFooter 1.3 KB +1.3 KB
+ Components/AlertAck 2.7 KB +2.7 KB
+ Components/PaginatedAlertList 809 B +809 B
+ Components/Grid/ReloadNeeded 663 B +663 B
+ Components/Grid/EmptyGrid 143 B +143 B
+ Components/ManagedSilence 10.1 KB +10.1 KB
+ Components/Labels/FilteringCounterBadge 870 B +870 B
+ Components/LabelSetList 1.2 KB +1.2 KB
+ Components/Labels/StaticLabel 316 B +316 B
+ Components/Modal 1.3 KB +1.3 KB
+ Components/InhibitedByModal 953 B +953 B
+ Components/Labels 778 B +778 B
+ Components/Animations/DropdownSlide 184 B +184 B
+ Components/Grid/UpgradeNeeded 614 B +614 B
+ Components/CenteredMessage 284 B +284 B
+ Common 1.6 KB +1.6 KB
+ Components/Grid/AlertGrid/AlertGroup/Alert 4.4 KB +4.4 KB
+ Components/Grid 721 B +721 B
+ Components/ToggleIcon 274 B +274 B
+ Components/Grid/AlertGrid 5.1 KB +5.1 KB
+ Components/Grid/AlertGrid/AlertGroup/GroupHeader 3.9 KB +3.9 KB
+ Components/Grid/FatalError 338 B +338 B
+ Hooks 5.9 KB +5.9 KB
+ Components/FetchPauser 143 B +143 B
+ Components/TooltipWrapper 1.4 KB +1.4 KB
+ Components/DateFromNow 451 B +451 B
+ Components/Labels/FilteringLabel 615 B +615 B
M build/static/js/13.e4fb5687.chunk.js 5.8 KB 48.6 KB +42.8 KB
- Components/Labels/LabelWithPercent 1.4 KB -1.4 KB
- Components/OverviewModal 2.5 KB -2.5 KB
M [no source] 249 B 2.1 KB +1.9 KB
- mobx-react-lite 717 B -717 B
- @FortAwesome 563 B -563 B
+ Components/Grid/AlertGrid/AlertGroup/Annotation 1.3 KB +1.3 KB
+ Components/SilenceModal/SilenceMatch 3.8 KB +3.8 KB
+ Components/Pagination 1.1 KB +1.1 KB
+ Components/SilenceModal/AlertManagerInput 1006 B +1006 B
+ Components/SilenceModal/Browser 3.3 KB +3.3 KB
+ Components/PaginatedAlertList 809 B +809 B
+ Components/SilenceModal/DateTimeSelect 7.5 KB +7.5 KB
+ Components/SilenceModal/SilencePreview 729 B +729 B
+ Components/ManagedSilence 10.1 KB +10.1 KB
+ Components/Labels/FilteringCounterBadge 870 B +870 B
+ Components/LabelSetList 1.2 KB +1.2 KB
+ Components/SilenceModal/SilenceSubmit 3.7 KB +3.7 KB
+ Components/SilenceModal 7 KB +7 KB
+ Components/Labels/StaticLabel 316 B +316 B
+ Components/Modal 255 B +255 B
+ Common 293 B +293 B
+ Hooks 2.3 KB +2.3 KB
+ Components/SilenceModal/PayloadPreview 180 B +180 B
+ Components/DateFromNow 451 B +451 B
+ Components/ValidationError 137 B +137 B
M build/static/js/2.115d1084.chunk.js 88.5 KB 43.3 KB -45.2 KB
M [unmapped] 90 B 223 B +133 B
- memoize-one 311 B -311 B
M [no source] 695 B 1.3 KB +660 B
- @babel 108 B -108 B
- @emotion 15.7 KB -15.7 KB
M @FortAwesome 563 B 3.2 KB +2.7 KB
- react-select 66 KB -66 KB
- react-input-autosize 5.1 KB -5.1 KB
M [EOLs] 1 B 2 B +1 B
+ react-popper 3.7 KB +3.7 KB
+ hotkeys-js 5.2 KB +5.2 KB
+ react-fast-compare 1.6 KB +1.6 KB
+ body-scroll-lock 2.4 KB +2.4 KB
+ babel-preset-react-app 739 B +739 B
+ date-fns 318 B +318 B
+ ../../src 3.5 KB +3.5 KB
+ warning 32 B +32 B
+ @popperjs 17.4 KB +17.4 KB
+ react-cool-dimensions 3.7 KB +3.7 KB
M build/static/js/10.4c8db351.chunk.js 16.5 KB 30.3 KB +13.8 KB
- bricks.js 2.6 KB -2.6 KB
M [no source] 412 B 12.6 KB +12.2 KB
- fontfaceobserver 4.1 KB -4.1 KB
M @FortAwesome 7.6 KB 683 B -6.9 KB
M [unmapped] 91 B 232 B +141 B
+ ../../../src/js 13 B +13 B
+ ../../../../src/js/utils 469 B +469 B
+ autobind-decorator 1 KB +1 KB
+ ../../../../src/js/input-range 13.7 KB +13.7 KB
M build/static/js/12.de097657.chunk.js 36.4 KB 26.8 KB -9.7 KB
M [no source] 1.3 KB 1.3 KB +80 B
- Components/Grid/AlertGrid/AlertGroup 4 KB -4 KB
- Components/Grid/AlertGrid/AlertGroup/GroupFooter 1.3 KB -1.3 KB
- Components/AlertAck 2.7 KB -2.7 KB
- Components/Grid/ReloadNeeded 663 B -663 B
- Components/Grid/EmptyGrid 143 B -143 B
- Components/Grid/UpstreamError 311 B -311 B
- Components/InhibitedByModal 953 B -953 B
- Components/Grid/UpgradeNeeded 614 B -614 B
- Components/CenteredMessage 284 B -284 B
- Components/Grid/AlertGrid/AlertGroup/Alert 4.4 KB -4.4 KB
- Components/Grid 917 B -917 B
- Components/Grid/AlertGrid 5.1 KB -5.1 KB
- Components/Grid/AlertGrid/AlertGroup/GroupHeader 3.9 KB -3.9 KB
- Components/Grid/FatalError 338 B -338 B
M Hooks 3.6 KB 3 KB -665 B
- Components/FetchPauser 143 B -143 B
- Components/Labels/FilteringLabel 615 B -615 B
+ Components/MainModal 969 B +969 B
+ Components/NavBar 2.1 KB +2.1 KB
+ Components/OverviewModal 971 B +971 B
+ Components/Labels/FilterInputLabel 1.3 KB +1.3 KB
+ Components/InlineEdit 711 B +711 B
+ Components/Fetcher 3.5 KB +3.5 KB
+ Components/Labels/HistoryLabel 308 B +308 B
+ Components/SilenceModal 1 KB +1 KB
+ Components/NavBar/FilterInput 6.4 KB +6.4 KB
M build/static/js/18.2628262b.chunk.js 28.2 KB 20.5 KB -7.7 KB
- Components/SilenceModal/SilenceSubmit 3.7 KB -3.7 KB
- Components/SilenceModal/DateTimeSelect 7.5 KB -7.5 KB
- Components/SilenceModal 7 KB -7 KB
- Components/SilenceModal/AlertManagerInput 1006 B -1006 B
- Components/SilenceModal/SilenceMatch 3.8 KB -3.8 KB
M [no source] 677 B 300 B -377 B
- Components/SilenceModal/SilencePreview 729 B -729 B
- Components/SilenceModal/PayloadPreview 180 B -180 B
- Components/ValidationError 137 B -137 B
- Components/SilenceModal/Browser 3.3 KB -3.3 KB
+ Components/ToggleIcon 274 B +274 B
+ Components/MainModal 9.9 KB +9.9 KB
+ Components/MainModal/Configuration 9 KB +9 KB
+ Components/Accordion 649 B +649 B
M build/static/js/11.aa3ed4da.chunk.js 26.8 KB 16.5 KB -10.3 KB
- Components/MainModal 968 B -968 B
- Components/NavBar 2.1 KB -2.1 KB
- Components/OverviewModal 971 B -971 B
- Components/Modal 1.3 KB -1.3 KB
M [no source] 1.3 KB 412 B -961 B
- Components/Labels 778 B -778 B
- Components/Labels/FilterInputLabel 1.3 KB -1.3 KB
- Components/TooltipWrapper 1.4 KB -1.4 KB
- Components/InlineEdit 711 B -711 B
- Components/Fetcher 3.5 KB -3.5 KB
- Components/Labels/HistoryLabel 308 B -308 B
- Components/Animations/DropdownSlide 184 B -184 B
- Common 1.3 KB -1.3 KB
M [unmapped] 179 B 91 B -88 B
- Hooks 3 KB -3 KB
- Components/SilenceModal 1 KB -1 KB
- Components/NavBar/FilterInput 6.4 KB -6.4 KB
+ bricks.js 2.6 KB +2.6 KB
+ fontfaceobserver 4.1 KB +4.1 KB
+ @FortAwesome 7.6 KB +7.6 KB
+ lodash.debounce 1.6 KB +1.6 KB
+ build/static/css/11.073328ab.chunk.css 11 KB +11 KB
+ [sourceMappingURL] 49 B +49 B
+ csshake-slow.css 10.7 KB +10.7 KB
+ [unmapped] 191 B +191 B
+ [EOLs] 8 B +8 B
M build/static/js/19.bf6f7f0e.chunk.js 769 B 9.3 KB +8.5 KB
- Components/InhibitedByModal 632 B -632 B
M [unmapped] 91 B 152 B +61 B
M [EOLs] 1 B 2 B +1 B
+ [no source] 147 B +147 B
+ favico.js 8.5 KB +8.5 KB
+ Components/FaviconBadge 439 B +439 B
M build/static/js/14.21bcd5a2.chunk.js 211 B 8.2 KB +8 KB
- Styles 49 B -49 B
M [no source] 25 B 381 B +356 B
M [unmapped] 91 B 159 B +68 B
+ @babel 121 B +121 B
+ @FortAwesome 2.6 KB +2.6 KB
+ react-transition-group 2.4 KB +2.4 KB
+ Components/Toast 2.5 KB +2.5 KB
M build/static/js/0.b5939c5f.chunk.js 66.1 KB 7.5 KB -58.6 KB
- date-fns 8.6 KB -8.6 KB
- paginator 797 B -797 B
- react-js-pagination 9.1 KB -9.1 KB
M [unmapped] 163 B 90 B -73 B
M [no source] 15.4 KB 215 B -15.2 KB
- mobx-react-lite 717 B -717 B
- react-linkify 2.5 KB -2.5 KB
- copy-to-clipboard 1.7 KB -1.7 KB
- classnames 446 B -446 B
- @FortAwesome 13.2 KB -13.2 KB
- uc.micro 2.1 KB -2.1 KB
M react-transition-group 2.4 KB 6 KB +3.6 KB
- toggle-selection 408 B -408 B
- linkify-it 8.4 KB -8.4 KB
M @babel 121 B 541 B +420 B
M [EOLs] 2 B 1 B -1 B
+ dom-helpers 612 B +612 B
M build/static/js/15.ce82b867.chunk.js 211 B 5.8 KB +5.6 KB
- Styles 49 B -49 B
M [no source] 25 B 249 B +224 B
+ Components/ToggleIcon 274 B +274 B
+ Components/Labels/LabelWithPercent 1.4 KB +1.4 KB
+ Components/OverviewModal 2.5 KB +2.5 KB
+ mobx-react-lite 717 B +717 B
+ @FortAwesome 563 B +563 B
+ build/static/js/20.842418d7.chunk.js 769 B +769 B
+ Components/InhibitedByModal 632 B +632 B
+ [sourceMappingURL] 45 B +45 B
+ [unmapped] 91 B +91 B
+ [EOLs] 1 B +1 B
M build/static/js/16.f2f121e1.chunk.js 20.5 KB 211 B -20.3 KB
- Components/ToggleIcon 274 B -274 B
- Components/MainModal 9.9 KB -9.9 KB
- Components/Modal 255 B -255 B
M [no source] 300 B 25 B -275 B
- Components/MainModal/Configuration 9 KB -9 KB
- Components/Accordion 649 B -649 B
+ Styles 49 B +49 B
M build/static/js/17.b39dd4bf.chunk.js 9.3 KB 211 B -9.1 KB
M [no source] 147 B 25 B -122 B
- favico.js 8.5 KB -8.5 KB
M [unmapped] 152 B 91 B -61 B
- Components/FaviconBadge 439 B -439 B
M [EOLs] 2 B 1 B -1 B
+ Styles 49 B +49 B
- build/static/css/10.073328ab.chunk.css 11 KB -11 KB
- [sourceMappingURL] 49 B -49 B
- csshake-slow.css 10.7 KB -10.7 KB
- [unmapped] 191 B -191 B
- [EOLs] 8 B -8 B
- build/static/css/14.19aebda7.chunk.css 202.9 KB -202.9 KB
- Fonts.scss 7 B -7 B
+ [unmapped] 0 B
- DarkThemeLoader.scss 106.7 KB -106.7 KB
- bootstrap 85 KB -85 KB
- DarkTheme.scss 201 B -201 B
- 14.19aebda7.chunk.css 35 B -35 B
- Components 8.1 KB -8.1 KB
- react-input-range 1.5 KB -1.5 KB
- [sourceMappingURL] 49 B -49 B
- bootswatch 1.2 KB -1.2 KB
- [EOLs] 1 B -1 B
- build/static/css/15.7325cd33.chunk.css 206.9 KB -206.9 KB
- Fonts.scss 7 B -7 B
- LightTheme.scss 172 B -172 B
+ [unmapped] 0 B
- bootstrap 85.6 KB -85.6 KB
- 15.7325cd33.chunk.css 35 B -35 B
- LightThemeLoader.scss 110.1 KB -110.1 KB
- Components 8.1 KB -8.1 KB
- react-input-range 1.5 KB -1.5 KB
- [sourceMappingURL] 49 B -49 B
- bootswatch 1.3 KB -1.3 KB
- [EOLs] 1 B -1 B

@prymitive prymitive merged commit da5ecf1 into master Sep 7, 2020
@prymitive prymitive deleted the toats branch September 7, 2020 14:24
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant