Title: Replace User Context with User machine · Issue #434 · coder/coder · GitHub
Open Graph Title: Replace User Context with User machine · Issue #434 · coder/coder
X Title: Replace User Context with User machine · Issue #434 · coder/coder
Description: In accordance with https://www.notion.so/coderhq/v2-Frontend-State-Management-APPROVED-e5ccb3c6357649f9a9dc1a1b2a1b7a99, we will use a machine to encapsulate API calls about the current user and hold user state. replace UserContext with ...
Open Graph Description: In accordance with https://www.notion.so/coderhq/v2-Frontend-State-Management-APPROVED-e5ccb3c6357649f9a9dc1a1b2a1b7a99, we will use a machine to encapsulate API calls about the current user and ho...
X Description: In accordance with https://www.notion.so/coderhq/v2-Frontend-State-Management-APPROVED-e5ccb3c6357649f9a9dc1a1b2a1b7a99, we will use a machine to encapsulate API calls about the current user and ho...
Opengraph URL: https://github.com/coder/coder/issues/434
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Replace User Context with User machine","articleBody":"In accordance with https://www.notion.so/coderhq/v2-Frontend-State-Management-APPROVED-e5ccb3c6357649f9a9dc1a1b2a1b7a99, we will use a machine to encapsulate API calls about the current user and hold user state. \n\n- replace `UserContext` with `userMachine`\n- refactor all checks for authentication\n- refactor `SignInPage` to use `userMachine`\n\nRequirements:\nGiven a current user created in the database,\n- user can log in\n- user can log out\n- logged in user can view pages that require authentication\n- logged out user cannot view pages that require authentication, and is redirected to /login. Upon logging in, the user is returned to the page they were trying to access.\n- logged out user can view /login and 404 page","author":{"url":"https://github.com/presleyp","@type":"Person","name":"presleyp"},"datePublished":"2022-03-14T17:46:36Z","url":"https://github.com/coder/coder/issues/434"}
| 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:76eab5c8-189f-b73c-0a45-86f29815dd31 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED10:358871:1C1909E:24F4D1F:6B01504D |
| html-safe-nonce | c3743a35e19dccd24eb01f3db8b00bdf87527e5331a8dfd1e494ee88350a7bfa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDEwOjM1ODg3MToxQzE5MDlFOjI0RjREMUY6NkIwMTUwNEQiLCJ2aXNpdG9yX2lkIjoiNjg0MDY1NjY2OTY4NTQwMzcyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 88eaaa8a0157330c703b66e157ce6cd6dd70477837e0dd669fba92a1007c3a3d |
| hovercard-subject-tag | issue:1168712475 |
| 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/434/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ed5853b5e0e9dc052373d1d40adfd4ed42bcd039a73ce83871a79c423067d1c/coder/coder/issues/434 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ed5853b5e0e9dc052373d1d40adfd4ed42bcd039a73ce83871a79c423067d1c/coder/coder/issues/434 |
| og:image:alt | In accordance with https://www.notion.so/coderhq/v2-Frontend-State-Management-APPROVED-e5ccb3c6357649f9a9dc1a1b2a1b7a99, we will use a machine to encapsulate API calls about the current user and ho... |
| 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