Skip to content

Commit 6cfbacb

Browse files
author
n3kosempai
committed
[release] correction of the changelog function
1 parent 40b0aa6 commit 6cfbacb

7 files changed

Lines changed: 21 additions & 21 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# KliaStore
22

3-
A modern desktop application for browsing and managing Flatpak applications from Flathub
3+
A modern desktop application for browsing and managing Flatpak applications from Flathub.
44

55
## Features
66

io.github.N3kosempai.klia-store.metainfo.xml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<binary>klia-store</binary>
3838
</provides>
3939
<releases>
40-
<release version="2.0.0" date="2025-11-24">
40+
<release version="2.0.1" date="2025-11-24">
4141
<description>
4242
<p>🎉 Major redesign! Experience Klia Store like never before with a stunning visual overhaul and powerful new features:</p>
4343
<ul>
@@ -54,22 +54,6 @@
5454
</ul>
5555
</description>
5656
</release>
57-
<release version="1.2.3" date="2025-01-23">
58-
<description>
59-
<p>Improved update experience and home page enhancements:</p>
60-
<ul>
61-
<li>Update All button now refreshes automatically after completing all updates.</li>
62-
<li>Added loading indicator when checking for updates to prevent confusion.</li>
63-
<li>Fixed issue where the update count wouldn't refresh after closing the update dialog.</li>
64-
<li>Better visual feedback with spinner while verifying available updates.</li>
65-
<li>Featured section now displays as an interactive carousel with multiple highlighted apps.</li>
66-
<li>Improved image loading with skeleton placeholders to prevent showing outdated images.</li>
67-
<li>Renamed "Featured" section to "Spotlight" for better clarity.</li>
68-
<li>Added developer badges to installed app cards for easier app identification.</li>
69-
<li>Developer information is automatically extracted from app IDs without additional API calls.</li>
70-
</ul>
71-
</description>
72-
</release>
7357
</releases>
7458
<content_rating type="oars-1.1"/>
7559
</component>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "klia-store",
33
"private": true,
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "klia-store",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"identifier": "io.github.N3kosempai.klia-store",
66
"build": {
77
"beforeDevCommand": "npm run dev",

src/components/ReleaseNotesModal.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface ReleaseNotesModalProps {
2424
appName: string;
2525
currentVersion: string;
2626
newVersion: string;
27+
changelog?: string;
2728
open: boolean;
2829
onClose: () => void;
2930
}
@@ -33,6 +34,7 @@ export const ReleaseNotesModal = ({
3334
appName,
3435
currentVersion,
3536
newVersion,
37+
changelog,
3638
open,
3739
onClose,
3840
}: ReleaseNotesModalProps) => {
@@ -47,6 +49,18 @@ export const ReleaseNotesModal = ({
4749
setIsLoading(true);
4850
setError(null);
4951
try {
52+
// Si hay changelog disponible, usarlo directamente
53+
if (changelog) {
54+
setReleases([{
55+
timestamp: String(Math.floor(Date.now() / 1000)),
56+
version: newVersion,
57+
description: changelog,
58+
}]);
59+
setIsLoading(false);
60+
return;
61+
}
62+
63+
// Si no hay changelog, intentar cargar desde la API
5064
const appStream: AppStream = await apiService.getAppStream(appId);
5165

5266
if (appStream.releases && appStream.releases.length > 0) {
@@ -65,7 +79,7 @@ export const ReleaseNotesModal = ({
6579
};
6680

6781
loadReleaseNotes();
68-
}, [appId, open]);
82+
}, [appId, open, changelog, newVersion]);
6983

7084
// Función para limpiar HTML de la descripción
7185
const stripHtml = (html: string) => {

src/pages/myApps/MyApps.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ export const MyApps = ({ onBack }: MyAppsProps) => {
461461
appName={selectedApp.name}
462462
currentVersion={selectedApp.version}
463463
newVersion={updateInfo.newVersion}
464+
changelog={updateInfo.changelog}
464465
open={selectedAppForNotes !== null}
465466
onClose={handleCloseModal}
466467
/>

src/store/installedAppsStore.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface UpdateAvailableInfo {
1212
appId: string;
1313
newVersion: string;
1414
branch: string;
15+
changelog?: string;
1516
}
1617

1718
interface InstalledAppsStore {

0 commit comments

Comments
 (0)