feat: copy a shopping list as a request for rohlik.cz #3

Merged
tomas merged 1 commit from feat/rohlik-shopping-text into master 2026-11-08 18:25:41 +00:00
Owner

Summary

Rohlik.cz has no public API to fill a customer's cart, but its AI assistant (and its MCP server for other assistants) can pick products and fill the cart from a plain request.

A Kopírovat pro Rohlík button on a shopping list copies the items still to buy, with their amounts, as such a request:

Přidej mi prosím do košíku na Rohlik.cz tyto položky:
- Mléko polotučné, 2 l
- Rohlíky, 10 ks
  • Checked items (already in the cart) are left out; the button shows only when there is something to buy.
  • When the browser refuses the clipboard, the text appears selected in a field to copy by hand.
  • Frontend only: no backend or API change.

Testing

  • make ci passed: backend, frontend (lint, svelte-check, Vitest, Playwright, build) and commits.
  • New unit tests for the text (src/lib/rohlik.spec.ts) and e2e tests for copying and for the refused-clipboard fallback.
  • Checked headless screenshots at 390 px and 820 px.
## Summary Rohlik.cz has no public API to fill a customer's cart, but its AI assistant (and its MCP server for other assistants) can pick products and fill the cart from a plain request. A **Kopírovat pro Rohlík** button on a shopping list copies the items still to buy, with their amounts, as such a request: ``` Přidej mi prosím do košíku na Rohlik.cz tyto položky: - Mléko polotučné, 2 l - Rohlíky, 10 ks ``` - Checked items (already in the cart) are left out; the button shows only when there is something to buy. - When the browser refuses the clipboard, the text appears selected in a field to copy by hand. - Frontend only: no backend or API change. ## Testing - `make ci` passed: backend, frontend (lint, svelte-check, Vitest, Playwright, build) and commits. - New unit tests for the text (`src/lib/rohlik.spec.ts`) and e2e tests for copying and for the refused-clipboard fallback. - Checked headless screenshots at 390 px and 820 px.
feat: copy a shopping list as a request for rohlik.cz
Some checks failed
CI / backend (pull_request) Successful in 1m43s
CI / commits (pull_request) Successful in 51s
CI / backend (push) Successful in 1m40s
CI / frontend (pull_request) Successful in 3m29s
CI / release (pull_request) Has been skipped
CI / images (pull_request) Has been skipped
CI / commits (push) Successful in 45s
CI / frontend (push) Successful in 3m5s
CI / release (push) Failing after 46s
CI / images (push) Has been skipped
5332f20fac
Rohlik.cz has no public API to fill a customer's cart, but its AI
assistant and its MCP server for other assistants can pick products and
fill the cart from a plain request. A "Kopírovat pro Rohlík" button on a
shopping list copies the items still to buy, with their amounts, as such
a request. When the browser refuses the clipboard, the text is shown
selected in a field to copy by hand.
tomas merged commit 5332f20fac into master 2026-11-08 18:25:41 +00:00
tomas deleted branch feat/rohlik-shopping-text 2026-11-08 18:25:41 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tomas/household!3
No description provided.