Repository navigation
Closed
Labels
product / consoleConsole, UI and UX issues
Description
Goal
Move appwrite/vibes (Console v4 / TanStack) into apps/console inside appwrite/appwrite, and add smart CI so console jobs only run when console paths change (and PHP/server jobs skip pure console PRs).
Current footprint
Vibes today
- Repo: appwrite/vibes — README titles it "Appwrite Console v4". Bun + TanStack Start, Playwright e2e, Dockerfile multi-arch.
- Workflows: tests.yml (build/lint), e2e.yml (
paths-ignoreon**/*.mdandstatic/**), staging.yml / production.yml buildappwrite/newand bumpassets/<env>/consolein application-configuration (PROJECT: assets,APPLICATION: console). - Prod chart: assets/production/console — image
appwrite/new, hostnamesappwrite.io,www.appwrite.io,new.appwrite.io(europe-west3.yaml).
Appwrite monorepo today
- No
apps/directory yet. Layout isapp/,src/,packages/<name>/, etc. (rfc/monorepo.md covers Utopia packages only). - Name collision: packages/console is utopia-php CLI helpers (
utopia-php/console), not the web UI. Destination must beapps/console, neverpackages/console. - Self-hosted already consumes vibes image: docker-compose.yml
appwrite-console→appwrite/new:*-self-hosted. - Smart CI precedent:
.github/workflows/ci.ymlPackages / Changedjob usesgit diff --name-only … -- packages/(not dorny/paths-filter) to build a changed-package matrix. Vibes itself uses workflow-levelpaths-ignore.
Plan of action
- Decide absorb style — Prefer
git subtree add(orbin/monorepo-style absorb if extended for apps) fromappwrite/vibesintoapps/consoleso history is preserved. Alternative:git filter-repothen merge. Document the chosen command in the PR. (appwrite/appwrite) - Land the tree — Place vibes at
apps/console/(keep its package.json, Bun lockfile, Dockerfile, e2e, src). Do not fold intopackages/. Add a shortapps/README.mdstating apps vs packages. - Tooling paths — Update vibes-internal scripts, Docker build context, and any hardcoded repo paths. Keep image name
appwrite/new(and*-self-hostedtags) unless deliberately renaming. - Move workflows into appwrite — Relocate staging/production/e2e/tests (and connect-snippets QA workflows if still needed) under
.github/workflows/with clear names (console-staging.yml,console-e2e.yml, …). Point declarative deploy checkout at this repo; keep bumpingassets/<env>/console/default.yamlin application-configuration. - Smart CI (path filters) — Match existing monorepo patterns:
- Console workflows:
on.pull_request.paths/on.push.pathslimited toapps/console/**, console workflow files, and shared console secrets/scripts; keep vibes'paths-ignorefor markdown/static where useful. - Server CI (
ci.yml): add an earlychangesjob (samegit diffstyle as Packages / Changed, or dorny/paths-filter if you prefer actions-native) that sets outputsconsole/server. Gate heavy PHP/docker jobs withif: needs.changes.outputs.server == 'true'(always true onworkflow_dispatch/ release branches). Console-only PRs should not run the full image/Trivy/E2E server matrix. - Optional: a thin
consolejob matrix that runsbun test/ lint insideapps/consolewhen console paths change.
- Console workflows:
- Compose / docs — Ensure root docker-compose still runs
appwrite/new(build fromapps/consolein dev if desired). Update CONTRIBUTING / AGENTS with the apps layout. - Cut over vibes repo — After the first green main build + staging bump from appwrite/appwrite: archive appwrite/vibes or replace with a README redirect; disable its deploy workflows so tags are not double-bumped.
- Verify — Staging then production console bump from the monorepo; synthetics on appwrite.io/sign-in and authentication stay green (monitoring cloud-api / authentication).
Risks / open questions
- History size: vibes is a large frontend tree; subtree will enlarge appwrite clone times — confirm team OK with that vs shallow app checkout instructions.
- Secrets/vars: staging/production workflows need Docker Hub, declarative GitHub App, Sentry, Stripe, fingerprint keys, e2e secrets moved or duplicated onto
appwrite/appwrite. - Runner labels: vibes uses
gcrunner=…labels; confirm identical runners are available to appwrite/appwrite workflows. - packages/console confusion: reviewers and codegen must not treat
apps/consoleas a Utopia package (no split.yml entry). - Coordination with cloud#6318 (old console cleanup) — new console must stay up while legacy
/consoleredirect is removed.
Done when
-
apps/consoleexists on appwrite/appwrite main with vibes history (or agreed equivalent) - Console staging/production deploy workflows run from appwrite/appwrite and bump application-configuration
- Path-filtered CI: console-only PRs skip full server CI; server-only PRs skip console e2e/build
-
appwrite/newimages still ship; appwrite.io console synthetics green - appwrite/vibes archived or clearly redirected; no double deploys
Metadata
Metadata
Assignees
Labels
product / consoleConsole, UI and UX issues
Activity