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

chore: bump @biomejs/biome from 1.8.3 to 1.9.3 in /site#14914

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
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
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
fix linting issues
  • Loading branch information
@aslilac
aslilac committedOct 1, 2024
commit49fe618d45c4fa84cae42dab3542d9e516bbd6d4
3 changes: 2 additions & 1 deletionsite/biome.json
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -6,7 +6,8 @@
"rules": {
"a11y": {
"noSvgWithoutTitle": { "level": "off" },
"useButtonType": { "level": "off" }
"useButtonType": { "level": "off" },
"useSemanticElements": { "level": "off" }
},
"style": {
"noNonNullAssertion": { "level": "off" },
Expand Down
2 changes: 1 addition & 1 deletionsite/src/modules/resources/ResourceCard.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -87,7 +87,7 @@ export const ResourceCard: FC<ResourceCardProps> = ({ resource, agentRow }) => {
const mLength =
resource.daily_cost > 0
? (resource.metadata?.length ?? 0) + 1
: resource.metadata?.length ?? 0;
:(resource.metadata?.length ?? 0);

const gridWidth = mLength === 1 ? 1 : 4;

Expand Down
2 changes: 1 addition & 1 deletionsite/src/pages/CreateTemplatePage/VariableInput.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -95,7 +95,7 @@ const VariableField: FC<VariableInputProps> = ({
placeholder={variable.sensitive ? "" : variable.default_value}
required={variable.required}
defaultValue={
variable.sensitive ? "" : defaultValue ?? variable.default_value
variable.sensitive ? "" :(defaultValue ?? variable.default_value)
}
onChange={(event) => {
onChange(event.target.value);
Expand Down
52 changes: 24 additions & 28 deletionssite/src/pages/TemplatePage/TemplateVersionsPage/VersionRow.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -106,34 +106,30 @@ export const VersionRow: FC<VersionRowProps> = ({
</Pill>
)}

{showActions && (
<>
{jobStatus === "failed" ? (
<Button
css={styles.promoteButton}
disabled={isActive || version.archived}
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
onArchiveClick?.(version.id);
}}
>
Archive&hellip;
</Button>
) : (
<Button
css={styles.promoteButton}
disabled={isActive || jobStatus !== "succeeded"}
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
onPromoteClick?.(version.id);
}}
>
Promote&hellip;
</Button>
)}
</>
{showActions && jobStatus === "failed" ? (
<Button
css={styles.promoteButton}
disabled={isActive || version.archived}
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
onArchiveClick?.(version.id);
}}
>
Archive&hellip;
</Button>
) : (
<Button
css={styles.promoteButton}
disabled={isActive || jobStatus !== "succeeded"}
onClick={(e) => {
e.preventDefault();
e.stopPropagation();
onPromoteClick?.(version.id);
}}
>
Promote&hellip;
</Button>
)}
</Stack>
</Stack>
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -74,7 +74,7 @@ export const UserOrGroupAutocomplete: FC<UserOrGroupAutocompleteProps> = ({
}}
onClose={() => {
setAutoComplete({
value: isGroup(value) ? value.display_name : value?.email ?? "",
value: isGroup(value) ? value.display_name :(value?.email ?? ""),
open: false,
});
}}
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -467,122 +467,118 @@ export const TemplateScheduleForm: FC<TemplateScheduleForm> = ({
</FormSection>

{allowAdvancedScheduling && (
<>
<FormSection
title="Dormancy"
description="When enabled, Coder will mark workspaces as dormant after a period of time with no connections. Dormant workspaces can be auto-deleted (see below) or manually reviewed by the workspace owner or admins."
>
<FormFields spacing={FORM_FIELDS_SPACING}>
<Stack spacing={DORMANT_FIELDSET_SPACING}>
<FormControlLabel
control={
<Switch
size="small"
name="dormancyThreshold"
checked={form.values.inactivity_cleanup_enabled}
onChange={handleToggleInactivityCleanup}
/>
}
label={<StackLabel>Enable Dormancy Threshold</StackLabel>}
/>

<DurationField
{...getFieldHelpers("time_til_dormant_ms", {
helperText: (
<DormancyTTLHelperText
ttl={form.values.time_til_dormant_ms}
/>
),
})}
label="Time until dormant"
valueMs={form.values.time_til_dormant_ms ?? 0}
onChange={(v) => form.setFieldValue("time_til_dormant_ms", v)}
disabled={
isSubmitting || !form.values.inactivity_cleanup_enabled
}
/>
</Stack>

<Stack spacing={DORMANT_FIELDSET_SPACING}>
<FormControlLabel
control={
<Switch
size="small"
name="dormancyAutoDeletion"
checked={form.values.dormant_autodeletion_cleanup_enabled}
onChange={handleToggleDormantAutoDeletion}
<FormSection
title="Dormancy"
description="When enabled, Coder will mark workspaces as dormant after a period of time with no connections. Dormant workspaces can be auto-deleted (see below) or manually reviewed by the workspace owner or admins."
>
<FormFields spacing={FORM_FIELDS_SPACING}>
<Stack spacing={DORMANT_FIELDSET_SPACING}>
<FormControlLabel
control={
<Switch
size="small"
name="dormancyThreshold"
checked={form.values.inactivity_cleanup_enabled}
onChange={handleToggleInactivityCleanup}
/>
}
label={<StackLabel>Enable Dormancy Threshold</StackLabel>}
/>

<DurationField
{...getFieldHelpers("time_til_dormant_ms", {
helperText: (
<DormancyTTLHelperText
ttl={form.values.time_til_dormant_ms}
/>
}
label={
<StackLabel>
Enable Dormancy Auto-Deletion
<StackLabelHelperText>
When enabled, Coder will permanently delete dormant
workspaces after a period of time.{" "}
<strong>
Once a workspace is deleted it cannot be recovered.
</strong>
</StackLabelHelperText>
</StackLabel>
}
/>
<DurationField
{...getFieldHelpers("time_til_dormant_autodelete_ms", {
helperText: (
<DormancyAutoDeletionTTLHelperText
ttl={form.values.time_til_dormant_autodelete_ms}
/>
),
})}
label="Time until deletion"
valueMs={form.values.time_til_dormant_autodelete_ms ?? 0}
onChange={(v) =>
form.setFieldValue("time_til_dormant_autodelete_ms", v)
}
disabled={
isSubmitting ||
!form.values.dormant_autodeletion_cleanup_enabled
}
/>
</Stack>

<Stack spacing={DORMANT_FIELDSET_SPACING}>
<FormControlLabel
control={
<Switch
size="small"
name="failureCleanupEnabled"
checked={form.values.failure_cleanup_enabled}
onChange={handleToggleFailureCleanup}
),
})}
label="Time until dormant"
valueMs={form.values.time_til_dormant_ms ?? 0}
onChange={(v) => form.setFieldValue("time_til_dormant_ms", v)}
disabled={
isSubmitting || !form.values.inactivity_cleanup_enabled
}
/>
</Stack>

<Stack spacing={DORMANT_FIELDSET_SPACING}>
<FormControlLabel
control={
<Switch
size="small"
name="dormancyAutoDeletion"
checked={form.values.dormant_autodeletion_cleanup_enabled}
onChange={handleToggleDormantAutoDeletion}
/>
}
label={
<StackLabel>
Enable Dormancy Auto-Deletion
<StackLabelHelperText>
When enabled, Coder will permanently delete dormant
workspaces after a period of time.{" "}
<strong>
Once a workspace is deleted it cannot be recovered.
</strong>
</StackLabelHelperText>
</StackLabel>
}
/>
<DurationField
{...getFieldHelpers("time_til_dormant_autodelete_ms", {
helperText: (
<DormancyAutoDeletionTTLHelperText
ttl={form.values.time_til_dormant_autodelete_ms}
/>
}
label={
<StackLabel>
Enable Failure Cleanup
<StackLabelHelperText>
When enabled, Coder will attempt to stop workspaces that
are in a failed state after a period of time.
</StackLabelHelperText>
</StackLabel>
}
/>
<DurationField
{...getFieldHelpers("failure_ttl_ms", {
helperText: (
<FailureTTLHelperText ttl={form.values.failure_ttl_ms} />
),
})}
label="Time until cleanup"
valueMs={form.values.failure_ttl_ms ?? 0}
onChange={(v) => form.setFieldValue("failure_ttl_ms", v)}
disabled={
isSubmitting || !form.values.failure_cleanup_enabled
}
/>
</Stack>
</FormFields>
</FormSection>
</>
),
})}
label="Time until deletion"
valueMs={form.values.time_til_dormant_autodelete_ms ?? 0}
onChange={(v) =>
form.setFieldValue("time_til_dormant_autodelete_ms", v)
}
disabled={
isSubmitting ||
!form.values.dormant_autodeletion_cleanup_enabled
}
/>
</Stack>

<Stack spacing={DORMANT_FIELDSET_SPACING}>
<FormControlLabel
control={
<Switch
size="small"
name="failureCleanupEnabled"
checked={form.values.failure_cleanup_enabled}
onChange={handleToggleFailureCleanup}
/>
}
label={
<StackLabel>
Enable Failure Cleanup
<StackLabelHelperText>
When enabled, Coder will attempt to stop workspaces that
are in a failed state after a period of time.
</StackLabelHelperText>
</StackLabel>
}
/>
<DurationField
{...getFieldHelpers("failure_ttl_ms", {
helperText: (
<FailureTTLHelperText ttl={form.values.failure_ttl_ms} />
),
})}
label="Time until cleanup"
valueMs={form.values.failure_ttl_ms ?? 0}
onChange={(v) => form.setFieldValue("failure_ttl_ms", v)}
disabled={isSubmitting || !form.values.failure_cleanup_enabled}
/>
</Stack>
</FormFields>
</FormSection>
)}
{showScheduleDialog && (
<ScheduleDialog
Expand Down
16 changes: 7 additions & 9 deletionssite/src/pages/TemplatesPage/TemplatesFilter.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -49,15 +49,13 @@ export const TemplatesFilter: FC<TemplatesFilterProps> = ({
filter={filter}
error={error}
options={
<>
<SelectFilter
placeholder="All organizations"
label="Select an organization"
options={organizationMenu.searchOptions}
selectedOption={organizationMenu.selectedOption ?? undefined}
onSelect={organizationMenu.selectOption}
/>
</>
<SelectFilter
placeholder="All organizations"
label="Select an organization"
options={organizationMenu.searchOptions}
selectedOption={organizationMenu.selectedOption ?? undefined}
onSelect={organizationMenu.selectOption}
/>
}
optionsSkeleton={<MenuSkeleton />}
/>
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -149,7 +149,7 @@ const ExternalAuthRow: FC<ExternalAuthRowProps> = ({

const authenticated = externalAuth
? externalAuth.authenticated
: link?.authenticated ?? false;
:(link?.authenticated ?? false);

let avatar = app.display_icon ? (
<Avatar src={app.display_icon} variant="square" fitImage size="sm" />
Expand Down
18 changes: 8 additions & 10 deletionssite/src/pages/UsersPage/UsersPageView.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -74,16 +74,14 @@ export const UsersPageView: FC<UsersPageViewProps> = ({
<PageHeader
css={{ paddingTop: 0 }}
actions={
<>
{canCreateUser && (
<Button
onClick={() => navigate("create")}
startIcon={<PersonAdd />}
>
Create user
</Button>
)}
</>
canCreateUser && (
<Button
onClick={() => navigate("create")}
startIcon={<PersonAdd />}
>
Create user
</Button>
)
}
>
<PageHeaderTitle>Users</PageHeaderTitle>
Expand Down
1 change: 0 additions & 1 deletionsite/src/pages/WorkspacePage/ResourcesSidebar.tsx
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -70,7 +70,6 @@ export const ResourcesSidebar: FC<ResourcesSidebarProps> = ({
css={{ width: "100%", height: "100%", objectFit: "contain" }}
src={getResourceIconPath(r.type)}
alt=""
role="presentation"
/>
</div>
<div
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp