Skip to content

feat: move the console into apps/console with path-filtered CI - #14232

Merged
ChiragAgg5k merged 3575 commits into
mainfrom
chore/apps-console
Oct 8, 2026
Merged

ChiragAgg5k merged 3575 commits into
mainfrom
chore/apps-console

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Moves appwrite/vibes (Console v4 and appwrite.io, Bun + TanStack Start) into apps/console with its history, and makes CI run only the suites a change needs. Closes #14144.

Import

vibes is private and this repository is public, so its history was cleaned before it landed:

git clone --single-branch --branch main --no-tags https://github.com/appwrite/vibes.git vibes-filtered
cd vibes-filtered
git filter-repo --invert-paths --path socials/ --path public/videos/firewall-trailer.mp4
cd <appwrite>
git subtree add --prefix=apps/console <path>/vibes-filtered main
  • Only main is imported (3,417 commits after filtering); no PR refs, branches, or tags. vibes' 1.2.x tags would collide with server tags.
  • socials/ held internal competitor reports that vibes deleted and gitignored as non-public; they are dropped from history.
  • firewall-trailer.mp4 was a superseded 93 MB copy of the faststart trailer.
  • gitleaks over the filtered history reports only false positives: docs placeholders (a truncated example RSA key, sk_test_1234567890abcdef), a Stripe publishable test key, a public Discord guild ID, and constant names.

filter-repo is deterministic, so re-filtering a newer vibes main yields the same commits and the final sync before cutover is a git subtree pull.

Layout

  • apps/ holds standalone deployables, distinct from app/ (the PHP server) and packages/ (Utopia libraries). apps/console is not packages/console. See apps/README.md.
  • apps is excluded from the server's Docker build context and from Pint (the console ships PHP connect snippets that users copy).
  • vibes' workflows and CI scripts move to the root .github, since GitHub reads workflows only there. Scripts that located a sibling ../appwrite checkout now use the enclosing repository.

CI

A changes job (.github/scripts/changes.sh) diffs a run against its base and reports server and console:

Change Server CI (build, checks, image, E2E, benchmark) Console checks Console E2E
Only apps/console/** or console workflows skipped runs runs
Anything else runs skipped skipped
workflow_dispatch or a *.x release branch runs runs runs (PRs only)

Gating is per job rather than workflow paths:, so required checks resolve as skipped instead of pending. Release branches always run everything, so the nightly channel still finds fully green commits. Console E2E needs repository secrets and runs on same-repository pull requests only; fork PRs still get console checks.

Deploys

Workflow Trigger Result
console-staging.yml push to main touching the console appwrite/new:<sha> → assets/staging/console
console-production.yml apps/console/<version> tag (manual runs must target one) appwrite/new:<version> and <version>-self-hosted → assets/production/console

Console releases are tags only: GitHub releases here belong to the server, and console/<version> is already the release tag of packages/console. apps/console/<version> never matches the split workflow's */* filter.

Before merging

