Title: Fix error messages in workspacesXService · Issue #3096 · coder/coder · GitHub
Open Graph Title: Fix error messages in workspacesXService · Issue #3096 · coder/coder
X Title: Fix error messages in workspacesXService · Issue #3096 · coder/coder
Description: Secure environments for developers and their agents - Fix error messages in workspacesXService · Issue #3096 · coder/coder
Open Graph Description: Secure environments for developers and their agents - Fix error messages in workspacesXService · Issue #3096 · coder/coder
X Description: Secure environments for developers and their agents - Fix error messages in workspacesXService · Issue #3096 · coder/coder
Opengraph URL: https://github.com/coder/coder
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix error messages in workspacesXService","articleBody":"### Problem\r\nThe frontend does not always display the error messages sent from the backend, and even when it does, it does not display the `detail` that is sometimes sent along with it. \r\n\r\n### Definition of done\r\n- [ ] There are no uses of `displayError` in this XService. To replace the error snackbar, render `ErrorSummary` in the relevant components with the `dismissible` prop. This way, the user can expand the error detail if desired without the snackbar disappearing too soon.\r\n- [ ] There are no uses of `getFormHelpers` in the components that consume errors from this XService. Switch to `getFormHelpersWithError` even if no error. (We will eventually rename it to replace the original `getFormHelpers`.)\r\n- [ ] The XService always `assign`s the API error, rather than a hard-coded error message. If a hard-coded error message is needed as a fallback, send it as a prop to `ErrorSummary`.\r\n- [ ] Errors are only unpacked/transformed in `ErrorSummary` and `getFormHelpersWithError`.\r\n- [ ] Storybook has a story for when the error(s) are showing.","author":{"url":"https://github.com/presleyp","@type":"Person","name":"presleyp"},"datePublished":"2022-07-21T14:51:33Z","url":"https://github.com/coder/coder/issues/3096"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:2040521c-4ab9-2811-a8b3-787b900845c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7A8:10531B:1C220BB:23FA01B:6B019DD4 |
| html-safe-nonce | c00fcf6aeafddd1cffc693a7f3469aa8d403a1f9b43d86050c9e4b2dd0223d88 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0E4OjEwNTMxQjoxQzIyMEJCOjIzRkEwMUI6NkIwMTlERDQiLCJ2aXNpdG9yX2lkIjoiNjYyNjU1MzI2NzIzOTM2MjAwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e8b6825ea10f7c1407bbc6eeee2dd279a0d8c993584f6d0de9e9bfbfb7add8b4 |
| hovercard-subject-tag | repository:440752086 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/coder/coder/issues/3096 |
| twitter:image | https://repository-images.githubusercontent.com/440752086/eb56ccad-14f2-4c61-a024-20d1e77296c1 |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/440752086/eb56ccad-14f2-4c61-a024-20d1e77296c1 |
| og:image:alt | Secure environments for developers and their agents - Fix error messages in workspacesXService · Issue #3096 · coder/coder |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width