feat: full app integration — all screens wired and working

This commit is contained in:
Yossi Elkrief
2026-03-02 13:02:50 +02:00
parent 47861de821
commit df394019cc
6 changed files with 93 additions and 44 deletions

View File

@@ -98,10 +98,11 @@ export const SettingsScreen = () => {
const intervalSummary = useMemo(() => `${scanInterval}s`, [scanInterval]);
const handleSaveUrl = () => {
setServerUrl(draftUrl);
apiService.setBaseUrl(draftUrl);
const newUrl = draftUrl.trim();
setServerUrl(newUrl);
wsService.disconnect();
wsService.connect(draftUrl);
wsService.connect(newUrl);
apiService.setBaseUrl(newUrl);
};
const handleOpenGitHub = async () => {