From dad82682e81cd62520752bd0fb8d28b9ea162aee Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Wed, 30 Aug 2023 18:05:15 +0200 Subject: [PATCH] Add antenna timeline explanation --- locales/en-US.yml | 2 ++ packages/client/src/components/MkTimeline.vue | 6 ++++++ packages/client/src/store.ts | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/locales/en-US.yml b/locales/en-US.yml index 0245d1709..2bd9cfa2d 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -424,6 +424,8 @@ withFileAntenna: "Only posts with files" enableServiceworker: "Enable Push-Notifications for your Browser" antennaUsersDescription: "List one username per line" antennaInstancesDescription: "List one server host per line" +antennaTimelineHint: "Antennas display matching posts in order they have been received in, + which is not necessarily chronological." caseSensitive: "Case sensitive" withReplies: "Include replies" connectedTo: "Following account(s) are connected" diff --git a/packages/client/src/components/MkTimeline.vue b/packages/client/src/components/MkTimeline.vue index a44d64184..e4c415d53 100644 --- a/packages/client/src/components/MkTimeline.vue +++ b/packages/client/src/components/MkTimeline.vue @@ -101,6 +101,9 @@ if (props.src === "antenna") { antennaId: props.antenna, }); connection.on("note", prepend); + + tlHint = i18n.ts.antennaTimelineHint; + tlHintClosed = defaultStore.state.tlAntennaHintClosed; } else if (props.src === "home") { endpoint = "notes/timeline"; query = { @@ -220,6 +223,9 @@ function closeHint() { case "global": defaultStore.set("tlGlobalHintClosed", true); break; + case "antenna": + defaultStore.set("tlAntennaHintClosed", true); + break; } } diff --git a/packages/client/src/store.ts b/packages/client/src/store.ts index f0febab17..38bf256ec 100644 --- a/packages/client/src/store.ts +++ b/packages/client/src/store.ts @@ -46,6 +46,10 @@ export const defaultStore = markRaw( where: "device", default: false, }, + tlAntennaHintClosed: { + where: "device", + default: false, + }, keepCw: { where: "account", default: true,