Repository navigation
Add one-time product price-drop alerts to Bell - #50
Open
georgeatparallel wants to merge 1 commit into
Open
georgeatparallel wants to merge 1 commit into
georgeatparallel wants to merge 1 commit into
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
georgeatparallel
force-pushed
the
george/bell-shopping
branch
5 times, most recently
from
November 24, 2026 01:12
5eaa18d to
3678dfb
Compare
georgeatparallel
marked this pull request as ready for review
November 24, 2026 01:16
|
|
||
| export async function rememberAction(db: Queryable, inbound: Inbound, name: "enroll" | "stop", request: unknown) { | ||
| await db.query(`INSERT INTO bell_price_actions(issuer,owner_id,chat,line,message_id,action,request) | ||
| VALUES ($1,$2,$3,$4,$5,$6,$7) ON CONFLICT DO NOTHING`, [...actionKey(inbound), name, request]); |
Collaborator
There was a problem hiding this comment.
right now, “stop both watches” stops the first watch, then returns that same result for the second call. the second watch stays active and can still send alerts.
perhaps we can add an operation key to bell_price_actions? smt like:
- for stop, use the target watch ID.
- for enroll, use a stable hash of the normalized watch request.
we could then include that key in the primary key plus all action inserts, lookups, and outcome updates (while keeping the existing owner/chat/message fields so retries of the same operation still reuse the saved result)
Use Parallel Shopping Search to find listings for named products. Verify merchant offers and send one Linq alert when a watched listing meets the target. Update Next.js to 16.4.6 for the production build.
georgeatparallel
force-pushed
the
george/bell-shopping
branch
from
November 25, 2026 02:06
3678dfb to
81f9851
Compare
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.
What shoppers can do
Text Bell something like “Let me know if the Sony WH-1000XM5 drops below £250,” or send a product link and a target price. If Bell can’t verify the exact model from the name, it asks for a merchant link. Once a watch is active, Bell schedules hourly checks for up to 30 days. Checks and notifications can be delayed when the queue is busy. When an in-stock offer first meets the target, Bell texts the observed item price and a direct merchant link. The watch then ends.
If an in-stock offer already meets the target, Bell shares it in the current conversation. Shoppers can list their watches or stop several in one text.
How it works
How to try it
Apply migrations 007 and 008, configure the scheduler and an allowlisted Linq test number, and set
BELL_PRICE_WATCHES_ENABLED=true. SetPARALLEL_API_KEYto try product-name search. The web demo’s “Text Bell” link opens the texting flow for authenticated operators. The feature is off by default. Setup instructionsVerification
pnpm checkpassed locally with PostgreSQL and Chrome. 600 tests passed and 7 were skipped. GitHub build