Skip to content

Add frontend-only local decisions template - #13

Open
Mine77 wants to merge 1 commit into
avibe-bot:mainfrom
Mine77:feat/frontend-local-decisions
Open

Add frontend-only local decisions template#13
Mine77 wants to merge 1 commit into
avibe-bot:mainfrom
Mine77:feat/frontend-local-decisions

Conversation

@Mine77

@Mine77 Mine77 commented Jun 6, 2026

Copy link
Copy Markdown

Summary

  • Adds a reusable front-end-only local decisions template under examples/local-decisions.
  • Adds SDK helpers for browser-local decision persistence, update-by-id behavior, and stable JSON export.
  • Wires the new example into the root build and documents it in the README.

Closes #12

Screenshots

Desktop:

Local decisions desktop

Mobile:

Local decisions mobile

Tests

  • npm test
  • npm run check
  • npm run lint
  • npm run smoke (passes; prints the existing url.parse() deprecation warning before smoke runtime ok)
  • Browser QA on http://127.0.0.1:5187/:
    • page loads with 3 seeded local decisions
    • adding a Review speed decision updates the UI to 4 decisions
    • Copy JSON writes all 4 decisions to the clipboard
    • mobile reload still shows the added decision from local storage
    • no console warnings/errors observed

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.

支持纯前端模式:UI 模板、localStorage 决策保存与 JSON 复制

1 participant