Repository navigation
feat: host Compose preview plugin builds on the backend (host-compose-preview-plugin) - #124
Merged
raininforest merged 31 commits intoOct 23, 2026
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
malilex
reviewed
Oct 20, 2026
raininforest
force-pushed
the
docs/select-compose-preview-plugin-by-meta-version
branch
2 times, most recently
from
October 21, 2026 07:04
e98ad92 to
b97eff8
Compare
Collaborator
|
а пока ещё не решили, как сидить компоненты при локальной разработке (и не только) для compose? |
Contributor
Author
я пока этим не занимался. это лучше отдельно делать, чтобы не задерживать этот ПР |
neretin-trike
approved these changes
Oct 22, 2026
raininforest
force-pushed
the
docs/select-compose-preview-plugin-by-meta-version
branch
from
October 22, 2026 11:03
0701312 to
13b29b6
Compare
malilex
force-pushed
the
feature/ds-versions
branch
from
October 22, 2026 12:26
74386d7 to
d143d81
Compare
raininforest
force-pushed
the
docs/select-compose-preview-plugin-by-meta-version
branch
from
October 22, 2026 13:08
13b29b6 to
41631c1
Compare
raininforest
force-pushed
the
docs/select-compose-preview-plugin-by-meta-version
branch
4 times, most recently
from
October 23, 2026 08:14
6f6be97 to
069f879
Compare
…mpose-preview-plugin
…, sync the change with the implementation
…ive size nginx checks the body size of an auth_request subrequest against its own location, so the 2m server limit rejected the plugin archive with 413 before the route limit of 64m applied. Give /_auth_user the same limit and cover it in the route test; mark the end-to-end tasks 6.8 and 7.5 of host-compose-preview-plugin.
…orm-params The versioned editor model returned platformMappings.compose = null for every property, so the Compose preview failed with 'has no Compose mapping'.
… document the public URL contract
…ithin the detekt return limit
…archives above the meta limit Publication, activation and cleanup now run under one advisory lock, so concurrent publications of one build cannot overwrite accepted files and cleanup cannot delete a build that a rollback activates. The multipart parser limit follows the archive limit; the meta size is checked apart.
- minio gets a named volume: the buckets were lost on a Docker restart while the registry still listed the plugin builds as published. - import-compose-components.sh no longer links components with raw SQL: it queried a column that does not exist (design_systems.name) and bypassed the revision tables. The links are created by 'dsbuilder components push'.
…iew payload A property whose value is a shape token with an adjustment failed with 'Adjustment ... requires a number'. The protocol cannot carry an adjustment on a token reference, so the payload gets a derived theme token <token>@adjust(<n>) with the radii shifted (never below zero).
…e the schema counts after the rebase feature/ds-versions now owns V7-V11, so the registry migration becomes V12; migration counts, operation counts and the schema fingerprint follow.
…, a design system and a theme setup-local.sh now leaves a working Compose preview in the component editor on any machine, without building anything in other repositories: - publish-compose-plugin.sh sends a plugin archive (file or URL) through the dsbuilder CLI as the plasma-android CI does: the backend stores the files in the local MinIO, imports the API meta from the archive and activates the build. The installed CLI may not know the command, so the JVM CLI of this repository is built when needed. - seed-local-design-system.sh creates a design system and a theme through the API, replaces the Android token values with those of a theme-converter theme package (apply_theme_values.py) and loads a component package with 'components push'. - local-dev/ bundles the plugin archive, the sdds_serv theme (Android values) and the component package; refresh-local-dev-assets.sh updates them (the plugin is built in plasma-android, the theme and components are downloaded from theme-converter in the versions that the token module declares). - Options --plugin-zip, --components-package, --theme-package, --skip-plugin and --skip-design-system override or skip the steps. - The client no longer defaults to the stale http://localhost:8081/ plugin address, so it asks the backend for the active build.
…tor model migration dev took V12 for appearance_editor_model, so the registry migration becomes V13; migration counts, the operation count and the schema fingerprint of the Flyway tests follow, and the change specs name V13.
The Web/Compose switch was hidden unless both platforms had components, so a design system with Compose components only showed no switch. Both tabs are shown now and the platform without components is disabled.
dev's test mock answers property-platform-params with an empty list because the lazy editor reads fetch it for Web only; the Compose mapping test needs the list, so the mock can be switched to the test's own answer.
…the plugin storage
raininforest
force-pushed
the
docs/select-compose-preview-plugin-by-meta-version
branch
from
October 23, 2026 10:36
9cdb57d to
37bf808
Compare
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.
Что
Change
host-compose-preview-plugin: бэкенд DSB принимает и хранит плагин Compose preview, а клиент получает у него адрес актуального билда. Спеки (OpenSpec) и реализация в одном PR; базаfeature/ds-versions.compose_preview_plugin_builds(FlywayV8),POST /api/admin/compose-preview/plugin-builds(архив и нормализованная мета одним запросом): проверки архива и manifest, заливка в S3, импорт меты и активный билд в одной транзакции, идемпотентность, пробная отправка по умолчанию, очистка;GET /api/projects/{projectId}/ds/compose-preview/plugin.dsbuilder-preview-publisherс рольюcompose_preview_publisher, доверенный заголовокX-Compose-Preview-Publisher; роль не открывает импорт меты и проектные маршруты.dsbuilder preview-plugin publish --platform compose --from <zip> [--apply], вход служебной учёткой изDSBUILDER_CLIENT_IDиDSBUILDER_CLIENT_SECRET(секрет не принимается аргументом); задачаpackageJvmCliи workflow релиза CLI (cli-vX.Y.Z).VITE_COMPOSE_PREVIEW_PLUGIN_URLостаётся прямым переопределением.compose-preview, переменныеDS_PLUGIN_*, bootstrap Keycloak,DEPLOY.md.Принятое ограничение: плагин в бакете клиента, общий origin принят как риск, пока плагин публикует только команда SDDS.
Парный PR в plasma-android (сборка и отправка из CI): salute-developers/plasma-android#955.
Проверено
cd backend-kt && ./gradlew build(все сервисы),cd frontend-kt && ./gradlew build(JVM, JS, macOS),cd js/apps/client && npm run build && npm test../setup-local.sh) и на dev-окружении; секреты и инфраструктура (префикс бакета, CORS, ключ записи) не заведены.🤖 Generated with Claude Code