diff --git a/mobile/src/changelog.ts b/mobile/src/changelog.ts index 472fcee..e88a853 100644 --- a/mobile/src/changelog.ts +++ b/mobile/src/changelog.ts @@ -16,6 +16,14 @@ export type ChangelogEntry = { }; export const CHANGELOG: ChangelogEntry[] = [ + { + id: '2026-06-20c', + date: 'June 2026', + items: [ + 'Cleaner site names (dropped the .com/.org clutter).', + 'siska scenes work again (and their newer videos play).', + ], + }, { id: '2026-06-20b', date: 'June 2026', diff --git a/mobile/src/screens/SitesScreen.tsx b/mobile/src/screens/SitesScreen.tsx index 3d7b8f0..fafa18d 100644 --- a/mobile/src/screens/SitesScreen.tsx +++ b/mobile/src/screens/SitesScreen.tsx @@ -115,7 +115,7 @@ export function SitesScreen() { onPress={() => navigation.navigate('SiteScenes', { origin: item.origin, - name: item.display_name, + name: prettySiteName(item.display_name), }) } /> @@ -152,6 +152,12 @@ function SegButton({ ); } +// Lista Sites pokazuje display_name = domena (hqporner.com). User-report 18105d14: +// pozbyć się suffixów com/org/itp. Strip końcowego TLD → czysta nazwa. +function prettySiteName(name: string): string { + return name.replace(/\.[a-z]{2,5}$/i, '').trim() || name; +} + function formatRelativeTime(iso: string | null): string | null { if (!iso) return null; const ts = Date.parse(iso); @@ -174,7 +180,7 @@ function SiteChip({ source, onPress }: { source: SourceOut; onPress: () => void > - {source.display_name} + {prettySiteName(source.display_name)} {rel ? {rel} : null}