-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to twenty-ui - input components #7914
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR migrates several input components from the twenty-front package to the twenty-ui package, including CardPicker, Radio, RadioGroup, Checkbox, Toggle, and IconListViewGrip.
- Updated import statements across multiple files to use components from 'twenty-ui' instead of local paths
- Migrated Checkbox, Radio, Toggle, and other input components to packages/twenty-ui/src/input/components/
- Added export for 'input' module in packages/twenty-ui/src/index.ts
- Updated Storybook stories for migrated components in packages/twenty-ui/src/input/components/stories/
- Removed specific exports for migrated components in packages/twenty-front/tsup.ui.index.tsx
30 file(s) reviewed, 14 comment(s)
Edit PR Review Bot Settings | Greptile
export * from './src/modules/ui/input/components/EntityTitleDoubleTextInput'; | ||
export * from './src/modules/ui/input/components/IconPicker'; | ||
export * from './src/modules/ui/input/components/ImageInput'; | ||
export * from './src/modules/ui/input/components/Radio'; | ||
export * from './src/modules/ui/input/components/RadioGroup'; | ||
export * from './src/modules/ui/input/button/components/Button'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Button component is exported twice. Consider removing this duplicate export
@gitstart-twenty could you rebase this one? |
packages/twenty-server/src/main.ts
Outdated
@@ -59,6 +63,11 @@ | |||
// Create the env-config.js of the front at runtime | |||
generateFrontConfig(); | |||
|
|||
// Enable session - Today it's used only for SSO | |||
if (environmentService.get('AUTH_SSO_ENABLED')) { | |||
app.use(session(getSessionStorageOptions(environmentService))); |
Check warning
Code scanning / CodeQL
Clear text transmission of sensitive cookie Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI 27 days ago
To fix the problem, we need to ensure that the secure
attribute is set on cookies used for session management. This can be done by modifying the options passed to the session
middleware to include secure: true
. This change should be made in the getSessionStorageOptions
function to ensure that all session cookies are transmitted securely.
-
Copy modified lines R68-R71
@@ -67,3 +67,6 @@ | ||
if (environmentService.get('AUTH_SSO_ENABLED')) { | ||
app.use(session(getSessionStorageOptions(environmentService))); | ||
const sessionOptions = getSessionStorageOptions(environmentService); | ||
sessionOptions.cookie = sessionOptions.cookie || {}; | ||
sessionOptions.cookie.secure = true; | ||
app.use(session(sessionOptions)); | ||
} |
I think something is wrong with the base |
Thanks, We are investigating this. |
0db2373
to
6eace66
Compare
802c9c2
to
6979453
Compare
Hi @charlesBochet, we have resolved PR issues. Please review |
Description
Migrate Input components:
Demo
Radio Component on Storybook
Checkbox component on Storybook
Fixes twentyhq/private-issues#92