Skip to content

fix(ui): keep bond-gated maker listings in the Order Chat sidebar - #150

Open
amuntri wants to merge 1 commit into
MostroP2P:mainfrom
amuntri:fix/order-chat-show-waiting-maker-bond
Open

fix(ui): keep bond-gated maker listings in the Order Chat sidebar#150
amuntri wants to merge 1 commit into
MostroP2P:mainfrom
amuntri:fix/order-chat-show-waiting-maker-bond

Conversation

@amuntri

@amuntri amuntri commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Problem

order_chat_list_item_from_db_order only admits maker rows whose local status is pending. But a maker order whose anti-abuse bond is unpaid is waiting-maker-bond on Mostro's side — and that is exactly what a session restore (#149) and Action::Orders (#145) write locally, because both report Mostro's authoritative status instead of the pending mostrix records at creation time.

Net effect, observed on the live instance (bonds enabled, PoW 6): after a faithful restore the bond-gated listings existed in SQLite but vanished from the Order Chat sidebar, so there was nothing to select and every Shift shortcut silently had no target.

Fix

Admit waiting-maker-bond alongside pending. Active, terminal and taker rows stay out, as before. Two new tests: the bond-gated row stays; active/terminal/taker rows don't.

cargo test --all-features → 483 passed. Clippy -D warnings and fmt clean.

Context

This is what makes #149 and #145 actually usable for bond-gated orders; without it the user cannot reach the restored row to pay the bond or cancel. Independent of both, so it can land on its own.

🤖 Generated with Claude Code

The sidebar projection only admitted maker rows whose local status is
`pending`. A maker order whose anti-abuse bond is still unpaid is
`waiting-maker-bond` on Mostro's side — and that is exactly what a session
restore (MostroP2P#149) and `Action::Orders` (MostroP2P#145) write locally, because both
report Mostro's authoritative status rather than the `pending` mostrix
records at creation time.

Result: after a faithful restore, bond-gated listings existed in SQLite
but vanished from the sidebar, so there was nothing to select and every
Shift shortcut silently had no target. Found while testing MostroP2P#149 against
the live instance (bonds enabled, PoW 6).

Admit `waiting-maker-bond` alongside `pending`; active, terminal and taker
rows stay out, as before.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 21 minutes.

View limit details

Limit details: You’ve used the included review currently available.

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1dabeb43-64a6-4053-b0a9-42ce71a00326

📥 Commits

Reviewing files that changed from the base of the PR and between 4875bb7 and 49960b1.

📒 Files selected for processing (1)
  • src/ui/helpers/order_chat_projection.rs

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.

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.

1 participant