Commit Graph

4188 Commits

Author SHA1 Message Date
Félix Malfait
d9429b1a83
Delete unused file (#8014)
Oops, this shouldn't have been merged, it was in the wrong directory
2024-10-23 20:43:13 +02:00
Bhavesh Mishra
6b3cd4dc14
Oss.gg A detailed Guide to self-host Twenty CRM on you local server (#8012)
This Pr consist of a Blog which I wrote on hashnode in which I have
explained in-dept how to setup/host twenty on your local server or cloud
with troubleshooting guide.

I have added output images as refers as well.

check it out 
[Click
here](https://k5lo7h.hashnode.dev/a-detailed-guide-to-self-host-twenty-crm-on-you-local-server)

**Points
750**
2024-10-23 20:26:06 +02:00
Harsh Singh
dd6b8be0d3
fix: date-picker flips in records cell even when there is enough space (#7905)
Fixes: #7897 

This PR fixes the flipping of the date-picker in the record's cell even
if there is enough space below the table.
I attached a screencast to show that it's working fine now. 

With this, it only flips when there is less space to accommodate the
date-picker comp. Also, I tested this after adding lots of records to
see if the scrolling behaviour is intact or not. And I found no issues,
it's working as expected.

[Screencast from 2024-10-21
13-39-42.webm](https://github.com/user-attachments/assets/615fac80-ae2e-4d26-8f94-55d7ee3f91c2)
2024-10-23 19:14:28 +02:00
Thomas Trompette
2e8b8452c1
Add available variables dropdown (#7964)
- Add variable dropdown
- Insert variables on click
- Save variable as `{{stepName.object.myVar}}` and display only `myVar`


https://github.com/user-attachments/assets/9b49e32c-15e6-4b64-9901-0e63664bc3e8
2024-10-23 18:32:10 +02:00
nitin
18778c55ac
Multiple operations on webhooks (#7807)
fixes #7792 

WIP :)



https://github.com/user-attachments/assets/91f16744-c002-4f24-9cdd-cff79743cab1

---------

Co-authored-by: martmull <martmull@hotmail.fr>
2024-10-23 15:57:46 +00:00
Rajeev Dewangan
165dd87264
Update 1-quote-tweet-20-oss-gg-launch.md (#8008)
What side quest you solving : Like & Re-Tweet oss.gg Launch Tweet

Points : 50

Proof : 
![Screenshot 2024-10-23
205849](https://github.com/user-attachments/assets/ad30fc02-6325-41b8-a8c1-a38d0528d984)
2024-10-23 17:40:12 +02:00
Rajeev Dewangan
c38a6c6af9
Update 2-tweet-about-fav-twenty-feature.md (#8009)
What side quest are you doing : Share a tweet about your favorite
feature in Twenty

Points : 50

Proof : 
![Screenshot 2024-10-23
205918](https://github.com/user-attachments/assets/25d4ded1-1a93-4c14-a193-420d5b2a11a0)
2024-10-23 17:39:50 +02:00
gitstart-app[bot]
dcf92ae7f1
Migrate to twenty-ui - utilities/dimensions (#7949)
This PR was created by [GitStart](https://gitstart.com/) to address the
requirements from this ticket:
[TWNTY-7539](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7539).

 --- 

### Description

- Move the utilities/dimensions from twenty-front to twenty-ui and
update imports\

Fixes twentyhq/private-issues#79

---------

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-23 17:09:32 +02:00
Marie
849d7c2423
Implement search for rich text fields and use it for notes (#7953)
Co-authored-by: Weiko <corentin@twenty.com>
2024-10-23 15:49:10 +02:00
Ngan Phan
45b3992784
fix: Default View Font Color and Reordering (#7940)
This PR fixes issue #6114 
I removed the separate check for default item and add it into the
draggable list.
2024-10-23 15:44:17 +02:00
ZiaCodes
5b6487979c
feat: Write Blog Post About 20 (750 points) (#7972)
![image](https://github.com/user-attachments/assets/0aaac3a2-7862-469f-ba69-ab17352a883e)
2024-10-23 15:14:52 +02:00
Vardhaman Bhandari
a55423642a
fix: context menu padding (#7918)
This pull request addresses the issue #7915 regarding the lack of
padding in the right-click record menu. This PR add padding to context
menu and reuse the existing component used for the filter/sort feature.


![image](https://github.com/user-attachments/assets/4534eba5-a7de-4142-9d5f-ff0aee86a526)

![image](https://github.com/user-attachments/assets/1690890e-cb18-4879-9a9b-3153cd6aeb26)

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
2024-10-23 15:13:14 +02:00
ZiaCodes
25a8638e4e
[🕹️] Quest Wizard (300 points) (#7971)
![image](https://github.com/user-attachments/assets/b7907de9-80df-4801-9db0-deaaf196e663)

![image](https://github.com/user-attachments/assets/26687eb0-2a82-4256-97e6-f41a118513fc)

![image](https://github.com/user-attachments/assets/c9ab8c1a-0d42-4afa-ae17-9933819dbfd9)

![image](https://github.com/user-attachments/assets/76cea0cd-41cc-4508-a8fd-23d2338903c3)

![image](https://github.com/user-attachments/assets/61478b84-bced-4cb5-b66c-3d38c5610c7e)
2024-10-23 15:00:23 +02:00
ZiaCodes
412877e49a
feat: design-promotional-poster (300 points) (#7970)
Link to tweet: https://x.com/zia_webdev/status/1848764487081619470


![image](https://github.com/user-attachments/assets/033c06e6-e18b-47f4-83d0-94c09519a8ac)

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
2024-10-23 14:28:36 +02:00
Sanskar Jain
74ecacb791
fix x axis scroll bar issue on developer page (#7975)
This PR Fixes Issue : #7932 
I have added the CSS to remove the scroll bar from x axis of the sidebar
on the developers page.
2024-10-23 13:57:04 +02:00
shubham yadav
ec0250616e
Update install.sh (#7973)
This PR updates the install.sh script to fetch the docker-compose.yml
file from the GitHub branch or tag that matches the version specified by
the user, instead of defaulting to the main branch.

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
2024-10-22 22:19:46 +02:00
Raphaël Bosi
6843a642b5
7499 refactor right drawer to have contextual actions (#7954)
Closes #7499
- Modifies context store states to be component states
- Introduces the concept of `mainContextStore` which will dictate the
available actions inside the command K
- Adds contextual actions inside the right drawer
- Creates a new type of modal variant
2024-10-22 18:35:45 +02:00
Weiko
6c93587efb
Fix cache storage (#7966) 2024-10-22 18:21:00 +02:00
gitstart-app[bot]
113e9fc8c7
Migrate to twenty-ui - utilities/animation (#7951)
This PR was created by [GitStart](https://gitstart.com/) to address the
requirements from this ticket:
[TWNTY-7538](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7538).

 --- 

### Description

- Move animation components to `twenty-ui`    \
  \
  \
  Fixes  #7538

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-22 18:08:54 +02:00
NitinPSingh
edc36c707d
fix #7821 added gap in record tag and count (#7822)
solves #7821 

added 4px gap in tag and count

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
2024-10-22 18:02:00 +02:00
sateshcharan
32cf88fa8d
fix: [oss.gg] solves #7920 (#7962)
![image](https://github.com/user-attachments/assets/bb813194-30e9-4f1c-8633-5b7a3dca87b1)
#7920
2024-10-22 17:58:16 +02:00
ZiaCodes
7a6926ea5a
feat: Design a new logo for Twenty (300 points) (#7965)
This PR fixes #7936


![image](https://github.com/user-attachments/assets/083a8475-b2f4-4cb4-9c5b-509d3823c66b)

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
2024-10-22 17:55:04 +02:00
Marie
6dd0ebe087
Add skip option at invite team step (#7960)
Closing [#5925](https://github.com/twentyhq/twenty/issues/5925)
2024-10-22 17:52:15 +02:00
Ana Sofia Marin Alexandre
29bd4e5f2d
track serverless functions executions (#7963)
Solves: 
https://github.com/twentyhq/private-issues/issues/74

**TLDR**
When a serverless function is executed, the result is send to tinybird
event data source.

**In order to test:**

1. Set ANALYTICS_ENABLED to true
2. Put your TINYBIRD_INGEST_TOKEN from twenty_event_playground in your
.env file
3.  Don't forget to run the worker
4. Create your serverless function and run it
5. The event should be logged on the event datasource in
twenty_event_playground

**What is the structure of the payload of a serverless function event?**

Here are two examples of the payload:

`{"duration":37,"status":"SUCCESS","functionId":"a9fd87c0-af86-4e17-be3a-a6d3d961678a","functionName":"testingFunction"}`

`

{"duration":34,"status":"ERROR","errorType":"ReferenceError","functionId":"a9fd87c0-af86-4e17-be3a-a6d3d961678a","functionName":"testingFunction"}`

**Possible improvments**

- Change the status(str) to success(bool) 
- Enrich data in the payload
2024-10-22 17:51:51 +02:00
gitstart-app[bot]
430644448a
Migrate to twenty-ui - navigation/link (#7837)
This PR was created by [GitStart](https://gitstart.com/) to address the
requirements from this ticket:
[TWNTY-7535](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7535).

 --- 

### Description.  

Migrate link components to `twenty-ui` \
\
Fixes #7535

---------

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-22 17:36:26 +02:00
Weiko
02c34d547f
Fix redis connection (#7956)
## Context
bull-mq connection was not working as intended, the connection parameter
was ignored and was falling back to localhost.
This PR should fix the issue by instantiating a IORedis client following
bullmq documentation https://docs.bullmq.io/guide/connections
I also changed cache-storage module to use IORedis client as well to be
more consistent even though it was not necessary there. We could move
that instantiation to a factory class in the future.

## Test
start server + worker with correct port and wrong port with
cache-storage-type memory/redis and queue-type sync/bull-mq
2024-10-22 14:40:18 +00:00
Ana Sofia Marin Alexandre
18cfe79b80
bug fix webhook response not sending data to tinybird (#7952)
Solves https://github.com/twentyhq/private-issues/issues/118

**TLDR**

Fix webhook response not sending data to tinybird when the url is not a
link.

**Changes in Tinybird:**

- Add column Success to webhook payload (boolean)
- Changed the parameter WebhookIdRequest to WebhookId in the
getWebhooksResponse api point.
- Those changes can be seen in the tinybird workspace
twenty_analytics_playground

**In order to test**

1. Set ANALYTICS_ENABLED to true
2. Set TINYBIRD_INGEST_TOKEN to your token from the workspace
twenty_analytics_playground
3. Set TINYBIRD_GENERATE_JWT_TOKEN to the admin kwt token from the
workspace twenty_analytics_playground
4. Set TINYBIRD_WORKSPACE_UUID to the UUID of
twenty_analytics_playground
5. Create a Webhook in twenty and set wich events it needs to track
6. Run twenty-worker in order to make the webhooks work.
7. Do your tasks in order to populate the data
8. Look at your webhooks in settings>api and webhooks> your webhook and
the statistics should be displayed
2024-10-22 15:48:11 +02:00
Marie
f0a2d38471
Improve search algorithm (#7955)
We were previously checking for matching with each search term
independently. Ex searching for "felix malfait" we were searching for
correspondances with "felix" and "malfait".
As a result record A with name "Marie-Claude Mala" and email
"ma.lala@email.com" had a biggest search score than record B "Felix
Malfait" with email felix@email.com for search "felix ma":
for record A we had 0 match with felix and 3 matches with "ma" ("marie",
"mala", "ma")
for record B we had 1 match with felix and 1 match with "ma" (with
"malfait").

So we want to give more weight to a row that would combine matches with
both terms, considering "felix malfait" altogether.
2024-10-22 15:47:16 +02:00
martmull
e767f16dbe
7415 serverless functions update environment variables in a dedicated tab in settings functions not a env file (#7939)
![image](https://github.com/user-attachments/assets/0ef9551d-d867-479e-9a76-faee6930bc0a)

![image](https://github.com/user-attachments/assets/a7aac417-4dd8-401f-8d5b-5b72f31710f6)

![image](https://github.com/user-attachments/assets/16c98e52-a2db-4ed3-b5d2-77745b4d2918)

![image](https://github.com/user-attachments/assets/847d23d6-8a58-4d8f-aff1-4f8a81862964)
2024-10-22 14:51:03 +02:00
ZiaCodes
7fc844ea8f
feat: Side quest tweet fav completed (#7944)
![image](https://github.com/user-attachments/assets/26e7b781-afbe-467f-864f-bf04058a5b2d)
2024-10-22 14:24:16 +02:00
ZiaCodes
2aa870d6ac
feat: Side quest Gif Magic completed (#7946)
![supermeme_14h47_52](https://github.com/user-attachments/assets/e7788a89-722c-4046-ae5d-c2a738daa433)
2024-10-22 14:23:52 +02:00
ZiaCodes
6e9774dac2
feat: Side quest meme magic completed (#7945)
![image](https://github.com/user-attachments/assets/615094b3-3d6b-40dc-a986-5e725201c47c)
2024-10-22 14:23:31 +02:00
ZiaCodes
006104c548
feat: Side quest Tweet compeleted (#7943)
![image](https://github.com/user-attachments/assets/9903f9b2-4a45-4a88-a50b-ca398aa556dd)

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
2024-10-22 14:22:06 +02:00
Ritansh Singh
07cdeeb595
Like & Re-Tweet oss.gg Launch Tweet #7947 (#7950)
Point: 50 Points
Task: Like & Re-Tweet oss.gg Launch Tweet
Attachement:
![retweet oss
gg](https://github.com/user-attachments/assets/6c7619be-707b-49ff-991d-15225e503b4b)

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2024-10-22 14:20:11 +02:00
Rajeev Dewangan
afb246558e
Update 2-write-blog-post-about-20.md (#7941)
Update oss-gg block post list for
https://github.com/twentyhq/twenty/pull/7938
2024-10-22 10:55:07 +02:00
gitstart-app[bot]
6133a72cf6
Migrate to twenty-ui utilities/screen-size (#7836)
This PR was created by [GitStart](https://gitstart.com/) to address the
requirements from this ticket:
[TWNTY-7540](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7540).

 --- 

### Description

Move `utilities/screen-size` to the `twenty-ui` package

### Demo

The `useScreenSize` was used to render the mobile nav for example on the
landing page.

It still renders properly


![](https://assets-service.gitstart.com/4814/018fa684-c192-455d-a38b-3b212fdb3c1a.png)

###### Fixes [#7540](https://github.com/twentyhq/twenty/issues/7540)

###### Dev QA

- [x] `utilities/screen-size` should be moved to the `twenty-ui` folder

- [x] The mobile nav should still show on the landing page

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-22 10:34:42 +02:00
gitstart-app[bot]
dfcf3ef879
Migrate to twenty-ui - layout/animated-placeholder (#7794)
This PR was created by [GitStart](https://gitstart.com/) to address the
requirements from this ticket:
[TWNTY-7531](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7531).

 --- 

### Description

- Migrate the `animated-placeholder` to `twenty-ui` and update all
imports.\
  \
  Fixes twentyhq/private-issues#87

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-22 10:28:09 +02:00
gitstart-app[bot]
bf0a059751
[Server Integration tests] Enrich integration GraphQL API tests #3 (#7931)
This PR was created by [GitStart](https://gitstart.com/) to address the
requirements from this ticket:
[TWNTY-7526](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7526).

 --- 

### Description

NoteTargets and MessageThreads are special cases because they do not
have a notable property that we could use in "update" the test cases,\
for NoteTargets we are using the personId, testing the relation, but for
MessageThreads we are using updatedAt. To test the relations for
MessageThreads\
we would need to update another object (Message) because the relation is
ONE_TO_MANY, updating another object in a test that would update the
current tested object sounds incorrect.\
In the NoteTargets, we can update the NoteTarget object because the
relation is MANY_TO_ONE\
for some tests we need an account ID, we are using Tim's account for all
the tests (the token in jest-integration.config.ts), so we are using a
constant to use the account ID

### Refs

#7526

### Demo


![](https://assets-service.gitstart.com/28455/7f1c520e-78e4-43c3-aa89-f6fc09e0a056.png)

---------

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com>
2024-10-22 10:17:10 +02:00
TheFaheem
c6bc09c5a2
[oss.gg]: hubspot to twenty contact data migration script (750 points) (migration-script) (#7937)
HubSpot to Twenty CRM Contact Migration Script

Script's github repo:
https://github.com/FaheemOnHub/twenty-crm-hubspot-script

This Node.js script facilitates migrating contacts from HubSpot CRM to
Twenty CRM. The user has the option to either check for duplicates in
the Twenty CRM before migrating or directly migrate all contacts without
checking.

Video Proof added in oss-gg's twenty-dev-challenges
2024-10-22 10:13:02 +02:00
gitstart-app[bot]
b45511c955
Migrate to twenty-ui - navigation/breadcrumb (#7793)
### Description

- Move breadcrumb components to `twenty-ui`    \
  \
  \
  Fixes  #7534

---------

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-21 21:53:43 +02:00
Muhammad Abdullah
25010174f0
Adjust the line height and expand the maximum height of the plac… (#7764)
fixes: #7757

## What does this PR do?

We increased the line height from md to lg and the max height of the
placeholder subtitle text from 2.4 to 2.8 to ensure that letters are no
longer slightly cut off in the placeholder in Functions.



![twenty-placeholder-text](https://github.com/user-attachments/assets/1cfed3c4-6bae-4200-9516-4e1295da170a)

## How should this be tested?

  1. Log in
  2. Go to Settings
  3. Toggle "Advanced" settings
  4. Go to Functions

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-21 21:47:17 +02:00
Shyamsunder Tard
34ef2d3d6d
Left Padding removed in Settings Page Tabs (#7730)
Fix:  #7100 

The `TabList` component, located in
[Tablist](packages/twenty-front/src/modules/ui/layout/tab/components/TabList.tsx),
wraps the Tabs and defines the padding, and is used in multiple places.
The left padding for the Emails and Calendars sections of the Accounts
in Settings has been removed ( list appear when there are multiple
connected accounts ). However, the padding on the Record detail page
remains unchanged.

To address this, prop of css styles is added to `Tablist`, allowing for
the padding of the `TabList` component to be adjusted as required.

Additional styles can also be applied as per requirements individually
for Emails and Calendar section.


<img width="722" alt="Screenshot 2024-10-16 at 5 06 26 AM"
src="https://github.com/user-attachments/assets/3c7648ac-e2a6-4871-b58b-d25b008a06f0">
<img width="789" alt="Screenshot 2024-10-16 at 5 49 18 AM"
src="https://github.com/user-attachments/assets/a6e61b4d-0245-4744-ae87-86fe01a6bc43">
<img width="725" alt="Screenshot 2024-10-16 at 6 22 30 AM"
src="https://github.com/user-attachments/assets/e6a19095-3ee4-431f-ba19-1182552a5c8d">

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-21 21:42:37 +02:00
ZiaCodes
5e2df81211
fix: hidden settings menu affects settings layout (#7769)
This PR fixes #6746

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-21 21:28:01 +02:00
nitin
4407b1aaa2
Minor page header fix (#7927)
<img width="1420" alt="Screenshot 2024-10-22 at 00 03 03"
src="https://github.com/user-attachments/assets/c8841991-9c0a-41fd-8fc5-f789c4a94398">

<img width="1512" alt="Screenshot 2024-10-22 at 00 04 33"
src="https://github.com/user-attachments/assets/a9bbbad9-5cc3-4019-8928-d25d02d0bda9">
2024-10-21 20:48:12 +02:00
Antoine Moreaux
0f0a7966b1
feat(sso): allow to use OIDC and SAML (#7246)
## What it does
### Backend
- [x] Add a mutation to create OIDC and SAML configuration
- [x] Add a mutation to delete an SSO config
- [x] Add a feature flag to toggle SSO
- [x] Add a mutation to activate/deactivate an SSO config
- [x] Add a mutation to delete an SSO config
- [x] Add strategy to use OIDC or SAML
- [ ] Improve error management

### Frontend
- [x] Add section "security" in settings
- [x] Add page to list SSO configurations
- [x] Add page and forms to create OIDC or SAML configuration
- [x] Add field to "connect with SSO" in the signin/signup process
- [x] Trigger auth when a user switch to a workspace with SSO enable
- [x] Add an option on the security page to activate/deactivate the
global invitation link
- [ ] Add new Icons for SSO Identity Providers (okta, Auth0, Azure,
Microsoft)

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-21 20:07:08 +02:00
Harsh Singh
11c3f1c399
fix: width in PageHeader comp (#7866)
Fixes: #7864 


This fix prevents layout issues caused by invalid CSS and ensures that
the PageHeader component works correctly when no width prop is passed.

![Screenshot from 2024-10-20
00-03-39](https://github.com/user-attachments/assets/68340256-c756-4a56-9028-9aed32caf68e)

Co-authored-by: Charles Bochet <charles@twenty.com>
2024-10-21 18:40:32 +02:00
uluckydev
5416773951
Fix Storybook Configuration for Windows Development Environment (#7904)
#### Description
This PR resolves issue #7903 regarding the Storybook configuration for
Windows development environments. Previously, the configuration script
generated forward slashes instead of backslashes, leading to errors when
running the command `npx nx run twenty-front:storybook:serve:dev
--configuration=modules` on Windows systems.

#### Changes Made
- Updated the Storybook configuration to ensure that backslashes are
used in file paths for Windows environments, preventing command
execution errors.

#### How to Test
1. **Run Storybook Command**:
   - On a Windows machine, execute the command:
     ```
     npx nx run twenty-front:storybook:serve:dev --configuration=modules
     ```
- Ensure that the command runs successfully without any path-related
errors.

2. **Verify Configuration**:
- Check the Storybook configuration files to confirm that paths are
using backslashes where applicable.
- Test the same command on non-Windows environments to verify that there
are no regressions.

#### Related Issue
- Fixes #7903
2024-10-21 18:28:31 +02:00
Nazar Poshtarenko
4578674e30
fix(website): enable // in token form URL input (#7923)
Fixes: #7861
2024-10-21 18:24:24 +02:00
Vardhaman Bhandari
1466d44b57
fix: Make the entire advanced mode toggle container clickable (#7761)
In this PR:

- Use a real `<input type="checkbox" />` element in the `<Toggle />`
component
- Create an `accessibility` module in the `twenty-ui` package
- Export the `VISIBILITY_HIDDEN` CSS object to hide visually any element
- Export a `<VisibilityHidden />` component from the `twenty-ui` package
to add visually hidden textual information easily
- Export a `<VisibilityHiddenInput />` component to create custom form
control components easily
- Use a `<label>` element for the "Advanced:" text; it will naturally
toggle the advanced settings

Fixes #7756

---------

Co-authored-by: Devessier <baptiste@devessier.fr>
2024-10-21 18:22:10 +02:00
DivyanshuLohani
1a0b387282
Add the role=button to search (#7594)
In this PR:

- Let the `<NavigationDrawerItem />` component render a `<button>` by
default instead of a `<div>`
- Replace `<div>` by `<span>` inside the `<NavigationDrawerItem />` as
`<button>` and `<a>` HTML elements only accept [_phrasing
content_](https://developer.mozilla.org/en-US/docs/Web/HTML/Content_categories#phrasing_content).
- Fix layout issue: the keyboard icon wasn't put on the right of the
button, I put it back

Fixes #7575

---------

Co-authored-by: Devessier <baptiste@devessier.fr>
2024-10-21 18:21:08 +02:00