Skip to content
Permalink
Browse files
feat(error): Server error handler (DSP-710) (#355)
* chore: Update package-lock.json

* chore(error): Add fake error page (easteregg)

* feat(error): Clean up error component

* style(error): New (and renamed) error status images

* feat(error): Error handler to switch between error notifications

* chore(error): Use new error handler

* refactor(error): Add new errorhandler everywhere

* test(error): Fix tests to use new error handler

* test(error): Fix tests to use new error handler

* fix: Increase maximum budget for initial-es5

* chore: fix pr template

* refactor(style): delete commented line

* chore(error): Update error messages

* test(error): Add missing modules

Co-authored-by: Marcin Procyk <marcin.procyk@dasch.swiss>
  • Loading branch information
kilchenmann and mpro7 committed Jan 12, 2021
1 parent 9a19c32 commit d5b77bf89470d5bb63b7850ce1b98dbc02d87223
Showing with 812 additions and 18,113 deletions.
  1. +1 −1 .github/pull_request_template.md
  2. +2 −2 angular.json
  3. +42 −17,737 package-lock.json
  4. +5 −0 src/app/app-routing.module.ts
  5. +8 −2 src/app/main/cache/cache.service.spec.ts
  6. +5 −1 src/app/main/cache/cache.service.ts
  7. +1 −1 src/app/main/dialog/dialog.component.html
  8. +1 −1 src/app/main/dialog/dialog.component.ts
  9. +24 −0 src/app/main/error/error-handler.service.spec.ts
  10. +46 −0 src/app/main/error/error-handler.service.ts
  11. +14 −22 src/app/main/error/error.component.html
  12. +8 −7 src/app/main/error/error.component.scss
  13. +25 −18 src/app/main/error/error.component.spec.ts
  14. +88 −4 src/app/main/error/error.component.ts
  15. +2 −0 src/app/main/help/help.component.spec.ts
  16. +5 −5 src/app/main/help/help.component.ts
  17. +1 −3 src/app/main/main.component.html
  18. +4 −2 src/app/main/main.component.spec.ts
  19. +3 −3 src/app/main/main.component.ts
  20. +11 −2 src/app/project/board/board.component.ts
  21. +23 −17 src/app/project/collaboration/add-user/add-user.component.ts
  22. +15 −5 src/app/project/collaboration/collaboration.component.ts
  23. +4 −0 src/app/project/collaboration/select-group/select-group.component.spec.ts
  24. +4 −2 src/app/project/collaboration/select-group/select-group.component.ts
  25. +1 −6 src/app/project/list/list-info-form/list-info-form.component.html
  26. +19 −11 src/app/project/list/list-info-form/list-info-form.component.ts
  27. +14 −4 src/app/project/list/list-item-form/list-item-form.component.ts
  28. +13 −3 src/app/project/list/list-item/list-item.component.ts
  29. +17 −6 src/app/project/list/list.component.ts
  30. +13 −4 src/app/project/ontology/ontology-form/ontology-form.component.ts
  31. +13 −11 src/app/project/ontology/ontology.component.ts
  32. +4 −0 src/app/project/ontology/property-form/property-form.component.spec.ts
  33. +17 −6 src/app/project/ontology/property-form/property-form.component.ts
  34. +3 −8 src/app/project/ontology/resource-class-form/resource-class-form.component.html
  35. +10 −9 src/app/project/ontology/resource-class-form/resource-class-form.component.ts
  36. +12 −3 src/app/project/permission/permission.component.ts
  37. +1 −6 src/app/project/project-form/project-form.component.html
  38. +30 −20 src/app/project/project-form/project-form.component.ts
  39. +3 −1 src/app/project/project.component.ts
  40. +26 −11 src/app/system/projects/projects-list/projects-list.component.ts
  41. +7 −5 src/app/system/projects/projects.component.ts
  42. +29 −19 src/app/system/users/users-list/users-list.component.ts
  43. +12 −3 src/app/system/users/users.component.ts
  44. +17 −9 src/app/user/account/account.component.ts
  45. +5 −2 src/app/user/dashboard/dashboard.component.ts
  46. +15 −5 src/app/user/membership/membership.component.ts
  47. +13 −6 src/app/user/profile/profile.component.ts
  48. +1 −6 src/app/user/user-form/password-form/password-form.component.html
  49. +15 −10 src/app/user/user-form/password-form/password-form.component.ts
  50. +1 −6 src/app/user/user-form/user-form.component.html
  51. +26 −17 src/app/user/user-form/user-form.component.ts
  52. +12 −3 src/app/user/user-menu/user-menu.component.ts
  53. +4 −0 src/app/workspace/resource/resource-instance-form/resource-instance-form.component.spec.ts
  54. +22 −20 src/app/workspace/resource/resource-instance-form/resource-instance-form.component.ts
  55. +19 −0 src/assets/images/dsp-error-403.svg
  56. +19 −0 src/assets/images/dsp-error-404.svg
  57. +19 −0 src/assets/images/dsp-error-500.svg
  58. +19 −0 src/assets/images/dsp-error-503.svg
  59. +19 −0 src/assets/images/dsp-error.svg
  60. +0 −19 src/assets/images/knora-app-error-403.svg
  61. +0 −19 src/assets/images/knora-app-error-404.svg
  62. +0 −19 src/assets/images/knora-app-error.svg
  63. +0 −1 src/assets/style/_elements.scss
@@ -1,4 +1,4 @@
===REMOVE===
Important! Please follow the new guideline for setting the Pull Request title: https://docs.dasch.swiss/developers/dsp/contribution/#pull-request-guidelines
Important! Please follow the new guidelines for naming Pull Requests: https://docs.dasch.swiss/developers/dsp/contribution/#pull-request-guidelines
===REMOVE===
resolves DSP-
@@ -58,8 +58,8 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "7mb",
"maximumError": "7mb"
"maximumWarning": "8mb",
"maximumError": "8mb"
},
{
"type": "anyComponentStyle",
Loading

0 comments on commit d5b77bf

Please sign in to comment.