Repository navigation
refactor(app): separate views, viewmodels, and persistence - #32
Merged
Merged
Conversation
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.
Ceramic's window host previously owned loading, authorization, publishing and persistence alongside native widget state. This separates those responsibilities so business flows run against a serialized dispatcher without creating a MyGo window, while columns retain identity and reading state.
Closes #26.
Changes
Three independently buildable commits follow the issue's batches:
internal/draftstoreandinternal/preferences, preserving paths and JSON fields; separate raw attachments from bitmaps; add atomic preference saves, compatibility tests, architecture checks and layer documentation.The host drops callbacks after window closure. Closing columns cancels their requests; logout cancels session tasks and keeps draft-save failure guards. Late polls cannot restore deleted posts or double-count duplicate notifications. No framework upgrade or visual redesign.
Validation
macOS CI passed, including the complete
go test -race ./...suite and cross-platform vet checks.git diff --check, source formatting andgo vet ./...pass.CERAMIC_SCREENSHOTS=1 go test -run TestNative ./...and./scripts/build.shpass on Windows; installer generated.250d484: 239 byte-identical; four differ in draft timestamps or intermediate hover/blink frames. Minimum-size, light/dark and breakpoint coverage retained.go test ./...has the same four failures as unmodified250d484:TestDraftImageRoundTripAndSaveFailure,TestImageDiskCacheBudget,TestLoginTimelineAndLogoutassert Unix file modes;TestSidebarAccountAndWindowControlsasserts platform-specific layout. No new failures.-raceis blocked by the missing CGo C compiler. The macOS CI run linked above passed the full race suite and cross-platform vet checks.gofmt -l .additionally reports pre-existing ignoredbuild/qa/_releasecheck/main.go; repository source is formatted.PR only; do not merge automatically.