Commit Graph

  • 8e7d7315b0 Rename Android root composable to KlottrAppShell to reflect shared-driven UI Fabian Norlin 2025-09-19 13:06:25 +02:00
  • 5b9f18f405 Share Username dialog body; make BasicTextField cursor visible in dark mode Fabian Norlin 2025-09-19 12:57:39 +02:00
  • cc07e892ec Share Nearby dialog container and fix night-mode text in detail dialogs Fabian Norlin 2025-09-19 00:02:53 +02:00
  • 793419893a Share login-required content; use shared composable in Android dialog Fabian Norlin 2025-09-18 23:29:19 +02:00
  • 9da472fd2d Share About content: add material-free KlottrAboutContent; use it inside Android AlertDialog Fabian Norlin 2025-09-18 23:18:05 +02:00
  • 32afeb5a31 Simplify Nearby flow: store results as Triple and feed dialog directly; remove unused Android lists Fabian Norlin 2025-09-18 23:02:03 +02:00
  • a9b6d18611 Share home UI: add material-free KlottrHomeContent and use it from Android Fabian Norlin 2025-09-18 22:32:43 +02:00
  • f0d9f8ef2e Rely on shared FoundContent for empty state; simplify MainActivity Fabian Norlin 2025-09-18 21:17:51 +02:00
  • ee440e3ffb Share DM/Wiki/Fornsok detail UI (material-free); Android keeps only dialog shells Fabian Norlin 2025-09-18 20:00:11 +02:00
  • eb23694091 Detail access via shared rule: integrate decideDetailAccess in KlotterDialog and fix blockedText nullability Fabian Norlin 2025-09-18 18:48:13 +02:00
  • 722763fccb Detail formatting to shared: use buildFoundDetailStrings in KlotterDialog (millis→strings via commonMain) Fabian Norlin 2025-09-18 16:45:59 +02:00
  • cf049bade1 Shared detail UX: make image clickable in FoundDetailContent (use onImageClick via Modifier.clickable) Fabian Norlin 2025-09-18 16:17:05 +02:00
  • 061beaaa84 Move detail body to shared CMP: add FoundDetailContent and integrate in MainActivity (preserve image click, keep Android actions) Fabian Norlin 2025-09-18 16:08:20 +02:00
  • fbae61eb16 Move unit formatting to :shared: add expect/actual formatRelativeOrTime, port formatCoords/formatDistance to commonMain (JVM-free), remove app UnitFormat + TimeFormat files, update SettingsContent to use shared formatter Fabian Norlin 2025-09-18 14:48:57 +02:00
  • fd1afcbb55 Logging cleanup: delete AppLog.kt and enable KLog via BuildConfig in MainActivity Fabian Norlin 2025-09-18 14:12:15 +02:00
  • 8c9bf5f5f5 Replace AppLog with shared KLog across app module   Fabian Norlin 2025-09-18 13:04:13 +02:00
  • 42c1f6311d Cleanup Nearby: remove legacy states/imports and avoid entries shadowing in NearbyDialog Fabian Norlin 2025-09-18 12:43:42 +02:00
  • 14e94bfc8e Correct initialisation of UIKit scene and fix for forced compatibility mode Olof Hedman 2025-09-17 14:22:52 +02:00
  • 9e367105bb Renamed Google Auth implementation for iOS Olof Hedman 2025-09-17 14:21:17 +02:00
  • ce2c96daa7 Increase java heap for gradle (got oom when compiling xcframework) Olof Hedman 2025-09-16 16:44:37 +02:00
  • 2eed4d56ac Main UI in Shared (KlottrRoot.kt) that also work on iOS Olof Hedman 2025-09-16 16:33:52 +02:00
  • d0046646fc Manual Info.plist with app id:s for google signin Olof Hedman 2025-09-16 13:41:02 +02:00
  • a57580a96f Build shared framework as static to easily work on device Olof Hedman 2025-09-16 13:39:47 +02:00
  • 3b000f9b2d Change bundle id to app.klottr Olof Hedman 2025-09-16 13:39:12 +02:00
  • ba93d0ad9d Use kotlin platform independent time instead of jvm System Olof Hedman 2025-09-16 13:38:36 +02:00
  • e1832c7744 Implement LastLocationStore for ios Olof Hedman 2025-09-16 13:37:49 +02:00
  • f691f48093 Merge branch 'main' into ios-google-signin Olof Hedman 2025-09-16 13:37:15 +02:00
  • 2ff8349c1d app(nearby): move markNewFinds to fetch phase; simplify NearbyDialog to render built entries; drop wiki/klotter/radius params from dialog and call site Fabian Norlin 2025-09-16 00:26:56 +02:00
  • c54833dfe2 shared(nearby): add getNearbyBundle use-case (fetch+build); app(nearby): store built entries state, pass entries to NearbyDialog, remove in-dialog build Fabian Norlin 2025-09-16 00:09:45 +02:00
  • 4119f4165e shared(nearby): apply toggle+radius filtering in KMP builder; app(nearby): pass toggles to builder and dialog - shared: buildNearbyEntries(...) now accepts showKlotter/showWiki/showDm/showFornsok and filters by per-layer radii (Wiki/DM/Fornsok) while keeping Klotter visible outside 20 m (label falls back to “Okänt klotter”). Sorting by distance remains. - app: NearbyDialog signature includes toggles and forwards them to the shared builder. - app: call site updated to pass toggles; behavior unified across platforms. - No Material dependencies added; Android build stays green. Fabian Norlin 2025-09-15 23:25:30 +02:00
  • 2d5312ab57 shared(ui/nearby): unify open handling via FoundOpenAction; app(nearby): map single onOpenAction in NearbyDialog; drop per-layer callbacks Fabian Norlin 2025-09-15 21:26:06 +02:00
  • 851b03a97f feat: instant found refresh, silent self-notes, better write flow Fabian Norlin 2025-09-15 17:44:12 +02:00
  • 7085e42b17 shared(ui): add WriteDocContent; app(write): integrate and fix focus/placeholder/cursor; outbox: persist image using captured URI Fabian Norlin 2025-09-15 00:46:00 +02:00
  • 9deca99711 app(write): on UploadFailed, queue to outbox via shared use case; persist image locally and schedule upload worker Fabian Norlin 2025-09-14 23:23:04 +02:00
  • c65f230665 shared(location): add expect/actual LastLocationStore (GeoPoint) app(util): adapt LastLocationStore to delegate to shared store while keeping android.location.Location API Fabian Norlin 2025-09-14 23:01:00 +02:00
  • ac451816e0 shared(nearby): add AutoScan (scanAndMarkFound + ScanConfig) with parallel fetch & DI app(main): replace three autoscan effects with one using shared AutoScan; refresh Found on new items app(settings): after “Clear all finds”, run immediate local rescan via shared AutoScan and repopulate UI Fabian Norlin 2025-09-14 22:47:52 +02:00
  • 4c87ef9490 shared(nearby): parallelize fetchNearbyData with structured concurrency (async) while keeping DI and API unchanged Fabian Norlin 2025-09-14 22:08:43 +02:00
  • 41270dacac shared(ui): refine SettingsContent (custom switches, highlighted dropdowns, compact day/night chips; red danger button) and integrate in Android SettingsDialog Fabian Norlin 2025-09-14 22:05:46 +02:00
  • 80981284cd shared(create): add createNoteFlow use case (upload→create orchestration) with CreateNoteOutcome app(main): use createNoteFlow in WriteDocDialog onSave; keep offline outbox path unchanged Fabian Norlin 2025-09-14 19:42:39 +02:00
  • dac05a23d4 shared(location): move AndroidLocationProvider to shared/androidMain; add play-services-location and coroutines-play-services deps; add iOS stub app(main): update imports and keep using centralized provider for startup, auto-scans, and “Nearby” flow Fabian Norlin 2025-09-14 19:33:00 +02:00
  • 5eb96a0ff1 KMP/location + UI: centralize location lookups and use shared panel shell in NearbyDialog Fabian Norlin 2025-09-14 18:20:38 +02:00
  • 4e2d062329 KMP/UI: shared scrollbars, common “Nearby” open resolver, and map panel shell — wired into app Fabian Norlin 2025-09-14 17:55:43 +02:00
  • dae2513b7c shared(ui): NearbyList fills its space and adds a lightweight, material-free scrollbar thumb; optional LazyListState support shared(nearby,ui): add resolveNearbyOpenAction for “Nearby” entries and remove 420dp height cap — NearbyContent now fills its space and uses the shared open resolver Fabian Norlin 2025-09-14 17:25:50 +02:00
  • a8e13c9556 shared(ui): FoundList fills space and adds a lightweight, material-free scrollbar thumb; exposes optional LazyListState shared(ui): use Color.takeOrElse for scrollbar color fallback; remove dependency on isSpecified shared(ui): harden FoundList scrollbar math (non-negative weights, safe totals); prevent startup crash on edge cases Fabian Norlin 2025-09-14 00:03:48 +02:00
  • c98d2c77a8 KMP/UI: snabbare ”Närliggande” + fullhöjd ”Hittat” Fabian Norlin 2025-09-13 23:20:39 +02:00
  • 18b1978c61 shared(ui): FoundContent – add isBold param and forward to FoundList app(found): pass isBold using !FoundStore.isAway(...) in FoundContent call Fabian Norlin 2025-09-13 16:59:12 +02:00
  • 6834efabd8 shared(ui): add NearbyContent (material-free) and subtitle/list wiring app(ui): use NearbyContent in NearbyDialog and mark finds before render Fabian Norlin 2025-09-13 16:16:39 +02:00
  • 757a910adb shared(nearby): add enrichKlotterLabels for Found list (DI-based); app(found): use shared enrichment instead of per-row fetch Fabian Norlin 2025-09-13 15:53:54 +02:00
  • 3e5e687642 app(nearby): use shared fetchNearbyData with injected fetchers; replace per-layer calls; keep toggles + logs Fabian Norlin 2025-09-13 15:36:12 +02:00
  • 0ed70edb9e shared(nearby): add layerDisplayName and wire into subtitleFor; app(found): use shared layerDisplayName for Hittat subtitle (no UI change) Fabian Norlin 2025-09-13 14:36:54 +02:00
  • 23e237c457 shared(ui): add material-free FoundList; app(found): render Hittat via shared FoundList; keep dark-mode text and click behavior Fabian Norlin 2025-09-12 21:04:04 +02:00
  • 88c041ef2b app(found): centralize klotter label enrichment in LaunchedEffect; remove per-row effect; use labelOverrides map (And some space removed in comments). Fabian Norlin 2025-09-12 20:51:33 +02:00
  • 9909b937b5 app(nearby): cache known klotter labels per open; avoid repeated FoundStore scans Fabian Norlin 2025-09-12 20:07:15 +02:00
  • 85828bd755 shared(nearby): add markNewFinds helper; app(ui): use shared markNewFinds in NearbyDialog (cleaner render path) Fabian Norlin 2025-09-12 19:55:07 +02:00
  • 2145b8ad89 app(ui): use shared nearby isClickable rule via FQN; no behavior change Fabian Norlin 2025-09-12 19:45:23 +02:00
  • 179360852b shared(nearby): add isClickable rule for Nearby; centralize per-layer clickability Fabian Norlin 2025-09-12 19:45:07 +02:00
  • 161887ee1d app(ui): use shared NearbyList in NearbyDialog; move markFound outside list render; keep dark-mode text via themed TextStyle Fabian Norlin 2025-09-12 19:36:23 +02:00
  • 5e5aa2def3 shared(ui): add material-free NearbyList composable; reuse NearbyEntryRow + subtitleFor; no material deps Fabian Norlin 2025-09-12 19:36:08 +02:00
  • fab3c2c506 shared(nearby); app(ui): add shared subtitleFor() and use it in NearbyDialog (dark-mode safe) Fabian Norlin 2025-09-12 19:00:35 +02:00
  • 5830c42114 app(ui): remove CMP pilot card (SharedInfoCard) from main content; drop unused import Fabian Norlin 2025-09-12 18:12:12 +02:00
  • f41605cd74 app(ui): replace local LAYER_FORNSOK with FoundStore.LAYER_FORNSOK in MainActivity; tidy related code Fabian Norlin 2025-09-12 17:51:52 +02:00
  • bd5a6956db shared(util): add LAYER_FORNSOK to FoundStore (KMP); use it in nearby builder Fabian Norlin 2025-09-12 17:51:37 +02:00
  • ecd5e3c091 app(ui): use shared nearby builder/model; fix dark-mode text in NearbyDialog; move “Senaste” to content; speed up theme toggle (LaunchedEffect key); clean debug imports Fabian Norlin 2025-09-12 17:19:38 +02:00
  • 584510c894 shared(ui,nearby): add buildNearbyEntries + NearbyEntryShared; make SharedInfoCard & NearbyEntryRow accept TextStyle (dark-mode safe) Fabian Norlin 2025-09-12 17:19:16 +02:00
  • a315eb6f07 shared(ui): make SharedInfoCard accept TextStyle for dark mode; keep foundation-only (no material deps) Fabian Norlin 2025-09-12 15:35:05 +02:00
  • a006b9ccb0 app(ui): place “Senaste” as content heading; render SharedInfoCard with themed TextStyle; remove debug UI; restore top app bar; speed up theme switch (LaunchedEffect key); use shared NearbyEntryRow in NearbyDialog; tidy imports Fabian Norlin 2025-09-12 15:34:52 +02:00
  • 589b3b8dbd app(ui): render shared CMP pilot (SharedInfoCard) from :shared/commonMain Fabian Norlin 2025-09-12 00:41:21 +02:00
  • 629d7b656d Initial commit. Fabian Norlin 2025-09-11 22:09:17 +02:00
  • 27983bf68f app(ui): fix delete visibility & refresh Found list after delete - Derive currentUserId from me (derivedStateOf) and pass into KlotterDialog - Use currentUserId param in canDelete check - Remove remember() around FoundStore.getAll() so Hittat updates immediately Fabian Norlin 2025-09-11 21:56:32 +02:00
  • 03a547f896 ios(sign-in): add Google SignIn for ios app Olof Hedman 2025-09-10 16:55:41 +02:00
  • e76c9129a7 shared(build): Rename XCFramework name to match module name Olof Hedman 2025-09-10 13:45:23 +02:00
  • 1dd860ab20 ios: add gitignore for xcode project Olof Hedman 2025-09-10 13:42:08 +02:00
  • e5d224e0c9 Merge remote-tracking branch 'origin/ios-support' Olof Hedman 2025-09-09 19:17:09 +02:00
  • fa1f3ec143 config: update kotlin to 2.2.10 for proper compose support on ios Olof Hedman 2025-09-09 15:42:15 +02:00
  • 19bf1258c0 refactor(shared): Move FoundStore to commonMain in shared library Olof Hedman 2025-09-09 15:09:51 +02:00
  • 143a4666b4 ios: Implement KvPrefs using NSUserDefaults Olof Hedman 2025-09-09 15:07:12 +02:00
  • e2900b63b5 ios: Add empty ios swift project Olof Hedman 2025-09-09 13:22:11 +02:00
  • 11d9831225 Merge remote-tracking branch 'origin/main' Fabian Norlin 2025-09-09 14:18:58 +02:00
  • 1132ce1af9 shared(build): enable Kotlin Compose compiler plugin for CMP (Kotlin 2.x) Fabian Norlin 2025-09-09 14:14:52 +02:00
  • bfcdb636dc buildfix(shared): fix ksp version mismatch, add xcframework gradle task Olof Hedman 2025-09-09 13:17:25 +02:00
  • 1cf2857094 app: switch MainActivity to no-arg SettingsStore setters (remove Context at call sites) Fabian Norlin 2025-09-09 01:05:49 +02:00
  • 0003e74011 app(service): use shared util via FQN — replace import of distanceMeters in LocationService Fabian Norlin 2025-09-08 23:41:38 +02:00
  • 36c38bfd5f app: switch MainActivity to SettingsStore no-arg getters (remove Context at call sites) Fabian Norlin 2025-09-08 23:19:20 +02:00
  • eb9c8beb4a app: switch MapDialog to KMP SettingsStore no-arg API (remove Context at call sites) Fabian Norlin 2025-09-08 22:42:37 +02:00
  • 871a10c557 refactor(app): switch to shared FoundStore and import constants Fabian Norlin 2025-09-08 21:03:00 +02:00
  • 500d57dbd5 refactor(shared): add FoundStore expect/actual via KvPrefs and migrate legacy prefs Fabian Norlin 2025-09-08 21:02:20 +02:00
  • 9c3ab55456 chore(git): ignore KMP build outputs and Kotlin caches Fabian Norlin 2025-09-08 19:47:30 +02:00
  • c08e4f030c refactor(app): init KvPrefs in MainActivity and switch to shared SettingsStore Fabian Norlin 2025-09-08 18:55:17 +02:00
  • 3079153400 refactor(shared): move SettingsStore to KMP using KvPrefs and remove Android impl Fabian Norlin 2025-09-08 18:53:05 +02:00
  • 0c469b3572 feat(shared): add KvPrefs expect/actual with change listeners (Android SharedPreferences) Fabian Norlin 2025-09-08 18:51:31 +02:00
  • 8bcce89a08 Updated instructions Fabian Norlin 2025-09-07 23:57:47 +02:00
  • 5d348ac7cc refactor(shared): centralize distanceMeters util and remove local copies Fabian Norlin 2025-09-07 23:27:19 +02:00
  • f7c79ed420 docs(app): document DigitaltMuseum Android adapter (delegates to shared) Fabian Norlin 2025-09-07 20:39:16 +02:00
  • 09b5b0f9b6 revert(shared): remove temporary Compose deps to avoid iOS resolution errors Fabian Norlin 2025-09-07 20:28:12 +02:00
  • 63ca3a6fb3 docs(shared,app): document me.php path and app adapter (no logic changes) Fabian Norlin 2025-09-07 18:00:57 +02:00
  • b3f22aab73 refactor(app): use shared Me model and remove local MeResp docs(shared,app): document me.php path and app adapter (no logic changes) Fabian Norlin 2025-09-07 17:57:53 +02:00
  • ee4e7c2526 New ios instructions from chatgpt. Fabian Norlin 2025-09-07 12:33:16 +02:00
  • 61e06ce14d refactor(app): return NoteDetailShared from fetchNoteDetail and remove local NoteDetailDTO Fabian Norlin 2025-09-07 12:02:27 +02:00
  • 48bd7d0754 refactor(app): use shared NoteDetail model and remove local NoteDetailDTO; update cache and fetchNoteDetail Fabian Norlin 2025-09-07 11:50:16 +02:00
  • 56752ab1f4 feat(shared): add DM lookupByIdentifier/getDetailText and delegate Android DigitaltMuseum to shared Ktor client refactor(app): switch image stream to ByteArray and delegate get_image.php to shared client chore(app): remove OkHttp dependency after DM migration to shared docs(shared): add thorough comments to DigitaltMuseumShared (no logic changes) Fabian Norlin 2025-09-07 10:43:41 +02:00