Skip to content

Migrate twenty ui to jotai#17900

Merged
charlesBochet merged 2 commits intomainfrom
jotai-2
Feb 12, 2026
Merged

Migrate twenty ui to jotai#17900
charlesBochet merged 2 commits intomainfrom
jotai-2

Conversation

@charlesBochet
Copy link
Copy Markdown
Member

@charlesBochet charlesBochet commented Feb 12, 2026

Remove Recoil from twenty-ui

Completely removes the recoil dependency from twenty-ui by converting all atoms, hooks, and providers to Jotai equivalents.

twenty-ui

  • createState now returns a Jotai PrimitiveAtom instead of a Recoil atom
  • iconsState, IconsProvider, useIcons converted to Jotai (useSetAtom, useAtomValue)
  • RecoilRootDecorator now uses Jotai Provider (name kept for compat)
  • Deleted unused invalidAvatarUrlsState (Avatar already uses invalidAvatarUrlsAtomV2)
  • Removed recoil from package.json

twenty-front

  • Created local Recoil createState at @/ui/utilities/state/utils/createState for ~112 state files still on Recoil
  • Updated all imports accordingly
  • Removed iconsState from Recoil snapshot preservation in useAuth (lives in Jotai store now)

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Feb 12, 2026

Too many files changed for review. (149 files found, 100 file limit)

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 149 files

Note: This PR contains a large number of files. cubic only reviews up to 75 files per PR, so some files may not have been reviewed.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 12, 2026

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:50222

This environment will automatically shut down when the PR is closed or after 5 hours.

Copy link
Copy Markdown
Contributor

@Devessier Devessier left a comment

Choose a reason for hiding this comment

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

👍

@charlesBochet charlesBochet merged commit 310d13f into main Feb 12, 2026
78 of 80 checks passed
@charlesBochet charlesBochet deleted the jotai-2 branch February 12, 2026 15:43
@twenty-eng-sync
Copy link
Copy Markdown

Hey @charlesBochet! After you've done the QA of your Pull Request, you can mark it as done here. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants