Add admin block/unblock listing controls to view listing page#317
Open
Add admin block/unblock listing controls to view listing page#317
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Admins can now block and unblock listings from the listing detail page. Non-admin users cannot view blocked listings.
Backend
block()mirrors existingunblock()pattern, uses domain model'ssetBlocked(true)blockListingmutation alongside existingunblockListingFrontend
listing.state === 'Blocked', visible only whencurrentUser.userIsAdminNotes
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
storybook.js.org/opt/hostedtoolcache/node/22.21.1/x64/bin/node node /home/REDACTED/work/sharethrift/sharethrift/apps/ui-sharethrift/node_modules/.bin/../storybook/bin/index.cjs dev -p 6006 arethrift/apps/ui-sharethrift/src/components/layouts/home/components/listing-page.container.grapsh hit-r-kumar@users.noreply.github.com> odules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/sh ayouts/home/components/view-listing/block-listing-modal.tsx apps/ui-sharethrift/src/components/(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Summary by Sourcery
Add admin listing block/unblock capabilities and UI to the view listing page, wire them through GraphQL and application services, and adjust tests and tooling to support the new behavior.
New Features:
Bug Fixes:
Enhancements:
Build:
Tests: