Commit Graph

113 Commits

Author SHA1 Message Date
beo3000 40574ba339 ui 2026-02-23 17:21:26 +01:00
beo3000 63a862fd7d fitle fixes 2026-02-23 17:19:26 +01:00
beo3000 d510e96541 added api-keys 2026-02-23 15:44:10 +01:00
beo3000 ab5e38abc2 ui fixes 2026-02-23 15:30:30 +01:00
beo3000 a3b627f049 added journal archive 2026-02-23 14:52:59 +01:00
beo3000 15fb01e2b1 ui fixes 2026-02-23 09:52:55 +01:00
beo3000 d63c75e551 ui fixes 2026-02-23 08:49:19 +01:00
beo3000 7886947a65 link fix 2026-02-22 22:05:07 +01:00
beo3000 92a077009e ui opti 2026-02-22 21:51:01 +01:00
beo3000 d281b1babc added pages feature 2026-02-22 21:35:43 +01:00
beo3000 9c9472671b ui private uodate 2026-02-22 17:34:52 +01:00
beo3000 63d36a1611 added private journal 2026-02-22 17:16:55 +01:00
beo3000 4d00be63e7 ui opti 2026-02-22 16:38:44 +01:00
beo3000 623d3f90bf added drag&drop 2026-02-22 16:17:03 +01:00
beo3000 6116069fff ui optimizations 2026-02-22 16:13:25 +01:00
beo3000 afb330ed5d fix sync problems 2026-02-22 14:59:42 +01:00
beo3000 60e38dc593 fix sync problems 2026-02-22 14:39:38 +01:00
beo3000 4106c63803 added trash und fix seed data 2026-02-22 13:37:14 +01:00
beo3000 78df40e598 ui fix menu part2 2026-02-22 12:35:08 +01:00
beo3000 0e4b5f0612 ui fix pwa 1 2026-02-22 12:19:03 +01:00
beo3000 dc47683e4c sync fix 2026-02-22 11:36:57 +01:00
beo3000 3822d66538 upd 2026-02-21 22:37:13 +01:00
beo3000 9ca5ad35c2 upd 2026-02-21 22:37:03 +01:00
beo3000 c28bd34a1a fix: persistent token cache in get-token.ps1
- Fast path: reads from ~/.ka-note/token.txt if not expired (no MSAL needed)
- On expiry: MSAL silent refresh with login hint
- Fallback: interactive browser login (~once per 90 days)
- Auto-saves every acquired token back to cache file

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-21 22:31:03 +01:00
beo3000 dc52f64ed4 feat: activate MSAL auto-login in get-token.ps1
Azure Portal config done:
- Added redirect URI: https://login.microsoftonline.com/common/oauth2/nativeclient
- Allow public client flows: Yes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-21 22:21:49 +01:00
beo3000 a67dc06b30 feat: set-token.ps1 + JF LANdata import script
- get-token.ps1: reads token from ~/.ka-note/token.txt, validates JWT expiry
- set-token.ps1: stores token (from arg or clipboard) to ~/.ka-note/token.txt with expiry display
- import-jf-landata.ps1: idempotent import for JF LANdata context (12 topics, 14 history entries)
- MSAL auto-login blocked by missing redirect URI in app registration (documented in get-token.ps1)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-21 22:18:18 +01:00
beo3000 3b6ae8c92b feat: auto token acquisition + import helpers for Ka-Note scripts
- get-token.ps1: MSAL.PS-based token acquisition (browser popup once, then cached refresh token)
- download/upload/unlock.ps1: auto-call get-token.ps1 when no -Token/-env provided
- import-helpers.ps1: reusable functions (Upsert-Context, Add-Topic, Add-HistoryEntry) with correct schema
- import-jf-sysadmins.ps1: idempotent import script using helpers

Fixes:
- Token file no longer stored in work/ (deleted on download)
- Upsert-Context resurrects soft-deleted contexts (500 was caused by uploading topics for deleted context)
- History uses topicId + YYYY-MM-DD date (not contextId + timestamp)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-21 22:08:12 +01:00
beo3000 28221232d6 ui fix ios 2026-02-21 20:02:50 +01:00
beo3000 65efe0c540 fix image sync 2026-02-21 19:50:07 +01:00
beo3000 364c99381c fix: chunked base64 encode/decode for large image blobs in sync 2026-02-21 19:44:03 +01:00
beo3000 58c990d4e6 feat: ZIP workspace + image blob sync
Phase 1 - ImageBlob sync:
- shared: add ImageBlob type (SyncEntity + contentHash + base64 data)
- shared: add imageBlobs to SyncChanges
- server: image_blobs table (drizzle migration 0005)
- server: sync-service push/pull for imageBlobs (base64 transport)
- client: Dexie v8 schema with SyncEntity-compatible ImageBlob
- client: storeImage computes SHA-256 contentHash
- client: syncService push (Blob→base64) and pull (base64→Blob)

Phase 2 - ZIP AI workspace:
- server: fflate dependency
- server: exportWorkspaceZip() replaces exportBundle()
- server: applyUploadFromZip() with contentHash dedup for images
- server: legacy JSON applyUpload() kept for backward compat
- server: ai-export routes support application/zip upload
- server: README updated for ZIP workspace structure
- scripts: download.ps1 extracts ZIP → work/ subdirs
- scripts: upload.ps1 compresses work/ → ZIP, posts octet-stream
- scripts: unlock.ps1 reads work/manifest.json (also supports legacy bundle)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-21 19:35:12 +01:00
beo3000 04983c2a05 dev 2026-02-21 19:25:43 +01:00
beo3000 07afabdbb2 ui fix für ios 2026-02-21 15:52:31 +01:00
beo3000 9c04b8652c fix bypass in production 2026-02-21 15:49:52 +01:00
beo3000 098c9d8ace UI/UX optimierung ios 2026-02-21 13:57:17 +01:00
beo3000 303f7ee696 added bypass login 2026-02-21 13:40:43 +01:00
beo3000 06722b4667 deploy 2026-02-21 13:30:53 +01:00
beo3000 27880646cc fix sync in local test env 2026-02-21 13:17:07 +01:00
beo3000 bf3db803ac added manifest 2026-02-21 13:11:22 +01:00
beo3000 786b4374b4 upd link handling 2026-02-21 12:56:17 +01:00
beo3000 90970322f1 upd link handling journal 2026-02-21 12:46:29 +01:00
beo3000 9db6cacb8c link update 2026-02-21 12:32:52 +01:00
beo3000 71d5a6593a fix sync 2026-02-21 11:20:40 +01:00
beo3000 a320b1c291 fix sync und deploy problems 2026-02-21 10:38:25 +01:00
beo3000 e8e3f2eb15 fix deploy, lournal wiedervorlage 2026-02-21 09:50:23 +01:00
beo3000 1da4050813 added wiedervorlage 2026-02-21 08:28:28 +01:00
beo3000 ed9597c2dd fix deploy 2026-02-20 22:38:59 +01:00
beo3000 80c7064666 ux update 2026-02-20 22:34:53 +01:00
beo3000 6818c469f6 ux updates 2026-02-20 22:33:48 +01:00
beo3000 46047ca543 ui update 2026-02-20 22:24:26 +01:00