Repository navigation
OpenTea DX-OS v1.12.0
The v1.11.0 tag has no GitHub Release, images or bundle: its release run failed twice on a race in a browser test (the test typed into a frame that was still navigating), fixed here. v1.12.0 contains everything in 1.11.0.
Added
-
Manifest
feed(platform/apps/manifest.schema.json,dxos validate): an app may name a protected path that returns, for the calling user, a JSON list of sub-apps (entriesand an optionalcreatelink). The web menu shows them after the app's own items in each role's sidebar, and the App Store shows a section "Ứng dụng do HTX tự tạo". The web validates the feed (30 entries, label 60, path^/[a-z0-9_-]+(/[a-z0-9_-]+)*$, icon allowlist, 64 KB, 1.5 s, cached 15 s) and a broken feed leaves the menu intact.GET /api/app-storegainscreated. The icon map moved tolib/apps/app-icons.tsx. Seedocs/miniapps.md. -
Mini-app
custom-books("Sổ tự tạo", 0.1.0): the HTX manager designs record-keeping books without code. Eight templates (picking attendance, spraying, fertilising, cashbook, meeting minutes, supply hand-over, pest tracking, visitors) and a blank book; a form-based designer (name, description, menu icon, fields of eight types, which fields show in the list or are summed, access of officers and farmers: none, view, own rows, all rows; optional approval of each row); preview, publish, archive and publish again. Each published book appears in the menu of the roles allowed to use it and in the App Store section "Ứng dụng do HTX tự tạo", with a form, a filtered list with search and paging, a summary with totals and charts, a CSV download and a print page. With approval on, a row waits for the manager, who approves or rejects it on a page with a reason; the author corrects a rejected row, an approved row is locked, and the summary counts approved rows only. A user at level "own" never reads another user's row (list, edit, CSV, print, summary). Requires core 1.12.0. -
Smaller dev stack:
make up-core(postgres, keycloak, hasura, apisix, web) and one target per optional group (up-docs,up-sensors,up-ai,up-voice,up-workflow,up-chat) start only their own containers;make stop-extrasstops (never removes) every optional container.make upandmake platform-upare unchanged. See the README. -
Designer table (
dxos-app.css): aform-tablemodifier gives the input columns of a table of inputs a share of its width, the name column the largest (about 230 px at 1280 px), and the table stays inside its card with any system font. -
Tests: the app smoke installs
custom-books, drives a book from the picking template through publish, feed per role, rows at level own, rejection, approval, CSV, print, archive and purge; a browser story installs it from the App Store, designs and publishes a book, checks that the officer and farmer menus gain the entry on their own, a farmer row at 390 px, approval, summary, CSV, print and archive, and that the shell still renders when the app is stopped; screens for the books list, template chooser, designer, list, summary, print and farmer list at 1280 and 390 px, light and dark.
Changed
- Keycloak heap cap in the dev stack (
docker/docker-compose.yml):JAVA_OPTS_KC_HEAPdefaults to-Xms64m -Xmx512m(override withKEYCLOAK_HEAP_OPTS); Keycloak used about 1.1 GiB before and about 360 MiB after for the same activity. - The sidebar lights only the most specific menu item, so a feed entry no longer lights its app's own item as well.
Upgrade notes
- The Keycloak cap applies when the keycloak container is next recreated (
make up-coreormake platform-upafter pulling); recreating it also restarts web. - Run
make platform-upandmake web-up(new menu feed, store section and designer CSS), then./dxos install miniapps/custom-booksor install "Sổ tự tạo" from the App Store (a worker must be running). No migration of existing apps; keep everydocker_*volume. ./dxos validatenow accepts thefeedkey; an app that declares it should require core>=1.12.0.
Known limits
- No photo or file fields (mini-apps have no object storage access).
- No formulas or calculated fields: the summary only totals number and money fields.
- Approval is one step, by the manager.
- The designer is a form, not a drag-and-drop canvas; a field's type cannot change once the book has rows, and a choice field that has rows cannot lose options.
- A book's menu entry shows on the next page load, up to 15 seconds after publishing (the feed is cached 15 s per app, HTX and role, 5 s after a failure).
- The menu entry cap is 30 books per role; an HTX has at most 50 books; CSV and print hold at most 5000 rows.
- A second household field in one book shows "Nông hộ khác" for households a farmer may not see; only the first household field's name is stored.
Container images
ghcr.io/maiychrus25/opentea-dx-os-web:1.12.0ghcr.io/maiychrus25/opentea-dx-os-api:1.12.0ghcr.io/maiychrus25/opentea-dx-os-postgres:1.12.0ghcr.io/maiychrus25/opentea-dx-os-scanner:1.12.0ghcr.io/maiychrus25/opentea-dx-os-migrate:1.12.0ghcr.io/maiychrus25/opentea-dx-os-dataops:1.12.0
Deploy
Download opentea-dx-os-1.12.0.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN and KEYCLOAK_ADMIN_PASSWORD, and run every command as docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml ..., otherwise Compose ignores those values.