Skip to content

feat(#96): remove legacy saved-data persistence bypasses - #111

Merged
paccloud merged 1 commit into
mainfrom
feat/remove-legacy-bypasses-96
Aug 14, 2026
Merged

paccloud merged 1 commit into
mainfrom
feat/remove-legacy-bypasses-96

Conversation

@paccloud

Copy link
Copy Markdown
Owner

Summary

Removes legacy persistence code that was superseded by the identity-scoped LocalRepository (PR #97) and the lifecycle system (PR #109):

  • Deletes syncEngine.js and its test — replaced by SyncCoordinator + LocalRepository
  • Strips localStore.js down to getCustomSpecies/setCustomSpecies only — all legacy store-factory code gone
  • Deletes lifecycleFlag.js and its test — flag logic absorbed into DataContext directly
  • Deletes localStore.test.js (now only covers the two remaining functions)

No behavioral change. This is pure dead-code removal after the lifecycle rollout in #109.

Closes #96

Delete orphaned syncEngine.js (replaced by syncCoordinator.js) and its
tests. Strip all legacy sync functions from localStore.js — only
getCustomSpecies/setCustomSpecies remain for the device-local species
path. Remove the lifecycleFlag and its guard branches in DataContext.jsx;
the identity-scoped lifecycle is now the single supported read/write path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fish-cost-calculator Ready Ready Preview Aug 14, 2026 7:49am

@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@paccloud, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 35 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1390ddbe-801b-4c1b-8add-dc6d1d47b5ae

📥 Commits

Reviewing files that changed from the base of the PR and between b907690 and 417ae9f.

📒 Files selected for processing (8)
  • app/src/context/DataContext.jsx
  • app/src/lib/apiClient.js
  • app/src/lib/lifecycleFlag.js
  • app/src/lib/lifecycleFlag.test.js
  • app/src/lib/localStore.js
  • app/src/lib/localStore.test.js
  • app/src/lib/syncEngine.js
  • app/src/lib/syncEngine.test.js

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@paccloud
paccloud merged commit d6ee642 into main Aug 14, 2026
6 checks passed
@paccloud
paccloud deleted the feat/remove-legacy-bypasses-96 branch August 14, 2026 07:50

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 417ae9f9ef

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 85 to 86
useEffect(() => {
if (!lifecycleEnabledRef.current) {
loadedScopeRef.current = scope;
setDataLoaded(true);
return;
}
let cancelled = false;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep honoring the lifecycle rollback flag

When VITE_LIFECYCLE_ENABLED=false or localStorage.lifecycle_override is set to false, this effect now unconditionally loads the identity-scoped repository, and triggerSync likewise runs the coordinator. Those settings were introduced specifically as deployment-time and per-browser emergency rollback controls, so deleting their checks makes an unhealthy lifecycle rollout impossible to disable and contradicts the claimed no-behavior-change cleanup. Preserve the gating until the rollback mechanism is deliberately retired.

Useful? React with 👍 / 👎.

This branch was successfully deployed

1 active deployment
Preview — 417ae9f9 Deployed Aug 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove legacy saved-data persistence bypasses

1 participant