Skip to content

Commit 04a1641

Browse files
dongzhang84claude
andcommitted
docs: update CHANGELOG and CLAUDE.md for v1.2
- CHANGELOG: v1.2.0 entry covering Clear History, subreddit prompt fix, and silent 404 skip - CLAUDE.md: added DELETE /api/opportunities route, updated SettingsClient description, updated keyword-generator note Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c8fd5e6 commit 04a1641

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77
---
88

9+
## [1.2.0] — 2026-03-25
10+
11+
### Added
12+
- **Clear History** button in Settings (Danger Zone card) — shows an inline confirmation dialog before deleting all opportunities; displays "History cleared. Click Scan Now to find new opportunities." on success
13+
- `DELETE /api/opportunities` — deletes all Opportunity records for the current user (session auth); returns `{ success: true, deleted: N }`
14+
15+
### Changed
16+
- **Subreddit generation prompt** updated to target end-user communities instead of defaulting to generic founder/indie hacker subreddits; niche-specific subreddits are now preferred (e.g. `r/shopify` over `r/entrepreneur`); founder communities (`r/entrepreneur`, `r/startups`, `r/sideproject`, `r/indiehackers`) are only included when the product explicitly targets founders or developers
17+
- **Reddit 404s are now silent**`fetchSubredditPosts` no longer logs an error for nonexistent subreddits (HTTP 404); other non-2xx errors (403, 429, 5xx) still log as before
18+
19+
---
20+
921
## [1.1.0] — 2026-03-24
1022

1123
### Added

CLAUDE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ app/
136136
onboarding/route.ts POST — save-and-scan step: generates keywords, saves profile, triggers background refresh
137137
settings/route.ts PATCH — update profile settings
138138
feedback/route.ts POST — record opportunity relevance feedback
139+
opportunities/route.ts DELETE — delete all opportunities for the current user
139140
opportunities/[id]/reply/route.ts POST — mark opportunity as replied
140141
opportunities/refresh/route.ts POST — on-demand scan for the logged-in user (session auth)
141142
opportunities/count/route.ts GET — returns opportunity count for polling
@@ -145,7 +146,7 @@ components/
145146
OpportunityCard.tsx Individual opportunity with action buttons
146147
ReplyModal.tsx Shadcn Dialog with suggested reply variations
147148
BuyModal.tsx DISABLED stub — renders null (Stripe disabled)
148-
SettingsClient.tsx Client: all settings forms + Scan Now button
149+
SettingsClient.tsx Client: all settings forms + Scan Now + Clear History buttons
149150
StatsBar.tsx Opportunities / replies / skipped counters
150151
Header.tsx Top nav with email, settings link, logout
151152
@@ -155,7 +156,7 @@ lib/
155156
supabase/client.ts createBrowserSupabaseClient() for Client Components
156157
supabase/admin.ts Admin client (service role key)
157158
scorer.ts OpenAI scoring — relevance 0–100, intent level, replies
158-
keyword-generator.ts OpenAI keyword + subreddit generation from product desc (no targetCustomer)
159+
keyword-generator.ts OpenAI keyword + subreddit generation from product desc; subreddits target end-user communities, not founder/dev communities
159160
refresh-opportunities.ts Shared fetch/score/save pipeline for a single user
160161
reddit.ts Reddit public .json API fetcher
161162
hn.ts HN Algolia API fetcher

0 commit comments

Comments
 (0)