Title: Create new component to display error messages with details · Issue #3106 · coder/coder · GitHub
Open Graph Title: Create new component to display error messages with details · Issue #3106 · coder/coder
X Title: Create new component to display error messages with details · Issue #3106 · coder/coder
Description: Secure environments for developers and their agents - Create new component to display error messages with details · Issue #3106 · coder/coder
Open Graph Description: Secure environments for developers and their agents - Create new component to display error messages with details · Issue #3106 · coder/coder
X Description: Secure environments for developers and their agents - Create new component to display error messages with details · Issue #3106 · coder/coder
Opengraph URL: https://github.com/coder/coder
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Create new component to display error messages with details","articleBody":"## Problem\r\nThe backend now sends both an error message and, when possible, an error detail. The user needs to be able to see both of them, but we also need to delineate or hide the detail in some way so that the error message doesn't look overwhelming or unprofessional.\r\n\r\n## Solution\r\n- Display the error message, and have a collapsible section for the error detail.\r\n- Make the component dismissible so that it can take the place of a snackbar error message, because a snackbar error message with a collapsible section is not great UX. This way we have the ephemerality of a snackbar but the user is in control, giving them time to read the detail if they want to.\r\n\r\n## Definition of done\r\nThere is a reusable component that displays error messages. It can be configured to:\r\n- be dismissed by the user\r\n- be expanded by the user to display the error detail\r\n\r\n---\r\n\r\nIn order to support backend error messages with details on the frontend, we want to create a generic static component (as compared to the dynamic Snackbar) that displays the error message, show details in a collapsible section and can be configured to be dismissible. \r\n\r\nUse cases for such a component can be to display generic error messages on top of the page, or on top of a form.","author":{"url":"https://github.com/AbhineetJain","@type":"Person","name":"AbhineetJain"},"datePublished":"2022-07-22T04:59:25Z","url":"https://github.com/coder/coder/issues/3106"}
| 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:64ea011e-403d-2859-dd50-3508a0014a26 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B736:2E124E:26A98F8:315A24C:6B019DD1 |
| html-safe-nonce | 04ba9ca85f16f4e968b8272da78a3e861a3813881db5f797f0f65cc32f13fdd5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzM2OjJFMTI0RToyNkE5OEY4OjMxNUEyNEM6NkIwMTlERDEiLCJ2aXNpdG9yX2lkIjoiMTM0NTUxODA3NDg2MTgyMTM5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 704d631eac4f2bb0e6ed67c58a796cb8414a8bd3461edfc18b70f5e4b29b3850 |
| 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/3106 |
| 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 - Create new component to display error messages with details · Issue #3106 · 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width