Repository navigation
refactor: harden data access, caching, and CI coverage - #25
Merged
Merged
Conversation
Add push and pull-request quality gates, repair the existing lint baseline, and update dependencies to audited versions.
Pin the Supabase CLI, add isolated local database configuration and scripts, and verify the complete migration history in CI.
Generate the schema contract from the reset database, type every Supabase client, and fail CI when committed database types drift from migrations.
Move timer, units, friends, groups, chat, and notification data access into focused client modules while preserving the existing public API.
Replace the social snapshot fan-out with scoped aggregate RPCs, bound large lists with pagination, and expire or invalidate client caches after writes and realtime changes.
Scope persisted snapshots to the signed-in user, deduplicate concurrent reads, and route one app-level realtime stream to the active dashboard so hidden views do not fetch or subscribe.
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.
What changed
This PR strengthens MAC Study’s database, data-access and testing foundations while preserving existing application behaviour.
app-data.tsmodule into timer, units, groups, friends, chat and notifications modules.Validation