Repository navigation
[CTX-0002] feat(app): Vite + vanilla TS registry viewer and Cloudflare Pages deploy - #3
Merged
Merged
Conversation
Contributor
Author
|
Review response — credential scoping (Medium) — fixed in c301668.
Evidence: Label: switched No merge; awaiting re-review. |
…eploy Rework app/ into a Vite + TypeScript project rendering the committed generated/registry.json through small custom elements (plugin-card, plugin-search, plugin-filters, plugin-detail, install-command) with no UI framework. The Vite config serves the registry in development and emits it beside index.html at build time; client routes keep the Cloudflare Pages SPA fallback in app/public/_redirects. Build the store with Bun workspaces (app/ is a workspace member, single bun.lock) and keep just check covering type-check and app-build. Update justfile recipes (app-dev, app-preview). Add deploy.yml: on push to main and workflow_dispatch, build app/ and deploy to the bitty-plugins Cloudflare Pages project (plugins.bitty.run) with pinned wrangler. Credentials resolve from the CLOUDFLARE_API_TOKEN secret with a variable fallback plus the CLOUDFLARE_ACCOUNT_ID variable; without them the deploy step is skipped with a clear notice and the workflow stays green. Record production URLs (bitty.run, plugins.bitty.run; domain registered 2026-09-14, Cloudflare verification pending) in README, AGENTS, TODO, the CHANGELOG, and the workflow comments; point the registry schema $id at the store domain. Refs: #2 CTX-0002
Xuepoo
force-pushed
the
ctx-0002/feat-vite-registry-viewer
branch
from
September 13, 2026 20:04
c301668 to
ad8480e
Compare
Contributor
Author
|
Rebased onto
Gates on the rebased head ( |
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.
Priority: P1 | Area: docs | Labels: feat, area:docs, P1 | Milestone: v0.1.0 | RFC: none | Task: CTX-0002
Closes #2
What & why
Owner direction (2026-09-14): replace the custom Bun-bundled
app/prototype with a Vite + TypeScript storefront (vanilla DOM / Web Components, no UI framework) and activate a Cloudflare Pages deploy path for the newly registeredplugins.bitty.rundomain.Changes
app/is now a Vite + TS project:index.html,vite.config.ts,package.json(dev/build/preview/type-check),tsconfig.json,src/{main,registry,search,router,pages}.ts, small custom elements (plugin-card,plugin-search,plugin-filters,plugin-detail,install-command), and split styles.vite.config.tsadds abitty-registryplugin that serves/registry.jsonin development and emitsgenerated/registry.jsonbesideindex.htmlat build time; no copy is committed underapp/.appis a workspace member (single rootbun.lock); rootbun-typesis now declared directly because isolated workspace linking no longer hoists it..markdownlint-cli2.jsoncignores**/node_modules/**.justfile:type-checkandapp-buildrun the app scripts; addedapp-devandapp-preview..github/workflows/deploy.yml: push tomain(app/registry-relevant paths) andworkflow_dispatch; builds with Bun; deploys via pinned wrangler to thebitty-pluginsPages project.CLOUDFLARE_API_TOKENcomes from the repository/organization secret with an organization-variable fallback,CLOUDFLARE_ACCOUNT_IDfrom the organization variable; without both, the deploy step is skipped fail-closed with a run-summary notice while the build still runs.README.md(Production URLs),AGENTS.md,TODO.md,CHANGELOG.md, and workflow comments: product websitehttps://bitty.run; plugin storehttps://plugins.bitty.run; domain registered 2026-09-14; Cloudflare verification may still be pending.registry/schema.json$idpoints at the store domain.robots.txt, sequential heading order, and a boot sequence that reveals the shell only when the registry is ready (eliminates layout shift).Evidence
REGISTRY_SKIP_NETWORK=1 just check— pass: prettier fmt-check; markdownlint 0 issues (14 files); root + apptsc --noEmit;bun test18 pass; registry validation 0 errors;generate-index --checkup to date; Vite build.just registry-validatewith network — 0 errors (repository URL existence checks reachable).just app-build— vite v8.3.0, 15 modules; outputdist/{index.html,assets/*,registry.json,_redirects,robots.txt,favicon.svg}./,/registry.json,/plugins/bitty-featured.activity,/sdkreturn 200; headless Chrome renders the plugin card, install command, and detail text.actionlint .github/workflows/*.yml— pass;act -n -W .github/workflows/deploy.yml workflow_dispatch— job succeeded (deploy step correctly not planned without credentials); the preflight script was simulated for both branches (provisioned=false+ skip notice;provisioned=true).gitleaks detect --source . --redact— no leaks found.Registry impact
generated/registry.jsonunchanged and verified idempotent (just registry-check)Testing
just checkpasses (fmt, lint, type-check, tests, registry, Vite build)actionlintpasses andact -ndry run succeedsChecklist
bitty-plugins-docsRisks
bitty-pluginsPages project, theplugins.bitty.runbinding, and secret propagation must be verified after provisioning; the domain is newly registered and verification may still be pending.app/unit-test suite (none exists yet).