Commit Graph

98 Commits

Author SHA1 Message Date
4e2d062329 KMP/UI: shared scrollbars, common “Nearby” open resolver, and map panel shell — wired into app
shared(ui): FoundList fills its space and adds a lightweight, material-free scrollbar thumb; expose optional LazyListState.
shared(ui): Harden FoundList scrollbar math (non-negative weights, safe totals) and use Color.takeOrElse for color fallback to avoid startup crash.
shared(ui): NearbyList fills its space and adds the same lightweight scrollbar; optional LazyListState support.

shared(nearby): Add resolveNearbyOpenAction for Nearby entries; map to FoundOpenAction (Klotter/Wiki/Fornsok/DM); fix import placement and remove unused import.
shared(ui): NearbyContent now fills its space (remove 420dp height cap) and delegates onEntryClick to resolveNearbyOpenAction.

shared(ui): Add material-free MapPanelShell to host title/main/footers above map and reuse across platforms.

app(ui): Use MapPanelShell for the main “Senaste” panel in KlottrApp — move header, FoundContent area, and login/logout row into the shared shell; main area is full-height.
app(ui): Use MapPanelShell inside NearbyDialog and set a sensible max height (~80% of screen) so content is clearly scrollable; keep AlertDialog title/buttons.
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
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
2025-09-14 00:03:48 +02:00
c98d2c77a8 KMP/UI: snabbare ”Närliggande” + fullhöjd ”Hittat”
shared(nearby): parallellisera fetchNearbyData med coroutineScope/async; bibehåll DI och fail-safe runCatching per källa.

shared(ui): FoundContent fyller tilldelad yta — ta bort height cap 420dp och använd fillMaxSize.

