Skip to content

Draft conflict detection, rate caching/alerts, collaborator count badge - #712

Open
knytcomics-ui wants to merge 1 commit into
Stellar-split:mainfrom
knytcomics-ui:feature/684-683-682-673-hooks-and-collab-fixes
Open

Draft conflict detection, rate caching/alerts, collaborator count badge#712
knytcomics-ui wants to merge 1 commit into
Stellar-split:mainfrom
knytcomics-ui:feature/684-683-682-673-hooks-and-collab-fixes

Conversation

@knytcomics-ui

Copy link
Copy Markdown

Summary

  • useOfflineDraftAutosave: checks the server draft's updatedAt on reconnect before syncing and calls a new onConflict callback instead of silently overwriting a newer server version.
  • useXlmUsdcRate: adds an alertThreshold/onAlert option that fires when the rate moves more than the threshold percentage from the rate at hook initialization (at most once per polling interval).
  • useFiatRate: adds a configurable ttl option (default 60s) and returns isStale when the cached rate has exceeded it.
  • CollaborationCursors: adds an "N online" badge in the top-right corner, hidden when no collaborators are present.

Validation performed

  • Manual code review of all changed files (line-by-line trace of each acceptance criterion).
  • Typecheck/lint/test could not be run in this environment — npm ci fails on a pre-existing broken dependency in package.json (@typescript-eslint/plugin@^6.21.0, unrelated to this change), so node_modules isn't installed here.

Closes #684
Closes #683
Closes #682
Closes #673

- useOfflineDraftAutosave: check server updatedAt on reconnect and call
  onConflict instead of silently overwriting a newer server draft
- useXlmUsdcRate: add alertThreshold/onAlert to notify on large rate moves
- useFiatRate: add configurable ttl and isStale to avoid using overly
  stale cached rates
- CollaborationCursors: show an "N online" badge in the top-right corner

Closes: Stellar-split#684
Closes: Stellar-split#683
Closes: Stellar-split#682
Closes: Stellar-split#673
@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the kingsman-99's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@knytcomics-ui Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant