Skip to content

feat: optional link/URL on bounties; make coupon URL optional#32

Merged
ralyodio merged 1 commit into
masterfrom
feat/post-url
Jun 17, 2026
Merged

feat: optional link/URL on bounties; make coupon URL optional#32
ralyodio merged 1 commit into
masterfrom
feat/post-url

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Adds an optional link/URL to bounty posts, and makes the coupon URL optional.

Bounties

  • New bounties.url column (migration + addColumn).
  • New-bounty form gains an optional Link field.
  • POST /api/bounties accepts and stores url.
  • Detail page renders the link (external, rel=noopener) when present.

Coupons

The coupon product URL was required (the AI scrape-first flow). Per request, it's now optional:

  • Submit form: link is no longer required; added an "enter details manually" path that reveals the editable details section without scraping.
  • POST /api/coupons no longer 400s when url is missing.
  • Defensive addColumn for coupons.url (previously only in CREATE TABLE; prod already had it).

Verification

  • Migration applied to prod — confirmed bounties.url and coupons.url present.
  • tsc clean; next build passes (with SESSION_SECRET unset).

🤖 Generated with Claude Code

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>
@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio ralyodio merged commit 797f994 into master Jun 17, 2026
5 checks passed
@ralyodio ralyodio deleted the feat/post-url branch June 17, 2026 03:04
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