app(ui): gör Hittat-sektionen fullhöjd via omslutande Box(fillMaxSize) och lägg subtila scroll-hints (fade top/bottom) för tydlig skrollbarhet.
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
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
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
2025-09-13 15:53:54 +02:00
3e5e687642 app(nearby): use shared fetchNearbyData with injected fetchers; replace per-layer calls; keep toggles + logs 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)
2025-09-13 14:36:54 +02:00
88c041ef2b app(found): centralize klotter label enrichment in LaunchedEffect; remove per-row effect; use labelOverrides map
(And some space removed in comments).
2025-09-12 20:51:33 +02:00
85828bd755 shared(nearby): add markNewFinds helper;
app(ui): use shared markNewFinds in NearbyDialog (cleaner render path)
2025-09-12 19:55:07 +02:00
179360852b shared(nearby): add isClickable rule for Nearby; centralize per-layer clickability 2025-09-12 19:45:07 +02:00
5e5aa2def3 shared(ui): add material-free NearbyList composable; reuse NearbyEntryRow + subtitleFor; no material deps 2025-09-12 19:36:08 +02:00
fab3c2c506 shared(nearby); app(ui): add shared subtitleFor() and use it in NearbyDialog (dark-mode safe) 2025-09-12 19:00:35 +02:00
bd5a6956db shared(util): add LAYER_FORNSOK to FoundStore (KMP); use it in nearby builder 2025-09-12 17:51:37 +02:00
584510c894 shared(ui,nearby): add buildNearbyEntries + NearbyEntryShared; make SharedInfoCard & NearbyEntryRow accept TextStyle (dark-mode safe) 2025-09-12 17:19:16 +02:00
a315eb6f07 shared(ui): make SharedInfoCard accept TextStyle for dark mode; keep foundation-only (no material deps) 2025-09-12 15:35:05 +02:00
Olof Hedman
03a547f896 ios(sign-in): add Google SignIn for ios app
Add KMP bridges to synch login state
Use keychain for storing login state on ios
Setup interop beween KMP and ios for sign in
2025-09-10 16:55:41 +02:00
Olof Hedman
e76c9129a7 shared(build): Rename XCFramework name to match module name
Silence warning "Framework renaming is not supported yet"
2025-09-10 13:45:23 +02:00
Olof Hedman
19bf1258c0 refactor(shared): Move FoundStore to commonMain in shared library
FoundStore no longer ensure migration (which is unecessary since KvPrefs use SharedPreferences anyhow)
Had to rename Geo.kt in shared to SharedGeo.kt because it collided with Geo.kt in app for some reason
2025-09-09 15:10:41 +02:00
Olof Hedman
143a4666b4 ios: Implement KvPrefs using NSUserDefaults 2025-09-09 15:10:41 +02:00
11d9831225 Merge remote-tracking branch 'origin/main' 2025-09-09 14:18:58 +02:00
1132ce1af9 shared(build): enable Kotlin Compose compiler plugin for CMP (Kotlin 2.x) 2025-09-09 14:14:52 +02:00
Olof Hedman
bfcdb636dc buildfix(shared): fix ksp version mismatch, add xcframework gradle task 2025-09-09 13:17:25 +02:00
500d57dbd5 refactor(shared): add FoundStore expect/actual via KvPrefs and migrate legacy prefs 2025-09-08 21:02:20 +02:00
3079153400 refactor(shared): move SettingsStore to KMP using KvPrefs and remove Android impl 2025-09-08 18:53:05 +02:00
0c469b3572 feat(shared): add KvPrefs expect/actual with change listeners (Android SharedPreferences) 2025-09-08 18:51:31 +02:00
5d348ac7cc refactor(shared): centralize distanceMeters util and remove local copies 2025-09-07 23:27:19 +02:00
09b5b0f9b6 revert(shared): remove temporary Compose deps to avoid iOS resolution errors 2025-09-07 20:28:12 +02:00
63ca3a6fb3 docs(shared,app): document me.php path and app adapter (no logic changes) 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)
2025-09-07 17:57:53 +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)
2025-09-07 10:43:41 +02:00
ec4d3d2746 feat(shared): add KMP get_image.php (form stream) and delegate Android fetchImageStreamPost 2025-09-06 19:48:36 +02:00
1bfdc3f037 feat(shared): add KMP upload_image.php (multipart) and delegate Android uploads 2025-09-06 19:40:49 +02:00
3c432cde2f feat(shared): add KMP delete_note.php and delegate Android deleteNote 2025-09-06 19:29:46 +02:00
d30b3a84c2 feat(shared): add KMP username_check/set and delegate Android username APIs 2025-09-06 19:25:06 +02:00
799e562f31 feat(shared): add KMP me.php client and delegate Android fetchMe 2025-09-06 19:16:20 +02:00
477b1cb022 feat(shared): add KMP create.php (text & doc) and delegate Android createNote* 2025-09-06 16:48:30 +02:00
b3dcb91922 feat(shared): add KMP get_note.php client and delegate Android fetchNoteDetail 2025-09-06 16:32:17 +02:00
54b3c88af3 feat(shared): add KMP nearby.php client and delegate Android fetchNearby 2025-09-06 16:19:13 +02:00
f2f60d7f16 refactor(app): delegate Fornsok.getNearby to shared KMP client 2025-09-06 15:07:20 +02:00
6222aa136e feat(shared): add KMP DigitaltMuseum client and delegate Android getNearby 2025-09-06 14:31:06 +02:00
cc0060d044 feat(shared): add expect/actual Ktor engine and Wikipedia client; fix Ktor import 2025-09-06 14:07:36 +02:00
6363cbbc3c refactor(shared): move common API models & username helpers to commonMain and restore comments; fix type inference in MainActivity 2025-09-05 20:47:57 +02:00
43daadc3d4 refactor(shared): move WikipediaPage/Detail, DigitaltMuseumItem, FornsokItem to commonMain; remove duplicates in :app 2025-09-04 23:32:37 +02:00
dffa3f805c refactor(shared): move FoundEntry to commonMain and remove duplicate in :app 2025-09-04 17:56:45 +02:00
0aa0bdcec3 Första stegen mot multiplattform gjorda. Skapat shared. 2025-09-03 19:30:48 +02:00
2977d3c922 Initial commit. 2025-09-03 18:16:07 +02:00