Title: Fix error messages in buildInfoXService · Issue #3089 · coder/coder · GitHub
Open Graph Title: Fix error messages in buildInfoXService · Issue #3089 · coder/coder
X Title: Fix error messages in buildInfoXService · Issue #3089 · coder/coder
Description: Problem The 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. Definition of done There are no uses of displayError in th...
Open Graph Description: Problem The 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. Definition of done...
X Description: Problem The 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. Definition of done...
Opengraph URL: https://github.com/coder/coder/issues/3089
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix error messages in buildInfoXService","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:49:13Z","url":"https://github.com/coder/coder/issues/3089"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:28bb799e-9068-26fc-06f1-f59f3ff44551 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1E4:22DB35:2B1C1B0:36FEE22:6B019DAA |
| html-safe-nonce | 69feaa875a1e84f21b1ee9154ce9643bffc698d47b6fe83e46c41c46eeaefc50 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUU0OjIyREIzNToyQjFDMUIwOjM2RkVFMjI6NkIwMTlEQUEiLCJ2aXNpdG9yX2lkIjoiNDk2ODQ0NTI5MjUyNjU0MjI1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8b2c4c5e6825c50c5a16d9d43104896ad7b619e86cc02104a56f3d0ff58694ff |
| hovercard-subject-tag | issue:1313383130 |
| 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/_view_fragments/issues/show/coder/coder/3089/issue_layout |
| twitter:image | https://opengraph.githubassets.com/775796691cf3e933a4dda07eacd8ffc92e0f02e0f64a405f3c9fc19b96be251c/coder/coder/issues/3089 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/775796691cf3e933a4dda07eacd8ffc92e0f02e0f64a405f3c9fc19b96be251c/coder/coder/issues/3089 |
| og:image:alt | Problem The 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. Definition of done... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | presleyp |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| 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