Skip to content

Commit a98ea0a

Browse files
committed
web: Deploy section single replica improvements
1 parent e4f0944 commit a98ea0a

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

  • apps/web/src/components/service/panel/content/deployed/settings/sections

‎apps/web/src/components/service/panel/content/deployed/settings/sections/deploy-section.tsx‎

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
1-
import { useSettingsSectionSearch } from "@/components/service/panel/content/deployed/settings/settings-search-provider";
2-
import { settingsIds } from "@/components/settings/settings-ids";
3-
import Banner from "@/components/banner";
41
import {
52
Block,
63
BlockItem,
74
BlockItemContent,
5+
BlockItemContentHighlightable,
86
BlockItemDescription,
97
BlockItemHeader,
10-
BlockItemContentHighlightable,
118
BlockItemTitle,
129
} from "@/components/block";
1310
import { shouldDeploySectionHaveReplicas } from "@/components/service/panel/content/deployed/settings/helpers";
11+
import { useSettingsSectionSearch } from "@/components/service/panel/content/deployed/settings/settings-search-provider";
1412
import {
13+
hasApplying,
1514
stagedNumber,
1615
useResetFormOnStagedChange,
17-
hasApplying,
1816
useServiceChanges,
1917
} from "@/components/service/panel/content/deployed/settings/use-service-changes";
20-
import type { TServiceChangeField } from "@/components/staged-changes/types";
2118
import ErrorWithWrapper from "@/components/settings/error-with-wrapper";
2219
import { RevertButton } from "@/components/settings/revert-button";
20+
import { settingsIds } from "@/components/settings/settings-ids";
2321
import { SettingsSection } from "@/components/settings/settings-section";
22+
import type { TServiceChangeField } from "@/components/staged-changes/types";
2423
import { cn } from "@/components/ui/utils";
2524
import { useAppForm } from "@/lib/hooks/use-app-form";
2625
import { TServiceShallow } from "@/lib/queries/services";
27-
import { InfoIcon, LockIcon, RocketIcon } from "lucide-react";
2826
import { useStore } from "@tanstack/react-form";
27+
import { InfoIcon, LockIcon, RocketIcon } from "lucide-react";
2928
import { useMemo } from "react";
3029

3130
type TProps = {
@@ -208,15 +207,14 @@ function Section({ service }: { service: TServiceShallow }) {
208207
/>
209208
</div>
210209
{isReplicaCountLocked && (
211-
<div className="w-full px-1.5">
212-
<Banner className="bg-process/3-10 border-process/3-10 text-process rounded-md px-2.5 py-2 md:max-w-none">
213-
<div className="line-icon">
214-
<InfoIcon className="-ml-0.5 size-4 shrink-0" />
215-
</div>
216-
<p className="min-w-0 shrink">
217-
Services with a volume run a single replica.
218-
</p>
219-
</Banner>
210+
<div className="text-process flex w-full items-start justify-start gap-1.5 px-4 pt-1 pb-1.5 text-sm">
211+
<div className="line-icon h-[0.9lh]">
212+
<InfoIcon className="-ml-0.5 size-3.5 shrink-0" />
213+
</div>
214+
<p className="min-w-0 shrink leading-snug">
215+
Services with a volume can only have a single replica.
216+
</p>
217+
Ò
220218
</div>
221219
)}
222220
</BlockItemContentHighlightable>

0 commit comments

Comments
 (0)