Skip to content

feat: Edit Listing button for owners on book details - #98

Merged
DCT-Berinyuy merged 1 commit into
devfrom
feat/owner-edit-from-details
Oct 6, 2026
Merged

DCT-Berinyuy merged 1 commit into
devfrom
feat/owner-edit-from-details

Conversation

@DCT-Berinyuy

Copy link
Copy Markdown
Collaborator

Summary

When owners open their own book from Home, Discover or a shared link, the details screen now shows an Edit Listing button, the same edit option they have in Profile → My Books. Previously the owner's bottom bar was empty, because Boost is hidden in Play builds.

Closes #

Changes

  • New ListingOwnerBar widget, mirroring ListingBuyerBar. It shows Edit Listing, with Boost above it only when kDigitalPaymentsEnabled is on.
  • listing_details_screen.dart now uses that widget. Edit opens /sell with the listing, the same route My Books uses; after saving, the user lands on Home, as with My Books.
  • CHANGELOG entry under 1.6.3, which is not yet released.

Test plan

  • flutter analyze: 3 issues, all pre-existing (unchanged baseline)
  • flutter test --no-pub: 309 passed, including the new listing_owner_bar_test.dart, which covers edit taps, boost hidden when off, and boost plus edit when on
  • cargo fmt, cargo clippy, and cargo test pass: N/A, no Rust changes
  • New migrations are idempotent and tested: N/A, no migrations

Checklist

  • Targets dev, not main
  • No secrets, keys, or personal data in code, logs, or screenshots
  • User input is validated; new tables have RLS policies (N/A)
  • User-facing strings added to both EN and FR ARB files (reuses the existing editListing)
  • Docs updated if behavior changed

Screenshots

Not captured. Covered by widget tests.

Owners opening their own book (from Home, Discover or a link) now get an
Edit Listing button in the bottom bar, opening the same form as My Books.
Boost stays above it when digital payments are enabled.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
book-bridge Ready Ready Preview Oct 6, 2026 9:13pm UTC

@DCT-Berinyuy
DCT-Berinyuy merged commit 0f49453 into dev Oct 6, 2026
3 checks passed
@DCT-Berinyuy DCT-Berinyuy mentioned this pull request Oct 6, 2026

This branch was successfully deployed

1 active deployment
Preview — 59fb0e0f Deployed Oct 6, 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.

1 participant