From 2350490e8431b751bf121c33a8b90cacc0f0bbc5 Mon Sep 17 00:00:00 2001 From: Ritesh Shukla Date: Wed, 29 Oct 2025 20:58:37 +0530 Subject: [PATCH 1/2] And OTA Version to Info Tab in Settings (#617) --- .../Settings/components/info-tab.tsx | 51 +++++++++++-------- 1 file changed, 31 insertions(+), 20 deletions(-) diff --git a/src/components/Settings/components/info-tab.tsx b/src/components/Settings/components/info-tab.tsx index 031e2ede..a5eca38b 100644 --- a/src/components/Settings/components/info-tab.tsx +++ b/src/components/Settings/components/info-tab.tsx @@ -2,7 +2,7 @@ import { version } from '../../../../package.json' import { Text } from '../../Global/helpers/text' import SettingsListGroup from './settings-list-group' import { Linking } from 'react-native' -import { ScrollView, XStack } from 'tamagui' +import { ScrollView, XStack, YStack } from 'tamagui' import Icon from '../../Global/components/icon' import usePatrons from '../../../api/queries/patrons' import { useQuery } from '@tanstack/react-query' @@ -10,7 +10,7 @@ import INFO_CAPTIONS from '../utils/info-caption' import { ONE_HOUR } from '../../../constants/query-client' import { pickRandomItemFromArray } from '../../../utils/random' import { FlashList } from '@shopify/flash-list' - +import { getStoredOtaVersion } from 'react-native-nitro-ota' export default function InfoTab() { const patrons = usePatrons() @@ -20,7 +20,8 @@ export default function InfoTab() { staleTime: ONE_HOUR, initialData: 'Live and in stereo', }) - + const otaVersion = getStoredOtaVersion() + const otaVersionText = otaVersion ? `OTA Version: ${otaVersion}` : '' return ( - - Linking.openURL('https://github.com/Jellify-Music/App') - } - > - - View Source + + {otaVersionText && ( + + {otaVersionText} + + )} + + + + Linking.openURL('https://github.com/Jellify-Music/App') + } + > + + View Source + + + Linking.openURL('https://discord.gg/yf8fBatktn') + } + > + + Join Discord + - Linking.openURL('https://discord.gg/yf8fBatktn')} - > - - Join Discord - - + ), }, { From 802471a7ed144280d44a736c5d2c40d3353e6931 Mon Sep 17 00:00:00 2001 From: Violet Caulfield <42452695+anultravioletaurora@users.noreply.github.com> Date: Wed, 29 Oct 2025 10:29:19 -0500 Subject: [PATCH 2/2] update info captions (#609) Update the silly captions that get displayed alongside the version number --- src/components/Settings/components/info-tab.tsx | 4 +++- .../utils/info-caption.ts => configs/info.config.ts} | 11 ++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) rename src/{components/Settings/utils/info-caption.ts => configs/info.config.ts} (69%) diff --git a/src/components/Settings/components/info-tab.tsx b/src/components/Settings/components/info-tab.tsx index a5eca38b..5abba685 100644 --- a/src/components/Settings/components/info-tab.tsx +++ b/src/components/Settings/components/info-tab.tsx @@ -6,7 +6,7 @@ import { ScrollView, XStack, YStack } from 'tamagui' import Icon from '../../Global/components/icon' import usePatrons from '../../../api/queries/patrons' import { useQuery } from '@tanstack/react-query' -import INFO_CAPTIONS from '../utils/info-caption' +import { INFO_CAPTIONS } from '../../../configs/info.config' import { ONE_HOUR } from '../../../constants/query-client' import { pickRandomItemFromArray } from '../../../utils/random' import { FlashList } from '@shopify/flash-list' @@ -19,6 +19,8 @@ export default function InfoTab() { queryFn: () => `${pickRandomItemFromArray(INFO_CAPTIONS)}`, staleTime: ONE_HOUR, initialData: 'Live and in stereo', + refetchOnMount: 'always', + refetchOnWindowFocus: 'always', }) const otaVersion = getStoredOtaVersion() const otaVersionText = otaVersion ? `OTA Version: ${otaVersion}` : '' diff --git a/src/components/Settings/utils/info-caption.ts b/src/configs/info.config.ts similarity index 69% rename from src/components/Settings/utils/info-caption.ts rename to src/configs/info.config.ts index 16c1cd8d..aeaf0a18 100644 --- a/src/components/Settings/utils/info-caption.ts +++ b/src/configs/info.config.ts @@ -1,15 +1,22 @@ -const INFO_CAPTIONS = [ +export const INFO_CAPTIONS = [ // Wholesome stuff 'Made with love', // Outside jokes (that anyone can get) 'Not made with real jellyfish', + 'New high score!', + 'You are lucky caller #13!!!', // classic phrase from ticket giveaways on the radio // Inside Jokes (that the internal Jellify team will get) 'Thank you, Pikachu', 'Boosted by Nitro!', // since we use nitro modules 'git blame violet', // lol + + // Jellyfin Team References 'Made possible by Niels', // O Captain, My Captain! + 'Not approved by Venson', // + 'Jellychan 4ever <3', // The official unofficial mascot of Jellyfin + 'Coming soon (tm)', // ETA for Jellyfin X.Y // Movie Quotes 'Groovy, baby!', // Austin Powers @@ -22,5 +29,3 @@ const INFO_CAPTIONS = [ '─=≡Σ((( つ•̀ω•́)つ', '・:*+.\\(( °ω° ))/.:+', ] - -export default INFO_CAPTIONS