Olof Hedman
5696e1f950
Merge branch 'main' into ios-google-signin
2025-09-20 16:02:19 +02:00
8580ff198c
Remove unused declarations; fix KMP expect/actual and SettingsStore duplicates
...
- Safe-delete unused declarations across app/ and shared/
- Optimize imports
- KMP: align expect/actual for formatRelativeOrTime(ms: Long) and update callers
- SettingsStore: remove duplicate wrapper functions causing overloads
2025-09-19 14:40:54 +02:00
f73e11078b
Share open models: move OpenKlotter/OpenWiki/OpenFornsok to :shared and update Android imports
2025-09-19 13:27:19 +02:00
eb23694091
Detail access via shared rule: integrate decideDetailAccess in KlotterDialog and fix blockedText nullability
2025-09-18 18:48:13 +02:00
Olof Hedman
ba93d0ad9d
Use kotlin platform independent time instead of jvm System
2025-09-16 13:38:36 +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
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.
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
...
- shared: NearbyContent replaces onWikiClick/onDmClick/onFornsokClick/onKlotterClick
with a single onOpenAction (material-free; keeps TextStyle injection).
- shared: route clicks through resolveNearbyOpenAction(e, dm, forn) and emit FoundOpenAction.
- app: NearbyDialog updated to pass onOpenAction and map FoundOpenAction to
openKlotter/openWiki/openFornsok/openDm.
- app/shared: remove obsolete per-layer callback wiring; clean up unused params/imports.
- No behavioral change; Android stays green.
2025-09-15 22:10:43 +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
2025-09-14 22:47:52 +02:00
4c87ef9490
shared(nearby): parallelize fetchNearbyData with structured concurrency (async) while keeping DI and API unchanged
2025-09-14 22:08: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
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