Skip to content

feat: add interactive binding cards to serve landing page#52

Draft
adnrivera wants to merge 1 commit into
facebook:mainfrom
adnrivera:interactive-cards
Draft

feat: add interactive binding cards to serve landing page#52
adnrivera wants to merge 1 commit into
facebook:mainfrom
adnrivera:interactive-cards

Conversation

@adnrivera

Copy link
Copy Markdown
Contributor

Render each binding as an interactive card on the serve landing page. A card's title links through the server's /?cmd= redirect, and a JS-free GET form lets users type arguments: the command travels in a hidden cmd field and the visible field carries the user's args, which the server combines into cmd args (e.g. threads + zuck -> threads zuck).

Add a helper in server/mod.rs to combine the cmd and args query parameters, and pass the resolved display_url into BindingCard so links and form actions use the configured public URL.

Add integration tests covering the serve route, the cards feature, and the end-to-end arguments-form redirect.

Screenshot 2026-06-26 at 12 15 30 PM

Render each binding as an interactive card on the `serve` landing page.
A card's title links through the server's `/?cmd=` redirect, and a
JS-free GET form lets users type arguments: the command travels in a
hidden `cmd` field and the visible field carries the user's `args`, which
the server combines into `cmd args` (e.g. `threads` + `zuck` -> `threads
zuck`).

Add a helper in `server/mod.rs` to combine the `cmd` and `args` query
parameters, and pass the resolved `display_url` into `BindingCard` so
links and form actions use the configured public URL.

Add integration tests covering the serve route, the cards feature, and
the end-to-end arguments-form redirect.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 26, 2026
@adnrivera adnrivera marked this pull request as ready for review June 26, 2026 19:30
@adnrivera adnrivera marked this pull request as draft June 30, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant