From 40f537a8b9761cadb5262385f990fd5a4fac7398 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Mon, 16 Nov 2026 14:01:56 -0800 Subject: [PATCH] Stories: drop the Live chip and filter no story can show No GEV story is live, so the LIVE card chip, the Live topic filter, the catalog's live field and their styles are removed. --- src/stories/catalog.js | 2 -- src/ui/styles/stories-entry.css | 1 - src/ui/styles/stories.css | 24 ------------------------ src/ui/views/stories/ExploreScreen.vue | 13 +++---------- src/ui/views/stories/StoryScreen.vue | 2 +- 5 files changed, 4 insertions(+), 38 deletions(-) diff --git a/src/stories/catalog.js b/src/stories/catalog.js index bc7fc5b06..75b63b4de 100644 --- a/src/stories/catalog.js +++ b/src/stories/catalog.js @@ -235,7 +235,6 @@ function shippedStory(recipe) { id: `gev:${recipe.id}`, sceneId: recipe.id, kind: 'gev', - live: false, title: recipe.title, creator: 'GEV', tags: Object.entries(recipe.layers ?? {}) @@ -267,7 +266,6 @@ function savedStory(entry) { id: `gev:${entry.id}`, sceneId: entry.id, kind: 'gev', - live: false, mine: true, // Not saved with SAVE TO STORIES yet. draft: !!entry.draft, diff --git a/src/ui/styles/stories-entry.css b/src/ui/styles/stories-entry.css index 76c216f3e..870cb66e7 100644 --- a/src/ui/styles/stories-entry.css +++ b/src/ui/styles/stories-entry.css @@ -16,7 +16,6 @@ --text-dim: rgba(232, 234, 237, 0.42); --menu-bg: #12121c; --warn: #ffb45a; - --live: #ff4d4d; --cable: #a9b8ff; --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace; --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; diff --git a/src/ui/styles/stories.css b/src/ui/styles/stories.css index e9566a011..f9ebddf11 100644 --- a/src/ui/styles/stories.css +++ b/src/ui/styles/stories.css @@ -716,24 +716,6 @@ color: #eaf6f9; white-space: nowrap; } -#gev-stories .chip .dot { - width: 6px; - height: 6px; - border-radius: 50%; - background: var(--live); - animation: gsx-pulse 1.6s ease-out infinite; -} -@keyframes gsx-pulse { - 0% { - box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6); - } - 70% { - box-shadow: 0 0 0 6px rgba(255, 77, 77, 0); - } - 100% { - box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); - } -} #gev-stories .thumb .chip { position: absolute; top: 6px; @@ -2800,12 +2782,6 @@ border-color: rgba(0, 212, 255, 0.6); color: var(--accent); } -#gev-stories .chip.live i { - width: 6px; - height: 6px; - border-radius: 50%; - background: var(--live); -} #gev-stories .fh-sort { flex: none; height: 28px; diff --git a/src/ui/views/stories/ExploreScreen.vue b/src/ui/views/stories/ExploreScreen.vue index ee882c690..359b65819 100644 --- a/src/ui/views/stories/ExploreScreen.vue +++ b/src/ui/views/stories/ExploreScreen.vue @@ -62,10 +62,7 @@ const shown = computed(() => { const m = metaFor(s); const txt = searchText(s); if (words.some((w) => !txt.includes(w))) return false; - if ( - chips.value.length && - !chips.value.some((c) => (c === 'Live' ? s.live : m.topics.includes(c))) - ) + if (chips.value.length && !chips.value.some((c) => m.topics.includes(c))) return false; if (f.region?.length && !f.region.includes(m.region)) return false; if ( @@ -548,10 +545,9 @@ defineExpose({ :key="c" type="button" class="chip" - :class="{ live: c === 'Live' }" :aria-pressed="chips.includes(c)" @click="toggleChip(c)" - >{{ t(c) }}{{ t(c) }} @@ -623,10 +619,7 @@ defineExpose({ alt="" loading="lazy" /> - {{ t('LIVE') }} - {{ + {{ s.draft ? t('DRAFT') : t('STORY') }} {{ fmtDur(s.durationMs) }} diff --git a/src/ui/views/stories/StoryScreen.vue b/src/ui/views/stories/StoryScreen.vue index 058190f97..ad32f837f 100644 --- a/src/ui/views/stories/StoryScreen.vue +++ b/src/ui/views/stories/StoryScreen.vue @@ -342,7 +342,7 @@ watch([k, page], () => nextTick(sizeCard));
{{ - story.live ? t('LIVE') : story.draft ? t('DRAFT') : t('STORY') + story.draft ? t('DRAFT') : t('STORY') }}
{{ title }}