| 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/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b7c23d61-aae0-3304-c7e6-1565e0f6437a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8690:399E4B:216EE9E:2C50773:6B017CD9 |
| html-safe-nonce | 4bba4698602ffa01909dcbecd2d97644d22bb51bf1fb7ae993a66b16172e6b0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjkwOjM5OUU0QjoyMTZFRTlFOjJDNTA3NzM6NkIwMTdDRDkiLCJ2aXNpdG9yX2lkIjoiODQ0MzU1Mzc2MzIyNjEyMzQ4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3c0742c9df76ee227ca54e909093361dc76e790e8fc85daf0b0cc6561f90a5e6 |
| hovercard-subject-tag | pull_request:952102564 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/coder/coder/pull/1920/files |
| twitter:image | https://avatars.githubusercontent.com/u/11184711?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/11184711?s=400&v=4 |
| og:image:alt | Summary:
When a workspace is on, the remaining time until shutdown needs to be
derived from the deadline timestamp, not implied from the TTL. A utility is
function is added that answers the questio... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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 |
| Skip to content | https://github.com/coder/coder/pull/1920/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F1920%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F1920%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=coder%2Fcoder |
| Reload | https://github.com/coder/coder/pull/1920/files |
| Reload | https://github.com/coder/coder/pull/1920/files |
| Reload | https://github.com/coder/coder/pull/1920/files |
| coder | https://github.com/coder |
| coder | https://github.com/coder/coder |
| Code | https://github.com/coder/coder |
| Issues320 (320) | https://github.com/coder/coder/issues |
| Pull requests470 (470) | https://github.com/coder/coder/pulls |
| Discussions | https://github.com/coder/coder/discussions |
| Actions | https://github.com/coder/coder/actions |
| Projects | https://github.com/coder/coder/projects |
| Security and quality49 (49) | https://github.com/coder/coder/security |
| Insights | https://github.com/coder/coder/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fcoder%2Fcoder%2Fissues%2Fnew%2Fchoose |
| greyscaled | https://github.com/greyscaled |
| main | https://github.com/coder/coder/tree/main |
| vapurrmaid/gh-1779/workspace-shutdown-display | https://github.com/coder/coder/tree/vapurrmaid/gh-1779/workspace-shutdown-display |
|
Conversation
4
| https://github.com/coder/coder/pull/1920 |
|
Commits
11
| https://github.com/coder/coder/pull/1920/commits |
|
Checks
0
| https://github.com/coder/coder/pull/1920/checks |
|
Files changed
| https://github.com/coder/coder/pull/1920/files |
| Please reload this page | https://github.com/coder/coder/pull/1920/files |
|
fix: derive running ws stop time from deadline
| https://github.com/coder/coder/pull/1920/files#top |
|
Show all changes
11 commits
| https://github.com/coder/coder/pull/1920/files |
|
a72b187
refactor: isWorkspaceOn utility
greyscaled May 31, 2022
| https://github.com/coder/coder/pull/1920/commits/a72b18798021524e8f91894789735d9c2fea8c54 |
|
24ccaee
fix: derive running ws stop time from deadline
greyscaled May 31, 2022
| https://github.com/coder/coder/pull/1920/commits/24ccaeefea14604edc1fa1cf0fa98448208930c7 |
|
0f72a6d
fixup! fix: derive running ws stop time from deadline
greyscaled May 31, 2022
| https://github.com/coder/coder/pull/1920/commits/0f72a6d05df663cb399dfdaf393efcca0fc4e502 |
|
c5c5f4f
fixup! fix: derive running ws stop time from deadline
greyscaled May 31, 2022
| https://github.com/coder/coder/pull/1920/commits/c5c5f4fb26ac46cd7d73120a58cc634fbff323c1 |
|
11fe7f2
fixup! fix: derive running ws stop time from deadline
greyscaled May 31, 2022
| https://github.com/coder/coder/pull/1920/commits/11fe7f2d42eef431ce6c0e7b7528a8df57b00be8 |
|
538bbe8
Merge origin/main
greyscaled May 31, 2022
| https://github.com/coder/coder/pull/1920/commits/538bbe8ec32e2f84e813c0c0ed0e6aa2a5df8b67 |
|
5e6472d
fixup! Merge origin/main
greyscaled May 31, 2022
| https://github.com/coder/coder/pull/1920/commits/5e6472d6da45b7ecc27d5ff1a620f458f61c6c7e |
|
d0a9656
fixup! Merge origin/main
greyscaled May 31, 2022
| https://github.com/coder/coder/pull/1920/commits/d0a965636ff9011abf46eb5fb32bae13e65a7429 |
|
df54df0
Update stories
greyscaled May 31, 2022
| https://github.com/coder/coder/pull/1920/commits/df54df093b803654bc7c104ca8621dd85b38070b |
|
f825f2d
Merge origin/main
greyscaled May 31, 2022
| https://github.com/coder/coder/pull/1920/commits/f825f2ddaa27c9b589e984bbf856cd142218310f |
|
6a48ea6
fixup! Merge origin/main
greyscaled May 31, 2022
| https://github.com/coder/coder/pull/1920/commits/6a48ea6e62a11b1f824aaa61eb8bc43a50d542d2 |
|
Clear filters
| https://github.com/coder/coder/pull/1920/files |
| Please reload this page | https://github.com/coder/coder/pull/1920/files |
| Please reload this page | https://github.com/coder/coder/pull/1920/files |
|
Workspace.stories.tsx
| https://github.com/coder/coder/pull/1920/files#diff-3b101322b97d1e957656b42f004bd32942b25db1f40091aafb312b1872bfc685 |
|
WorkspaceSchedule.stories.tsx
| https://github.com/coder/coder/pull/1920/files#diff-6ff1751ede61038ba06481c12e1e62acb2ff33aba25af016f694cc625d7fa52a |
|
WorkspaceSchedule.tsx
| https://github.com/coder/coder/pull/1920/files#diff-bf11aef458f6e1763b9c834ddd3434a971ccdedc9c3b131d64d442ed397a3336 |
|
WorkspaceScheduleBanner.test.tsx
| https://github.com/coder/coder/pull/1920/files#diff-bb0ab0868f7749af9b990d5366d0a57e35ff333ec0daf1baaeb15dacf93d7b83 |
|
WorkspaceScheduleBanner.tsx
| https://github.com/coder/coder/pull/1920/files#diff-d098628858b963fdd2349449d3d7680ae74667f3be4e918efde091cd9f207d6f |
|
entities.ts
| https://github.com/coder/coder/pull/1920/files#diff-d9a272ec414617ffec44928252e3168e6a93df7cb4dff5a8a94f335f3abc3f53 |
|
workspace.test.ts
| https://github.com/coder/coder/pull/1920/files#diff-622a4202429d20529dba547c02e7570226ff5292e8bd8baaf78ce5766f76db2f |
|
workspace.ts
| https://github.com/coder/coder/pull/1920/files#diff-46ce05d14402854a3999da903dcf3949351172316989f053196857f93fcc6d57 |
| site/src/components/Workspace/Workspace.stories.tsx | https://github.com/coder/coder/pull/1920/files#diff-3b101322b97d1e957656b42f004bd32942b25db1f40091aafb312b1872bfc685 |
|
View file
| https://github.com/coder/coder/blob/6a48ea6e62a11b1f824aaa61eb8bc43a50d542d2/site/src/components/Workspace/Workspace.stories.tsx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/1920/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/1920/files#diff-3b101322b97d1e957656b42f004bd32942b25db1f40091aafb312b1872bfc685 |
| site/src/components/WorkspaceSchedule/WorkspaceSchedule.stories.tsx | https://github.com/coder/coder/pull/1920/files#diff-6ff1751ede61038ba06481c12e1e62acb2ff33aba25af016f694cc625d7fa52a |
|
View file
| https://github.com/coder/coder/blob/6a48ea6e62a11b1f824aaa61eb8bc43a50d542d2/site/src/components/WorkspaceSchedule/WorkspaceSchedule.stories.tsx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/1920/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/1920/files#diff-6ff1751ede61038ba06481c12e1e62acb2ff33aba25af016f694cc625d7fa52a |
|
| https://github.com/coder/coder/pull/1920/files#diff-6ff1751ede61038ba06481c12e1e62acb2ff33aba25af016f694cc625d7fa52a |
|
| https://github.com/coder/coder/pull/1920/files#diff-6ff1751ede61038ba06481c12e1e62acb2ff33aba25af016f694cc625d7fa52a |
|
| https://github.com/coder/coder/pull/1920/files#diff-6ff1751ede61038ba06481c12e1e62acb2ff33aba25af016f694cc625d7fa52a |
|
| https://github.com/coder/coder/pull/1920/files#diff-6ff1751ede61038ba06481c12e1e62acb2ff33aba25af016f694cc625d7fa52a |
|
| https://github.com/coder/coder/pull/1920/files#diff-6ff1751ede61038ba06481c12e1e62acb2ff33aba25af016f694cc625d7fa52a |
| site/src/components/WorkspaceSchedule/WorkspaceSchedule.tsx | https://github.com/coder/coder/pull/1920/files#diff-bf11aef458f6e1763b9c834ddd3434a971ccdedc9c3b131d64d442ed397a3336 |
|
View file
| https://github.com/coder/coder/blob/6a48ea6e62a11b1f824aaa61eb8bc43a50d542d2/site/src/components/WorkspaceSchedule/WorkspaceSchedule.tsx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/1920/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/1920/files#diff-bf11aef458f6e1763b9c834ddd3434a971ccdedc9c3b131d64d442ed397a3336 |
|
| https://github.com/coder/coder/pull/1920/files#diff-bf11aef458f6e1763b9c834ddd3434a971ccdedc9c3b131d64d442ed397a3336 |
|
| https://github.com/coder/coder/pull/1920/files#diff-bf11aef458f6e1763b9c834ddd3434a971ccdedc9c3b131d64d442ed397a3336 |
| site/src/components/WorkspaceScheduleBanner/WorkspaceScheduleBanner.test.tsx | https://github.com/coder/coder/pull/1920/files#diff-bb0ab0868f7749af9b990d5366d0a57e35ff333ec0daf1baaeb15dacf93d7b83 |
|
View file
| https://github.com/coder/coder/blob/6a48ea6e62a11b1f824aaa61eb8bc43a50d542d2/site/src/components/WorkspaceScheduleBanner/WorkspaceScheduleBanner.test.tsx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/1920/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/1920/files#diff-bb0ab0868f7749af9b990d5366d0a57e35ff333ec0daf1baaeb15dacf93d7b83 |
|
| https://github.com/coder/coder/pull/1920/files#diff-bb0ab0868f7749af9b990d5366d0a57e35ff333ec0daf1baaeb15dacf93d7b83 |
| site/src/components/WorkspaceScheduleBanner/WorkspaceScheduleBanner.tsx | https://github.com/coder/coder/pull/1920/files#diff-d098628858b963fdd2349449d3d7680ae74667f3be4e918efde091cd9f207d6f |
|
View file
| https://github.com/coder/coder/blob/6a48ea6e62a11b1f824aaa61eb8bc43a50d542d2/site/src/components/WorkspaceScheduleBanner/WorkspaceScheduleBanner.tsx |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/1920/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/1920/files#diff-d098628858b963fdd2349449d3d7680ae74667f3be4e918efde091cd9f207d6f |
|
| https://github.com/coder/coder/pull/1920/files#diff-d098628858b963fdd2349449d3d7680ae74667f3be4e918efde091cd9f207d6f |
|
| https://github.com/coder/coder/pull/1920/files#diff-d098628858b963fdd2349449d3d7680ae74667f3be4e918efde091cd9f207d6f |
| site/src/testHelpers/entities.ts | https://github.com/coder/coder/pull/1920/files#diff-d9a272ec414617ffec44928252e3168e6a93df7cb4dff5a8a94f335f3abc3f53 |
|
View file
| https://github.com/coder/coder/blob/6a48ea6e62a11b1f824aaa61eb8bc43a50d542d2/site/src/testHelpers/entities.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/1920/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/1920/files#diff-d9a272ec414617ffec44928252e3168e6a93df7cb4dff5a8a94f335f3abc3f53 |
|
| https://github.com/coder/coder/pull/1920/files#diff-d9a272ec414617ffec44928252e3168e6a93df7cb4dff5a8a94f335f3abc3f53 |
|
| https://github.com/coder/coder/pull/1920/files#diff-d9a272ec414617ffec44928252e3168e6a93df7cb4dff5a8a94f335f3abc3f53 |
| site/src/util/workspace.test.ts | https://github.com/coder/coder/pull/1920/files#diff-622a4202429d20529dba547c02e7570226ff5292e8bd8baaf78ce5766f76db2f |
|
View file
| https://github.com/coder/coder/blob/6a48ea6e62a11b1f824aaa61eb8bc43a50d542d2/site/src/util/workspace.test.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/1920/{{ revealButtonHref }} |
| johnstcn | https://github.com/johnstcn |
| May 31, 2022 | https://github.com/coder/coder/pull/1920/files#r885766825 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/coder/coder/pull/1920/files |
| site/src/util/workspace.ts | https://github.com/coder/coder/pull/1920/files#diff-46ce05d14402854a3999da903dcf3949351172316989f053196857f93fcc6d57 |
|
View file
| https://github.com/coder/coder/blob/6a48ea6e62a11b1f824aaa61eb8bc43a50d542d2/site/src/util/workspace.ts |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/coder/coder/pull/1920/{{ revealButtonHref }} |
|
| https://github.com/coder/coder/pull/1920/files#diff-46ce05d14402854a3999da903dcf3949351172316989f053196857f93fcc6d57 |
|
| https://github.com/coder/coder/pull/1920/files#diff-46ce05d14402854a3999da903dcf3949351172316989f053196857f93fcc6d57 |
| johnstcn | https://github.com/johnstcn |
| May 31, 2022 | https://github.com/coder/coder/pull/1920/files#r885783468 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/coder/coder/pull/1920/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |