feat: optional link/URL on bounties; make coupon URL optional#32
Merged
Conversation
Bounties: - Add optional bounties.url column (migration + addColumn). - New-bounty form has an optional "Link" field; POST stores it; detail page renders it as an external link when present. Coupons (per request — URL was required via the scrape-first flow): - url is now optional. Submit form drops the required product link and adds an "enter details manually" path (reveals the editable details without scraping). POST no longer 400s when url is absent. - Defensive addColumn for coupons.url (was only in CREATE TABLE). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
vu1nz Security Review0 finding(s) in PR #? No security issues found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Adds an optional link/URL to bounty posts, and makes the coupon URL optional.
Bounties
bounties.urlcolumn (migration +addColumn).POST /api/bountiesaccepts and storesurl.rel=noopener) when present.Coupons
The coupon product URL was required (the AI scrape-first flow). Per request, it's now optional:
POST /api/couponsno longer 400s whenurlis missing.addColumnforcoupons.url(previously only in CREATE TABLE; prod already had it).Verification
bounties.urlandcoupons.urlpresent.tscclean;next buildpasses (withSESSION_SECRETunset).🤖 Generated with Claude Code