1091bc657d
Command menu refactoring ( #9257 )
...
Refactored the `CommandMenu` component to make it more readable and
easier to refactor.
The file was way too big so I introduced a few hooks and eliminated code
duplication.
Introduced:
- `useMatchCommands` hook to match commands with the search
- `useCommandMenuCommands` which returns all command menu commands
- `useMatchingCommandMenuCommands` to return the commands matched with
the search
- `CommandMenuContainer` to simplify the `DefaultLayout`
- Unmounted the `CommandMenu` when it wasn't opened to improve
performances
I also introduced a new behavior: Automatically select the first item
when opening the command menu:
https://github.com/user-attachments/assets/4b683d49-570e-47c9-8939-99f42ed8691c
2024-12-30 15:22:49 +01:00
a0b5720831
Fix modals being unregistered inside command menu ( #9155 )
...
Fix modals being unregistered inside command menu
2024-12-20 10:45:22 +01:00
311b5f64c4
Refacto scroll + Aggregate queries for view groups ( #9089 )
...
Closes https://github.com/twentyhq/private-issues/issues/217 .
Refactoring scroll not to cause table-wide re-render when opening a
dropdown (triggering a scroll lock) in the table.
2024-12-16 17:58:57 +01:00
a9cb20f317
Refactor and fixes dropdown bugs ( #8807 )
...
Fixes https://github.com/twentyhq/twenty/issues/8788
Fixes https://github.com/twentyhq/twenty/issues/8793
Fixes https://github.com/twentyhq/twenty/issues/8791
Fixes https://github.com/twentyhq/twenty/issues/8890
Fixes https://github.com/twentyhq/twenty/issues/8893
- [x] Also :
Icon buttons under dropdown are visible without blur :

- [x] Also :
<img width="237" alt="image"
src="https://github.com/user-attachments/assets/e4c70936-beff-4481-89cb-0a32a36e0ee2 ">
- [x] Also :
<img width="335" alt="image"
src="https://github.com/user-attachments/assets/5be60395-6baf-49eb-8d40-197add049e20 ">
- [x] Also :
<img width="287" alt="image"
src="https://github.com/user-attachments/assets/a317561f-7986-4d70-a1c0-deee4f4e268a ">
- Button create new without padding
- Container is expanding
- [x] Also :
<img width="303" alt="image"
src="https://github.com/user-attachments/assets/09f8a27f-91db-4191-acdc-aaaeedaf6da5 ">
- [x] Also :
<img width="133" alt="image"
src="https://github.com/user-attachments/assets/fe17b32e-f7a4-46c4-8040-239eaf8198e8 ">
Font is cut at bottom ?
- [x] Also :
<img width="385" alt="image"
src="https://github.com/user-attachments/assets/7bab2092-2936-4112-a2ee-d32d6737e304 ">
The component should flip and not resize in this situation
- [x] Also :
<img width="244" alt="image"
src="https://github.com/user-attachments/assets/5384f49a-71f9-4638-a60c-158cc8c83f81 ">
- [x] Also :

2024-12-06 14:27:48 +00:00
8aab063da3
Demo new onclick behavior
2024-11-28 14:17:01 +01:00
a9cb1e9b0d
Refactor actions ( #8761 )
...
Closes #8737
- Refactored actions by creating hooks to add the possibility to
register actions programatically.
- Small fixes from #8610 review
- Fixed shortcuts display inside the command menu
- Removed `actionMenuEntriesComponentState` and introduced
`actionMenuEntriesComponentSelector`
2024-11-27 15:08:27 +01:00
8f5515cab3
8414 add records selection context inside the command menu ( #8610 )
...
Closes #8414
https://github.com/user-attachments/assets/a6aeb50a-b57d-43db-a839-4627c49b4155
2024-11-21 17:56:53 +01:00
ac72f8a271
Fix workflow actions not being selectable with arrow keys ( #8576 )
...
https://github.com/user-attachments/assets/c108b60b-030e-4eef-a30f-fab472ea60a9
2024-11-19 16:01:28 +01:00
0d0f7e67a6
Add custom objects to command menu search + use ilike for notes search ( #8564 )
...
In this PR
- Re-introduce previously used search based on "ILIKE" queries for
search on notes since the tsvector search with json text is not working
correctly (@charlesBochet)
- Add search on custom objects in Command Menu bar (closes
https://github.com/twentyhq/twenty/issues/8522 )
https://github.com/user-attachments/assets/0cc064cf-889d-4f2c-8747-6d8670f35a39
2024-11-19 14:11:38 +01:00
d1531aa1b6
8191 command k workflow trigger for selected record ( #8315 )
...
Closes #8191
https://github.com/user-attachments/assets/694da229-cc91-4df2-97a0-49cd5dabcf12
2024-11-05 13:37:29 +01:00
fe2c8bb43b
7339 implement contextual actions inside the commandmenu ( #8000 )
...
Closes #7339
https://github.com/user-attachments/assets/b623caa4-c1b3-448e-8880-4a8301802ba8
2024-10-29 15:10:45 +01:00
0a28c15747
Migrate to twenty-ui - input/button ( #7994 )
...
This PR was created by [GitStart](https://gitstart.com/ ) to address the
requirements from this ticket:
[TWNTY-7529](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7529 ).
---
### Description
- Migrated all button components to `twenty-ui` \
\
`Button`\
`ButtonGroup`\
`ColorPickerButton`\
`FloatingButton`\
`FloatingButtonGroup`\
`FloatingIconButton`\
`FloatingIconButtonGroup`\
`IconButton`\
`IconButtonGroup`\
`LightButton`\
`LightIconButton`\
`LightIconButtonGroup`\
`MainButton`\
\
Fixes twentyhq/private-issues#89
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-10-24 13:20:02 +02:00
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
eccf0bf8ba
Enforce front project structure through ESLINT ( #7863 )
...
Fixes: https://github.com/twentyhq/twenty/issues/7329
2024-10-20 20:20:19 +02:00
1a57dd654f
fix: prevent flashing of search results during input ( #7592 )
...
solves #7511
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-10-14 08:29:54 +02:00
66a483c332
Remove graphql twenty orm feature flag ( #7556 )
...
## Context
IS_QUERY_RUNNER_TWENTY_ORM_ENABLED has been fully launched in 0.31.0,
the feature flag can be safely removed.
Note: Waiting for 0.31.1
2024-10-10 14:52:35 +02:00
5f9435c718
Search ( #7237 )
...
Steps to test
1. Run metadata migrations
2. Run sync-metadata on your workspace
3. Enable the following feature flags:
IS_SEARCH_ENABLED
IS_QUERY_RUNNER_TWENTY_ORM_ENABLED
IS_WORKSPACE_MIGRATED_FOR_SEARCH
4. Type Cmd + K and search anything
2024-10-03 17:18:49 +02:00
c2a8cd0a2f
Support Emails and Phones in Spreadsheet import ( #7312 )
...
This is a fast follow on v0.30 release:
- removing phone (deprecated PHONE field type) search from command menu.
I could have replaced it by a phone (PHONES field type) search but as we
are about to release the new search in v0.31 it does not seem to worse
the investment
- supporting EMAILS and PHONES field types in spreadsheet import
Note: while working on Spreadsheet import I found the code quite complex
and with areas having duplicated code. It does not seem to be a high
priority as I was able to maintain it at a low cost but it's not a
peaceful code surface to navigate!
2024-09-28 16:11:10 +02:00
fe4ca2133d
Fix search on email ( #7094 )
...
following email (text field type) -> emails (emails field type -
composite) migration!
closes https://github.com/twentyhq/twenty/issues/7080
2024-09-17 14:57:34 +02:00
1030ff43d8
Created a specific scroll wrapper context per scroll wrapper and made ScrollTop and ScrollLeft componentStates ( #6645 )
...
@lucasbordeau @charlesBochet
Issue #4826
Could u review this changes.
Let me know what do you think.
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-08-22 18:21:14 +02:00
d23e5f18c3
Added max-height to innerlist to get scrolling behaviour ( #6541 )
...
Fixes #6538
https://github.com/user-attachments/assets/c9ecf96d-9d37-4a91-a08e-e0f882ecea62
---------
Co-authored-by: Félix Malfait <felix.malfait@gmail.com >
2024-08-05 15:09:19 +02:00
ff74623dbb
Add opportunities to search and fix a small bug ( #6476 )
2024-07-31 16:50:16 +02:00
80c0fc7ff1
Activity as standard object ( #6219 )
...
In this PR I layout the first steps to migrate Activity to a traditional
Standard objects
Since this is a big transition, I'd rather split it into several
deployments / PRs
<img width="1512" alt="image"
src="https://github.com/user-attachments/assets/012e2bbf-9d1b-4723-aaf6-269ef588b050 ">
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
Co-authored-by: bosiraphael <71827178+bosiraphael@users.noreply.github.com >
Co-authored-by: Weiko <corentin@twenty.com >
Co-authored-by: Faisal-imtiyaz123 <142205282+Faisal-imtiyaz123@users.noreply.github.com >
Co-authored-by: Prateek Jain <prateekj1171998@gmail.com >
2024-07-31 15:36:11 +02:00
8e35edad30
Migrate domainName field from text type to links type ( #6410 )
...
Closes #5759 .
2024-07-30 11:47:37 +02:00
75e0e1434a
Update UI to Match Figma Specs: Labels, Buttons, Gaps ( #6415 )
...
@Bonapara
Done with issue #5910

---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-28 11:05:10 +02:00
4a67cfa1c3
feat: Revamp navigation bar ( #6031 )
...
closes : #4428
Testing for fetchMoreRecords is pending, along with component tests
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-07-16 14:38:17 +02:00
4c642a0bb8
Text-to-SQL proof of concept ( #5788 )
...
Added:
- An "Ask AI" command to the command menu.
- A simple GraphQL resolver that converts the user's question into a
relevant SQL query using an LLM, runs the query, and returns the result.
<img width="428" alt="Screenshot 2024-06-09 at 20 53 09"
src="https://github.com/twentyhq/twenty/assets/171685816/57127f37-d4a6-498d-b253-733ffa0d209f ">
No security concerns have been addressed, this is only a
proof-of-concept and not intended to be enabled in production.
All changes are behind a feature flag called `IS_ASK_AI_ENABLED`.
---------
Co-authored-by: Félix Malfait <felix.malfait@gmail.com >
2024-07-04 08:57:26 +02:00
e9cf449706
Search dialog fullscreen on mobile ( #5765 )
...
I changed the visibility of the search dialog to make it full screen on
mobile, this should already be ok but I couldn't try it on mobile, so I
just used devtools, if I need to do something else on this PR just tell
me :)
This PR aims to fix : #5746
---------
Co-authored-by: Félix Malfait <felix.malfait@gmail.com >
2024-06-07 17:09:09 +02:00
1c1a055c94
Improve multi word filtering ( #5034 )
...
improve multi word search
closes #4212
closes #3386
2024-04-18 15:46:59 +02:00
b6d0b8a895
refactor: move Checkmark, Avatar, Chip and Tooltip to twenty-ui ( #4946 )
...
Split from https://github.com/twentyhq/twenty/pull/4518
Part of #4766
2024-04-15 12:05:06 +02:00
499e1a09e3
Fix ScrollWrapper inner elements padding ( #4827 )
...
Closes https://github.com/twentyhq/twenty/issues/4824 and
https://github.com/twentyhq/twenty/issues/4788
2024-04-04 19:19:26 +02:00
5d07b6347e
refactor: move Tabler Icon exports to twenty-ui ( #4727 )
...
Split from https://github.com/twentyhq/twenty/pull/4518
2024-04-01 13:15:47 +02:00
cfb0cce9b8
Refactor Views by cleaning the code, relying on apolloCache and improving performances ( #4516 )
...
* Wip refactoring view
* Post merge conflicts
* Fix review
* Add create view capability
* Fix create object missing view
* Fix tests
2024-03-20 14:21:58 +01:00
581dfafe11
Renamed nullable utils into isDefined and isUndefinedOrNull ( #4402 )
...
* Renamed nullable utils into isDefined and isUndefinedOrNull
2024-03-11 14:28:57 +01:00
86c0f311f5
Introduce ComponentState ( #4386 )
...
* Proof of concept ComponentState
* Migrate to createState and createFamilyState
* Refactor
* Fix
* Fix tests
* Fix lint
* Fix tests
* Re-enable coverage
2024-03-09 11:31:00 +01:00
17511be0cf
TWNTY-3794 - ESLint rule: only take explicit boolean predicates in if statements ( #4354 )
...
* ESLint rule: only take explicit boolean predicates in if statements
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Merge main
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Fix frontend linter errors
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Fix jest
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Refactor according to review
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Refactor according to review
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Fix lint on new code
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
2024-03-09 10:48:19 +01:00
b08b361dc0
Command menu search bar ( #4337 )
...
* Improve performance on findMany queries
* Fix
* Fix command menu not emptying the search on toggle
* Fix tests
2024-03-06 14:20:05 +01:00
fb920a92e7
Improved activity editor re-renders ( #4149 )
...
* Refactor task count
* Fixed show page rerender
* Less rerenders and way better title and body UX
* Finished breaking down activity editor subscriptions
* Removed console.log
* Last console.log
* Fixed bugs and cleaned
2024-02-23 17:54:27 +01:00
36a6558289
Feat/activity optimistic activities ( #4009 )
...
* Fix naming
* Fixed cache.evict bug for relation target deletion
* Fixed cascade delete activity targets
* Working version
* Fix
* fix
* WIP
* Fixed optimistic effect target inline cell
* Removed openCreateActivityDrawer v1
* Ok for timeline
* Removed console.log
* Fix update record optimistic effect
* Refactored activity queries into useActivities for everything
* Fixed bugs
* Cleaned
* Fix lint
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-02-20 14:20:45 +01:00
d85209cf4a
feat: filter people in CommandMenu via last name, email and phone ( #3997 )
2024-02-16 09:55:50 +01:00
f68de1a299
Board improvements ( #3694 )
...
* New board improvements
* Improve board
* Fix
2024-01-30 15:24:03 +01:00
511627ccb8
Fix count avatar color + align thread preview items ( #3695 )
...
Fix count avatar and align items
Co-authored-by: Thomas Trompette <thomast@twenty.com >
2024-01-30 15:01:12 +01:00
49f33bbe2e
fix: fix record deletion optimistic effect ( #3683 )
...
* fix: fix record deletion optimistic effect
* fix: fix renamed method after rebase
* Re-add evict
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-01-30 09:33:28 +01:00
2c8c22a979
refactor: make search case-insensitive ( #3388 )
2024-01-11 20:05:45 +01:00
858c294f14
Website improvements 4 ( #3182 )
...
* Add contributor individual page
* Improve mobile menu
* Fix
* Remove yarn.lock from twenty-website
* Add yarn to gitingore
* Fix linter
2023-12-31 10:41:53 +01:00
fd607789f4
Replace all hardcoded core object name by enum ( #3170 )
...
* Replace hardcoded core object name by enum
Signed-off-by: Florian Grabmeier <flo.grabmeier@gmail.com >
* Fix typo
Signed-off-by: Florian Grabmeier <flo.grabmeier@gmail.com >
* Fixed duplicate import
---------
Signed-off-by: Florian Grabmeier <flo.grabmeier@gmail.com >
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2023-12-29 15:11:30 +01:00
fa8a04743c
Fix: Added autoFocus to Input ( #3179 )
2023-12-29 09:57:49 +01:00
f827912cb3
Issue#3150 - Esc and click outside is working to close searchbox ( #3168 )
...
* Issue#3150 - Esc and clickOutside will close Searchbox
* Font size, margin + 'esc' only
Font size changed to theme specific, have a handsome margin to the top right of search box for text "Esc to cancel". Passing 'esc' only to escape.
2023-12-29 09:54:01 +01:00
ffcdace113
2980-Fix: CommandGroup background ( #2985 )
...
* 2980-fix: CommandGroup background
* Box Shadow fix
* suggested color fixes
* Fix related to design dicussion: add border + make everything background secondary
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-19 15:41:58 +01:00
468744298b
Fix hook bug ( #2995 )
...
* Fix hook bug
* Fix
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-14 18:54:23 +01:00