Repository navigation
feat: flight recorder 3/5 — in-viewer session history - #59
Open
mibrahimdev wants to merge 5 commits into
Open
mibrahimdev wants to merge 5 commits into
mibrahimdev wants to merge 5 commits into
Conversation
…add SessionSummary KDoc, fix api-parity doc
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds in-viewer session history to Sharingan (Issue #51, slice 3/5 of the flight-recorder epic #27). The user can now open Sharingan, tap a session selector pill, and browse previous process lifetimes in the existing Home/Detail UI.
Architecture
Key decisions
Sharingan.clear()purges only the Current Session's mirrored rows; Past Sessions intact:sharingan-dbpublic API additions are implementation-scoped (consumed by:sharinganviaimplementation(project(":sharingan-db")), no:sharingan-noopparity tax)startPlatformPersistence()expect/actual (Android ContentProvider unchanged)Changes
GLOSSARY.mdCONTEXT.md;SessionreplacesRun;Flight Recorderdefinition updated:sharingan-dbSessionSummary,selectPastSessions,deleteEventsForSession,currentSessionId,pastSessions(),sessionEvents():sharinganinternalEventDto.toEvent()decoder,Persistence.pastSessions()/sessionEvents():sharinganUISessionPickerSheet, past-session rendering,"↩ Live"return pillstartPlatformPersistence()expect/actual,-lsqlite3linker optsEvidence
Sharingan.clear()deleted all events across all sessions; no way to view past runs.Sharingan.clear()deletes only current-session rows; past sessions visible in picker.Tests passing
:sharingan-db:testDebugUnitTest— session-list query newest-first, correct counts, excludes current + 0-event, clear scope:sharingan:testDebugUnitTest— DTO round-trip equality for all 3 protocols:sharingan-db:iosSimulatorArm64Test/:sharingan:iosSimulatorArm64Test— iOS native testsktlintCheck— no multi-line comments, style compliancecheckApiParity—:sharingan↔:sharingan-noopparity greenapiCheck— BCV dumps match sourceCommits
b0e4cb5docs: align glossary with session history00f14aafeat(db): expose current and past session historye36601efeat(ui): browse past sessions in Sharingan724ce39fix(ios): initialize session persistence2bad063review: address architect feedbackMerge Danger
Door: Two-way (additive feature, no breaking changes to public API)
Blast Radius: Debug-only UI + internal persistence layer.
:sharingan-noopparity verified. No consumer-facing breaking changes.Closes #51
Part of #27