diff --git a/apps/trip-tick/web/src/components/lists/ListInfoEditor.tsx b/apps/trip-tick/web/src/components/lists/ListInfoEditor.tsx
index 64035abf..27e42f33 100644
--- a/apps/trip-tick/web/src/components/lists/ListInfoEditor.tsx
+++ b/apps/trip-tick/web/src/components/lists/ListInfoEditor.tsx
@@ -5,6 +5,12 @@ import { TemperatureUnit } from '../weather/TemperatureUnit.jsx';
import { useCanSync } from '@biscuits/client';
import { useTemperatureUnit } from '../weather/useTemperatureUnit.js';
import { Input } from '@a-type/ui/components/input/Input';
+import {
+ CollapsibleContent,
+ CollapsibleRoot,
+ CollapsibleTrigger,
+} from '@a-type/ui/components/collapsible';
+import { Icon } from '@a-type/ui/components/icon';
export interface ListInfoEditorProps {
list: List;
@@ -18,55 +24,74 @@ export function ListInfoEditor({ list }: ListInfoEditorProps) {
if (!isSubscribed) return null;
return (
-
-
-
-
-
{
- if (isNaN(ev.currentTarget.valueAsNumber)) return;
- list.set(
- 'hotThreshold',
- fromDisplay(ev.currentTarget.valueAsNumber),
- );
- }}
- maxLength={3}
- onFocus={(ev) => {
- ev.currentTarget.select();
- }}
- />
-
- +
+
+
+
+
+
+ Weather settings |{' '}
+ {toDisplay(hotThreshold ?? 299)}{' '}
+ {toDisplay(coldThreshold ?? 277)}{' '}
+
-
-
-
-
-
- {
- if (isNaN(ev.currentTarget.valueAsNumber)) return;
- list.set(
- 'coldThreshold',
- fromDisplay(ev.currentTarget.valueAsNumber),
- );
- }}
- maxLength={3}
- onFocus={(ev) => {
- ev.currentTarget.select();
- }}
+
-
- -
-
-
-
+
+
+
+
+
+
+ {
+ if (isNaN(ev.currentTarget.valueAsNumber)) return;
+ list.set(
+ 'hotThreshold',
+ fromDisplay(ev.currentTarget.valueAsNumber),
+ );
+ }}
+ maxLength={3}
+ onFocus={(ev) => {
+ ev.currentTarget.select();
+ }}
+ />
+
+ and above
+
+
+
+
+
+
+ {
+ if (isNaN(ev.currentTarget.valueAsNumber)) return;
+ list.set(
+ 'coldThreshold',
+ fromDisplay(ev.currentTarget.valueAsNumber),
+ );
+ }}
+ maxLength={3}
+ onFocus={(ev) => {
+ ev.currentTarget.select();
+ }}
+ />
+
+ and below
+
+
+
+
+
+
);
}
diff --git a/apps/trip-tick/web/src/pages/ListPage.tsx b/apps/trip-tick/web/src/pages/ListPage.tsx
index 1e45091c..895ef88c 100644
--- a/apps/trip-tick/web/src/pages/ListPage.tsx
+++ b/apps/trip-tick/web/src/pages/ListPage.tsx
@@ -34,7 +34,7 @@ function ListPageEditor({ listId }: { listId: string }) {
return (
<>
-
+