Rename twenty-ui to twenty-ui-deprecated and twenty-new-ui to twenty-ui to prepare package release (#21315)

## Description

Promotes the next-gen UI library (formerly `twenty-new-ui`) to the name
**`twenty-ui`** (v0.1.0, publishable) and renames the old package to
**`twenty-ui-deprecated`**. Rewrites ~1,730 `twenty-ui` imports →
`twenty-ui-deprecated`, updates all configs/CI/Docker/deps, and migrates
twenty-front's `Toggle` to the new package (first consumer) as a
drop-in.

## Next steps
- Wire the `ui/v*` publish dispatch (`cd-deploy-tag.yaml` +
`.yarnrc.yml`), then tag `ui/v0.1.0` to publish.
- Continue migrating components from `twenty-ui-deprecated` →
`twenty-ui`.
This commit is contained in:
Raphaël Bosi
2026-06-08 18:12:28 +02:00
committed by GitHub
parent a91e737e69
commit c596a5e342
2320 changed files with 6313 additions and 4856 deletions
+2
View File
@@ -27,6 +27,7 @@ jobs:
packages/twenty-front/**
packages/twenty-front-component-renderer/**
packages/twenty-ui/**
packages/twenty-ui-deprecated/**
packages/twenty-shared/**
packages/twenty-sdk/**
!packages/twenty-sdk/package.json
@@ -90,6 +91,7 @@ jobs:
run: |
npx nx build twenty-shared
npx nx build twenty-ui
npx nx build twenty-ui-deprecated
npx nx build twenty-front-component-renderer
- name: Download storybook build
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+8 -8
View File
@@ -21,7 +21,7 @@ jobs:
files: |
package.json
yarn.lock
packages/twenty-new-ui/**
packages/twenty-ui/**
packages/twenty-shared/**
new-ui-task:
needs: changed-files-check
@@ -39,7 +39,7 @@ jobs:
- name: Install dependencies
uses: ./.github/actions/yarn-install
- name: Run ${{ matrix.task }}
run: npx nx ${{ matrix.task }} twenty-new-ui
run: npx nx ${{ matrix.task }} twenty-ui
new-ui-sb-build:
needs: changed-files-check
if: >-
@@ -56,12 +56,12 @@ jobs:
- name: Install dependencies
uses: ./.github/actions/yarn-install
- name: Build storybook
run: npx nx storybook:build twenty-new-ui
run: npx nx storybook:build twenty-ui
- name: Upload storybook build
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: storybook-twenty-new-ui
path: packages/twenty-new-ui/storybook-static
path: packages/twenty-ui/storybook-static
retention-days: 1
new-ui-sb-test:
timeout-minutes: 30
@@ -81,19 +81,19 @@ jobs:
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: storybook-twenty-new-ui
path: packages/twenty-new-ui/storybook-static
path: packages/twenty-ui/storybook-static
- name: Install Playwright
run: |
cd packages/twenty-new-ui
cd packages/twenty-ui
npx playwright install
- name: Run storybook tests
run: npx nx storybook:test twenty-new-ui
run: npx nx storybook:test twenty-ui
- name: Upload screenshots for visual regression
if: always() && !cancelled()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: argos-screenshots-twenty-new-ui
path: packages/twenty-new-ui/screenshots
path: packages/twenty-ui/screenshots
retention-days: 1
ci-new-ui-status-check:
if: always() && !cancelled()
+8 -8
View File
@@ -21,7 +21,7 @@ jobs:
files: |
package.json
yarn.lock
packages/twenty-ui/**
packages/twenty-ui-deprecated/**
packages/twenty-shared/**
ui-task:
needs: changed-files-check
@@ -39,7 +39,7 @@ jobs:
- name: Install dependencies
uses: ./.github/actions/yarn-install
- name: Run ${{ matrix.task }}
run: npx nx ${{ matrix.task }} twenty-ui
run: npx nx ${{ matrix.task }} twenty-ui-deprecated
ui-sb-build:
needs: changed-files-check
if: >-
@@ -56,12 +56,12 @@ jobs:
- name: Install dependencies
uses: ./.github/actions/yarn-install
- name: Build storybook
run: npx nx storybook:build twenty-ui
run: npx nx storybook:build twenty-ui-deprecated
- name: Upload storybook build
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: storybook-twenty-ui
path: packages/twenty-ui/storybook-static
path: packages/twenty-ui-deprecated/storybook-static
retention-days: 1
ui-sb-test:
timeout-minutes: 30
@@ -81,19 +81,19 @@ jobs:
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: storybook-twenty-ui
path: packages/twenty-ui/storybook-static
path: packages/twenty-ui-deprecated/storybook-static
- name: Install Playwright
run: |
cd packages/twenty-ui
cd packages/twenty-ui-deprecated
npx playwright install
- name: Run storybook tests
run: npx nx storybook:test twenty-ui
run: npx nx storybook:test twenty-ui-deprecated
- name: Upload screenshots for visual regression
if: always() && !cancelled()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: argos-screenshots-twenty-ui
path: packages/twenty-ui/screenshots
path: packages/twenty-ui-deprecated/screenshots
retention-days: 1
ci-ui-status-check:
if: always() && !cancelled()