Skip to content

feat: optimistic update loop for task Verify Quality button - #142

Merged
N-thnI merged 6 commits into
Vero-protocol:mainfrom
Meet-hybrid:feat/optimistic-task-vote
Jun 24, 2026
Merged

feat: optimistic update loop for task Verify Quality button#142
N-thnI merged 6 commits into
Vero-protocol:mainfrom
Meet-hybrid:feat/optimistic-task-vote

Conversation

@Meet-hybrid

Copy link
Copy Markdown
Contributor

Description
Implement an optimistic update loop in TaskCard.tsx so that clicking Verify Quality instantly reflects changes in the UI before Soroban consensus finality.

Problem
Currently, users must wait several seconds for chain indexing to see updates, leading to a laggy experience.

Solution

Shift task status indicators to a loading/pending state immediately on user confirmation.

Increment the visible vote count badge locally by +1 right away.

If the Soroban transaction fails, revert the local changes gracefully and show a toast notification.

Acceptance Criteria

UI responds instantly on vote cast.

Pending state clearly visible.

Errors handled with rollback + toast.

Verified via latency tests.

Closes #2

@N-thnI
N-thnI merged commit 2babe9f into Vero-protocol:main Jun 24, 2026
1 check passed
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.

2: [Feature] Build optimistic UI rendering updates for vote casting closures

2 participants