Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add support for update checks and notifications#4810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 14 commits intomainfrommafredri/outdated-coder-installation-notice
Dec 1, 2022
Merged
Changes from1 commit
Commits
Show all changes
14 commits
Select commitHold shift + click to select a range
cc28c1b
feat: Add support for checking for updates
mafredriOct 31, 2022
c163af8
wip(site): Add support for informing of updates
mafredriOct 31, 2022
e9ed0b7
Add /api/v2/updatecheck to noauthorize list
mafredriOct 31, 2022
64ad0f5
Fix edge case where update check has never succeeded
mafredriOct 31, 2022
0238d5a
Fix logging
mafredriOct 31, 2022
9e1ea9e
Use AlertBanner for coder version notice
mafredriNov 29, 2022
979ff80
Update golden files
mafredriNov 29, 2022
b80de3c
Fix margins, improve alert banner and add stories
mafredriNov 30, 2022
81d11dd
Add authorization, dismissal and fetch after login
mafredriNov 30, 2022
392d06e
Apply suggestions from code review
mafredriDec 1, 2022
ad38c3b
Add forgotten UpdateCheckBanner.stories.tsx
mafredriNov 30, 2022
1c9dbc1
fix(api): Amend PR comments
mafredriDec 1, 2022
49a7bfc
fix(site): Always show prefix for update check errors, remove as const
mafredriDec 1, 2022
44f6475
fix(site): Add jest tests for UpdateCheckBanner
mafredriDec 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Add forgotten UpdateCheckBanner.stories.tsx
  • Loading branch information
@mafredri
mafredri committedDec 1, 2022
commitad38c3b7894ee59664dd0681b61688ab3370120c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
import { ComponentMeta, Story } from "@storybook/react"
import { UpdateCheckBanner, UpdateCheckBannerProps } from "./UpdateCheckBanner"

export default {
title: "components/UpdateCheckBanner",
component: UpdateCheckBanner,
} as ComponentMeta<typeof UpdateCheckBanner>

const Template: Story<UpdateCheckBannerProps> = (args) => (
<UpdateCheckBanner {...args} />
)

export const UpdateAvailable = Template.bind({})
UpdateAvailable.args = {
updateCheck: {
current: false,
version: "v0.12.9",
url: "https://github.com/coder/coder/releases/tag/v0.12.9",
},
}

export const NoUpdateAvailable = Template.bind({})
NoUpdateAvailable.args = {
updateCheck: {
current: true,
version: "v0.12.9",
url: "https://github.com/coder/coder/releases/tag/v0.12.9",
},
}

export const UpdateCheckError = Template.bind({})
UpdateCheckError.args = {
error: new Error("Coder update check failed."),
}

[8]ページ先頭

©2009-2025 Movatter.jp