From 34ee4fab5b3884733e747bd82a8503e40ff644dc Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Fri, 25 Sep 2026 22:14:33 -0700 Subject: [PATCH] Build the chat, goal, classified and calendar tab groups from one SegmentedButtons --- .agents/skills/flotilla-views/SKILL.md | 2 +- src/app/components/ChatTabs.svelte | 26 +++------- src/lib/components/SegmentedButtons.svelte | 41 ++++++++++++++++ .../spaces/[relay]/calendar/+page.svelte | 49 ++++++++----------- .../[relay]/calendar/[address]/+page.svelte | 46 ++++++----------- .../spaces/[relay]/classifieds/+page.svelte | 36 ++++---------- src/routes/spaces/[relay]/goals/+page.svelte | 17 +------ 7 files changed, 94 insertions(+), 123 deletions(-) create mode 100644 src/lib/components/SegmentedButtons.svelte diff --git a/.agents/skills/flotilla-views/SKILL.md b/.agents/skills/flotilla-views/SKILL.md index a690ebdd..2bf737d7 100644 --- a/.agents/skills/flotilla-views/SKILL.md +++ b/.agents/skills/flotilla-views/SKILL.md @@ -221,7 +221,7 @@ lives there: - modal chrome: `Dialog`, `Drawer`, `Modal`, `ModalBody`, `ModalHeader`, `ModalTitle`, `ModalSubtitle`, `ModalFooter`, `Confirm` - controls: `Button`, `Link`, `Field`, `FieldInline`, `Input`, `InputList`, `ToggleInput`, - `DateTimeInput`, `ImagesInput`, `IconInput`, `EmojiPicker`, `MenuButton` + `DateTimeInput`, `ImagesInput`, `IconInput`, `EmojiPicker`, `MenuButton`, `SegmentedButtons` - display and lists: `Icon`, `Badge`, `Card`, `Divider`, `Spinner`, `Tooltip`, `Tippy`, `Popover`, `Cv`, `VirtualList`, `Masonry`, `DragList`, `ScrollToTop` - the CSS component families (`button.css`, `card.css`, …) and the theme tokens diff --git a/src/app/components/ChatTabs.svelte b/src/app/components/ChatTabs.svelte index 498b8d0a..bc747140 100644 --- a/src/app/components/ChatTabs.svelte +++ b/src/app/components/ChatTabs.svelte @@ -1,10 +1,9 @@ -
- {#each CHAT_TABS as { value, label } (value)} - - {/each} -
+ diff --git a/src/lib/components/SegmentedButtons.svelte b/src/lib/components/SegmentedButtons.svelte new file mode 100644 index 00000000..1dd88bd1 --- /dev/null +++ b/src/lib/components/SegmentedButtons.svelte @@ -0,0 +1,41 @@ + + + + +
+ {#each options as option (option.value)} + + {/each} +
diff --git a/src/routes/spaces/[relay]/calendar/+page.svelte b/src/routes/spaces/[relay]/calendar/+page.svelte index 6fd7b68c..550592e2 100644 --- a/src/routes/spaces/[relay]/calendar/+page.svelte +++ b/src/routes/spaces/[relay]/calendar/+page.svelte @@ -1,6 +1,5 @@