changelog.patch
1 --- a/yaak/src-web/components/SettingsDropdown.tsx 2 +++ b/yaak/src-web/components/SettingsDropdown.tsx 3 @@ -61,6 +61,19 @@ 4 leftSlot: <Icon icon="rocket" />, 5 onSelect: () => openUrl('https://yaak.app/button/new'), 6 }, 7 + { type: 'separator', label: `Yaak v${appInfo.yaakVersion}` }, 8 + { 9 + label: 'Feedback', 10 + leftSlot: <Icon icon="chat" />, 11 + rightSlot: <Icon icon="external_link" color="secondary" />, 12 + onSelect: () => openUrl('https://yaak.app/feedback'), 13 + }, 14 + { 15 + label: 'Changelog', 16 + leftSlot: <Icon icon="cake" />, 17 + rightSlot: <Icon icon="external_link" color="secondary" />, 18 + onSelect: () => openUrl(`https://yaak.app/changelog/${appInfo.yaakVersion}`), 19 + }, 20 { type: 'separator', label: `Fiak v${appInfo.version}` }, 21 { 22 label: 'Check for Updates', 23 @@ -76,16 +89,16 @@ 24 onSelect: () => openUrl('https://yaak.app/docs/cli'), 25 }, 26 { 27 - label: 'Feedback', 28 + label: 'Issues', 29 leftSlot: <Icon icon="chat" />, 30 rightSlot: <Icon icon="external_link" color="secondary" />, 31 - onSelect: () => openUrl('https://yaak.app/feedback'), 32 + onSelect: () => openUrl('https://github.com/Vexcited/Fiak/issues'), 33 }, 34 { 35 label: 'Changelog', 36 leftSlot: <Icon icon="cake" />, 37 rightSlot: <Icon icon="external_link" color="secondary" />, 38 - onSelect: () => openUrl(`https://yaak.app/changelog/${appInfo.version}`), 39 + onSelect: () => openUrl(`https://github.com/Vexcited/Fiak/releases/tag/v${appInfo.version}`), 40 }, 41 ]} 42 > 43 --- a/yaak/src-web/lib/appInfo.ts 44 +++ b/yaak/src-web/lib/appInfo.ts 45 @@ -4,6 +4,7 @@ 46 export interface AppInfo { 47 isDev: boolean; 48 version: string; 49 + yaakVersion: string; 50 cliVersion: string | null; 51 name: string; 52 appDataDir: string; 53 @@ -17,6 +18,10 @@ 54 export const appInfo = { 55 ...(await invokeCmd('cmd_metadata')), 56 identifier: await getIdentifier(), 57 + get yaakVersion(): string { 58 + // <yaak_version>[-fiak<fiak_version>] 59 + return this.version.split("-")[0]!; 60 + } 61 } as AppInfo; 62 63 console.log('App info', appInfo); 64 --- a/yaak/src-web/lib/initGlobalListeners.tsx 65 +++ b/yaak/src-web/lib/initGlobalListeners.tsx 66 @@ -228,7 +228,7 @@ 67 variant="border" 68 rightSlot={<Icon icon="external_link" />} 69 onClick={async () => { 70 - await openUrl(`https://yaak.app/changelog/${version}`); 71 + await openUrl(`https://github.com/Vexcited/Fiak/releases/tag/v${version}`); 72 }} 73 > 74 What's New