Closed emidombek closed 8 months ago
Created Logic to approve and reject artwork via Django admin panel.
Approval logic for approve action is finished and tested, reject logic needs to be refactored.
Item details page has been implemented. Set up background task to run via django q this background task should update the auction status to closed in the auctions table once the auction duration has elapsed. This should prevent the item from being displayed in the browse art section of the website (the view of art list is set up to show only approved and actively listed artworks).
A pending artwork page has been created that shows sellers the status of their submitted artwork.
Notifications have been added and tested via test cases for artwork approval/denial.
User Story
As an admin, I want to approve or reject artworks listed for auction/sale. So that I curate the art that my gallery sells.
Acceptance Criteria:
As an admin, I have a dedicated admin dashboard accessible when logged in.
Within the admin dashboard, there is a section labeled "Artwork Listings" or "Pending Listings."
The "Artwork Listings" section displays a list of artworks that have been submitted by sellers for auction or sale.
Each artwork entry includes the artwork title, artist name, seller's information, type (auction or fixed price), and images.
I can click on an artwork entry to view more detailed information about the listing.
The detailed view includes the artwork description, additional images, listing type, starting bid, and reserve price (if applicable).
I have the ability to approve or reject the artwork listing directly from the detailed view.
If I approve the listing, the artwork becomes visible to buyers on the website.
If I reject the listing, the artwork is not published, and the seller receives a notification explaining the reason for rejection.
I can select a reason for rejection from predefined options (e.g., inappropriate content, incorrect information).
After making a decision (approval or rejection), I am prompted to confirm the action before it's finalized.
I have the option to leave comments or notes for the seller regarding the approval or rejection decision.
Rejected artworks are automatically moved to a separate section labeled "Rejected Listings" for reference.
I receive an email notification when a new artwork is submitted for review by a seller.
The email notification includes a summary of the artwork details and a link to the admin dashboard for review.
Tasks