Secrets and access on appwrite/appwrite:

  • Console E2E, deploy, R2 and snippet QA secrets and variables, copied from vibes by a one-off workflow that never printed them. R2 keys live in CONSOLE_STAGING_R2_* / CONSOLE_PRODUCTION_R2_* repository secrets, since creating environments needs repository admin.
  • SENTRY_AUTH_TOKEN, VITE_APPWRITE_PROJECT_ID, VITE_COMPANY_NAME, VITE_CONTACT_SALES_URL, VITE_PRIVACY_EMAIL, PUBLIC_CONSOLE_MODE, PUBLIC_APPWRITE_MULTI_REGION are unset in vibes as well, so builds behave the same.
  • ghcr.io/appwrite/new package grants this repository write access
  • Org Docker Hub credentials can push appwrite/new
  • Optional, admin: a console-production environment with required reviewers and an apps/console/* tag ruleset
  • Snippet QA's Android lane uses a RunsOn runner, so the RunsOn app must be installed here or that lane queues forever

Cutover, so staging and production are never deployed from both repositories:

  1. Freeze merges to vibes main, re-filter it and git subtree pull into this branch.
  2. Disable vibes' staging.yml and production.yml, then merge. The merge touches apps/console, so staging deploys from here immediately; both repositories pushing to application-configuration would race.
  3. Confirm the first staging bump from this repository, then release with an apps/console/<version> tag.
  4. Archive appwrite/vibes with a README pointing here; move open PRs and issues.

Test Plan

  • changes.sh against real diffs: the import gives server=false console=true, a server commit gives server=true console=false, and workflow_dispatch, *.x pushes and new-branch pushes behave as listed above.
  • A failing git diff stops changes.sh instead of reporting no changes, and --no-renames keeps a move out of the server counted as a server change.
  • actionlint passes on every new or changed workflow (the remaining ci.yml findings already exist on main).
  • In apps/console: bun install --frozen-lockfile, all lint:* scripts, test:unit, and build pass.
  • Full-repository pint --test passes with apps excluded.

Meldiron and others added 30 commits October 1, 2026 13:41
…e-2026-102989

chore(deps): upgrade TanStack Start to the CVE-2026-102989 fix, drop backport patches
feat(agents): make setup.md run cleanly across coding agents
…mpersonation surfaces

Swap the remaining console-user InitialsAvatar sites to PhotoAvatar so they
resolve through avatars.getPhoto({ userId }) (OAuth2 photo, Gravatar,
Libravatar, initials, placeholder) like the header menu and org members
already do:

- Account page: delete account card summary and confirm dialog
- Auth flow "You're signed in as" chip: new optional userId prop renders
  the photo; the static/mock switcher keeps the plain initial box
- Impersonate console user picker: recent and search result rows
- Impersonation target card (skips the request in preview mode)

Co-Authored-By: Claude Fable 5.1 <[email protected]>
PhotoAvatar only resolved against the console project, so every Auth
surface for a customer's end users rendered local initials. Add a
`projectId` prop that routes `avatars.getPhoto({ userId })` through
`sdk.forProject(projectId)` (guest `avatars.read` scope, URL already
carries `project=`), and use it everywhere a project user is shown:

- Auth > Users list rows, user detail Status card, delete user dialog
- Team members table and membership drawer user link
- Permissions editor: role display, user picker, membership picker
  (replaces the raw ShadCN Avatar whose `user.avatar` was never set,
  and drops four copies of hand-rolled initials)
- User selector and resource search (kind `user`)
- Activity actor avatar (table and drawer) via new `actorId` prop

`useCurrentUser` is ignored in project scope since the console session
is not a project user, and screenshot mode no longer compares project
user IDs against the console account.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Added Shaka Player for HLS, DASH, and CMAF playback, enhancing the video streaming experience. Updated UI components to reflect new adaptive streaming options, including a buffer visualizer and improved error handling. Translations for new features have been added in Hebrew and Japanese.

Co-authored-by: Cursor <[email protected]>
…enshot mode

resolveScreenshotModeUserPhotoSrc treats useCurrentUser / isCurrentUser as
sufficient on their own, so a project-scoped PhotoAvatar could still show
the screenshot-mode demo photo. Gate both flags by console scope alongside
the account ID comparison.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
While impersonating, the impersonation page labels the chip with the
operator, but the photo resolved from account.$id, which is the
impersonated user. Add an accountId prop to AuthFlowAccountSwitcher and
pass the operator's ID from the impersonation page.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
feat(avatars): show project user photos via project-scoped getPhoto
The Education page still promised access "throughout your studies" and
"until graduation". Education organizations now last six months, and each
account can join the program once (appwrite-labs/cloud#6144, #6230).

- Hero, feature card, kickstart copy, and FAQ answers now state the
  six-month term and the Console reminder five weeks before it ends.
- New FAQ entry explains what happens when the term ends, matching the
  2026-09-30 changelog entry.
- CTA no longer says students build "with Appwrite Pro".
- Meta description mentions six months of Pro resources.
- Hebrew and Japanese translations for every changed string.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
feat(avatars): show console user photos on account and impersonation surfaces
… banner

- Implemented the CreateProjectSecurityAddonSection component to manage the Premium Geo DB add-on during project creation.
- Integrated the PremiumGeoOverviewBanner component in project overview to promote the Premium Geo DB features.
- Added functionality to enable the Premium Geo DB add-on with payment handling and error management.
- Introduced user preferences for dismissing the Premium Geo DB overview promo.
- Updated translations and utility functions related to the new features.

This commit enhances the security and geolocation capabilities for projects, providing users with advanced options for managing their data.
Give the post title its own larger style that fills the line before wrapping,
and widen the On this page column with smaller links so headings fit on one line.

Co-authored-by: Cursor <[email protected]>
* docs: announce stable Appwrite MCP server 1.0

* docs: avoid October 1 changelog filename collision
… deletePhoto

Cloud SDK preview built from appwrite-labs/cloud feat-assistant2-0@2e5b73d,
whose server-ce includes #14055. bun.lock regenerated with
bun 1.4 (CI's version). lint:sdk-pins fails on pkg.vc pins by design; swap
in the published release before merging.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Add a "Profile photo" card to Account > General backed by the new
avatars.updatePhoto / deletePhoto console SDK methods, plus a "Change
photo" entry in the header account menu that deep-links to it.

- ProfilePhotoSection: PhotoAvatar preview, Upload (PNG/JPEG/WebP up to
  5MB, validated before the request), Remove behind a confirm dialog;
  toasts and account cache sync like the other account cards.
- ImageFilePicker: the picker shell lifted out of AppLogoFilePicker
  (preview slot, hidden input, Upload/Remove buttons); the logo picker
  now renders through it with unchanged behavior.
- user-photo version store + PhotoAvatar: getPhoto is served no-store,
  but an <img> whose src does not change never re-requests, so the
  current user's avatar URLs carry a version that bumps after an upload
  or removal. Header menu, account page, Init presence badge, and the
  auth chip reload together. New `xl` avatar size for the preview.
- Header menu: "Change photo" (Camera) -> /account#photo; the card
  scrolls itself into view on that hash.
- i18n: catalog key and he/ja dictionary entries; both audits pass.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The Profile photo card on Account > General is enough; remove the extra
account menu entry, its catalog key, and the #photo hash scroll it used.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
- Updated the Appwrite console dependency to the latest version.
- Refactored video layout components to streamline rendering and improve user experience.
- Introduced codec selection in video profile creation, allowing users to choose from available codecs.
- Simplified video status handling by removing unnecessary checks and improving clarity in UI messages.
- Enhanced internationalization support with updated translations for new features and messages.
- Improved documentation for video-related hooks and functionalities, ensuring better developer guidance.

These changes collectively enhance the video management capabilities, providing users with more control over video encoding and streaming options.
- Updated the layout of the PaymentMethodCard for better alignment and spacing.
- Replaced the warning alert with a more visually distinct error message using an alert icon.
- Simplified error message logic to enhance readability and maintainability.
fix(education): describe the six-month Education term
Add the finished cover.avif and its manifest entry, drop the per-post
IMAGE_GENERATORS registration, and date the blog post and changelog
entry 2026-10-02.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
blog: Announce Jaspr support in Appwrite Sites
…rofile handling

- Added a new 'targetPicker' submenu variant to the DebugMenu for improved endpoint selection.
- Refactored profile handling logic to streamline the display of active profiles and endpoints.
- Removed unused imports and simplified the code structure for better maintainability.
Replace the fullscreen Firewall takeover with an animated spider that
crawls project pages for seven days (Oct 2 to Oct 8 UTC). Block and
Learn more open a modal with the trailer, a soft video glow, and
Create rule / Learn more CTAs. Any card action dismisses the promo.

Co-authored-by: Cursor <[email protected]>
lohanidamodar and others added 5 commits October 8, 2026 12:29
The API never served public stats, so the switch promised something that
did not exist. Cloud drops the public attribute along with it.
Remove the analytics property public stats toggle
Concurrent SSR requests shared one router, so one response's cleanup cleared serverSsr before another request dehydrated and loader data could leak across responses. Forward the h3-swallowed 500s to Sentry.

Co-authored-by: Cursor <[email protected]>
Updated various components to utilize the new ANALYTICS_HUMAN_COLOR constant for consistency in branding. This includes changes in AnalyticsEmptyState, CountryMap, BreakdownRow, DimensionPanels, TrafficSplit, and report-pdf, ensuring a unified color scheme for human traffic representation.
fix(ssr): give each server request its own router
Console E2E signs in to a live backend, so without the CONSOLE_E2E_* and CONSOLE_VITE_* secrets every lane fails before running a test. The changes job now reports whether E2E can run, and when the secrets are missing it skips the lanes with a warning annotation instead of failing them; fork pull requests skip as before.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Tier A · See the inline comments. Summary

Comment thread .github/workflows/console.yml Resolved
Creating the console-staging and console-production environments needs repository admin, so the R2 keys copied from vibes' staging and production environments live in CONSOLE_STAGING_R2_* and CONSOLE_PRODUCTION_R2_* repository secrets, and the asset publish jobs no longer name an environment.
ghost
ghost previously requested changes Oct 8, 2026

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Tier B · 3 blocking findings to address. Summary

Comment thread .github/workflows/console-staging.yml Resolved
Binding publish-assets to console-staging and console-production keeps a place for production approval rules: the deploy job waits on publish-assets, so required reviewers added to console-production later gate the rollout without a workflow change. A workflow run creates a missing environment, and repository secrets stay readable inside it, so the R2 keys keep their CONSOLE_<STAGE>_R2_* names; the static-assets setup now documents them.
Only the asset upload ran in the environment, so the image and manifest jobs published appwrite/new:<version> and its -self-hosted tag before any approval. The version job now runs in console-production and the image builds wait on it, so a single approval holds the whole release. The e2e session script names a missing endpoint, email or password secret instead of signing in with empty credentials.
@ChiragAgg5k

Copy link
Copy Markdown
Member Author

@hansi-codes review

@ghost

ghost commented Oct 8, 2026

Copy link
Copy Markdown

Already reviewed dc7e4ea. No new commits since then, so I didn't post another review.

… passkey

The console SDK sends 2.3.0, which the server answers without passkey in project.authMethods, so an enabled method read as off and its switch never settled. The console clients now ask for 2.4.0; servers without passkeys ignore it. The mocked server now applies the same rule, so the spec fails without the header.
feat(auth): passkeys policy and auth method
@ChiragAgg5k

Copy link
Copy Markdown
Member Author

@hansi-codes review

@ghost

ghost commented Oct 8, 2026

Copy link
Copy Markdown

Already reviewed dc7e4ea. No new commits since then, so I didn't post another review.

@ChiragAgg5k
ChiragAgg5k dismissed ghost ’s stale review October 8, 2026 10:53

Production approvals are intentionally not required for console releases (parity with appwrite/vibes). console-production limits deploys to apps/console/* tags, and every production job waits on it, so reviewers can be added later without a workflow change.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k
ChiragAgg5k merged commit a17e224 into main Oct 8, 2026
60 of 61 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the chore/apps-console branch October 8, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product / console Console, UI and UX issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move vibes under apps/console with smart CI