Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): redesign provider editor and models list #8508

MergedStiensWout(GitHub profile, opens in a new tab)merged 16 commits intomain fromrefs/pull/8508/headmerged by maria-rcks View on GitHub

Showing 7 changed files with 53 additions and 32 deletions (loading 6).

x
0 of 7 viewed, 7 left
53 additions and 32 deletionsapps/web/src/components/settings/ProviderAccentColorPicker.tsxModified
View file
@@ -228,8 +228,17 @@
readonly onCommit: (value: string) => void;
readonly description?: string;
readonly commitDelayMs?: number;
+ /** `inline` renders only the swatch row, for callers that supply their own label. */
+ readonly layout?: "stacked" | "inline";
}) {
- const { commitDelayMs = 0, description, displayName, onCommit, value } = props;
+ const {
+ commitDelayMs = 0,
+ description,
+ displayName,
+ layout = "stacked",
+ onCommit,
+ value,
+ } = props;
const [optimisticValue, setOptimisticValue] = useState(() => value ?? "");
const commitTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
const pendingCommitRef = useRef<string | null>(null);
@@ -295,40 +304,52 @@
: "";
const customSelected = Boolean(normalized && selectedValue === "");
​
+ const swatchRow = (
+ <div
+ role="group"
+ aria-label="Accent color"
+ className="flex min-w-0 flex-wrap items-center gap-2"
+ >