Skip to content

Commit 04cd764

Browse files
chore: Update CHANGELOG for version 1.1.3 with improved update behavior and loading progress adjustments
1 parent 5301129 commit 04cd764

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# IDEFIX Terminal Changelog
22

3+
## [1.1.3] - 2025-05-09
4+
5+
> _Important: Please clear your browser cache (e.g. **Ctrl+F5**) to ensure outdated files are updated._
6+
7+
- FIXED: better update behavior.
8+
39
## [1.1.2] - 2025-05-09
410

511
> _Important: Please clear your browser cache (e.g. **Ctrl+F5**) to ensure outdated files are updated._

frontend/LoadingProvider.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,10 @@ export const LoadingProvider = ({ children }: { children: ReactNode }) => {
2828
<Ctx.Provider value={api}>
2929
{children}
3030

31-
<Backdrop open={state.open} sx={{ zIndex: 1301, color: 'white', backdropFilter: 'blur(3px)' }}>
31+
<Backdrop open={state.open} sx={{ zIndex: 9998, color: 'white', backdropFilter: 'blur(3px)' }}>
3232
<Fade in={state.open} timeout={300}>
3333
<Stack spacing={2} sx={{ minWidth: 240 }} alignItems="center">
34-
{state.progress === undefined ? (
35-
<CircularProgress size={48} thickness={4} />
36-
) : (
37-
<>
38-
<Typography variant="caption">{state.message}%</Typography>
39-
</>
40-
)}
34+
<CircularProgress size={48} thickness={4} />
4135
{state.message && <Typography variant="caption">{state.message}</Typography>}
4236
</Stack>
4337
</Fade>

frontend/modules/Engine.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,19 +178,25 @@ class Engine {
178178
});
179179

180180
if (windowReload) {
181-
setTimeout(() => window.location.reload(), 1_000);
181+
setTimeout(() => window.location.reload(), 1000);
182182
}
183183
}
184184
async checkLoadingProgress(opts: { onUpdate: (msg?: string, progress?: number) => void; onDone: () => void }): Promise<void> {
185185
const timer = setInterval(async () => {
186186
const r = await this.getResponse();
187+
187188
if (r.loading) {
188189
opts.onUpdate(r.loading.message, r.loading.progress);
190+
191+
if (typeof r.loading.progress === 'number' && r.loading.progress >= 100) {
192+
clearInterval(timer);
193+
opts.onDone();
194+
}
189195
} else {
190196
clearInterval(timer);
191197
opts.onDone();
192198
}
193-
}, 1000);
199+
}, 300);
194200
}
195201
}
196202

0 commit comments

Comments
 (0)