Commit Graph

1869 Commits

Author SHA1 Message Date
Jérémy M
cf334ada0e
feat: exceptions handlers (#2855)
* feat: wip exception handlers

* feat: exception capturer

* fix: rename exception-capturer into exception-handler

* fix: remove unused variable
2023-12-08 10:18:50 +01:00
Charles Bochet
6c83953633
Fix Infinite loop on invite route (#2866) 2023-12-07 19:26:07 +01:00
Weiko
5efc2f00b9
Sync metadata generate migrations (#2864)
* Sync Metadata generates migrations

* add execute migrations

* fix relations + add isActive on creation

* fix composite fields migration

* remove dependency

* use new metadata setup for seed-dev

* fix rebase

* remove unused code

* fix viewField dev seeds

* fix isSystem
2023-12-07 19:22:34 +01:00
Matheus Sanchez
590912b30f
feat: Adding className as a prop (#2847)
* Adding className as a prop to use emotion

* Adding className to feedback and input components
2023-12-07 18:48:37 +01:00
Jérémy M
d70f8deeec
Fix/enum validation (#2863)
* fix: SELECT enum can have a color key

* fix: "findOneOrFail" of undefined

* feat: alter column migration store previous metadata informations

* fix: enum validation extra keys
2023-12-07 17:04:49 +01:00
Lucas Bordeau
145b432dc6
Moved pure UI object fields to ui folder (#2861)
* Moved pure UI object fields to ui folder

* Moved pure UI object fields to ui folder 2
2023-12-07 16:27:39 +01:00
martmull
4fecf6d8b9
Fix api rest (#2860)
* Throw an error if workspace id has no object

* Request only plurial object names

* Fix tests

* Fix query

* Handle graphql errors

* Fix comment
2023-12-07 14:10:24 +01:00
Thaïs
62fa55eae6
feat: add Settings/Accounts Settings section (#2853)
Closes #2818
2023-12-07 12:43:38 +01:00
Lucas Bordeau
a8ecc23cbe
Chore/move records related to record folder (#2859)
* WIP

* Finished multi select filter

* Cleaned console log

* Fix naming

* Fixed naming

* Moved RelationPicker folder

* Moved EntitySelect components

* Moved story

* Moved RelationPicker non component folders

* Moved everything else
2023-12-07 12:43:10 +01:00
bosiraphael
ef536ebb06
2809 create connected account data model (#2856)
* create connectedAccount model

* finished

* fix comma
2023-12-07 12:32:49 +01:00
martmull
3cd1ec21e6
Throw an error if workspace id has no object (#2857)
* Throw an error if workspace id has no object

* Request only plurial object names

* Fix tests

* Fix query

* Handle graphql errors
2023-12-07 12:32:29 +01:00
Lucas Bordeau
06936c3c2a
Feat/multi relation filter (#2858)
* WIP

* Finished multi select filter

* Cleaned console log

* Fix naming

* Fixed naming
2023-12-07 12:08:48 +01:00
Kanav Arora
b2912f4b4b
2795-fix(front): ObjectNamePlural added as Page Header title (#2852)
* 2795-fix(front): ObjectNamePlural added as Page Header title

* 2795-fix(front): Icon fix

* fix linting errors

---------

Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
2023-12-07 11:13:32 +01:00
martmull
b72d6a9d9d
Rest api updates (#2844)
* Fix typo

* Fix ':' parsing

* Add '' for strings

* Add 'in', 'is', 'neq', 'like', 'ilike', 'startWith' comparators

* Fix test

* Move mapFieldMetadataToGraphqlQuery to util

* Move filter utils to utils

* Split code into factories

* Fix order by parser

* Reorganize files

* Add tests for limit parser

* Add tests for last_cursor parser

* Add tests for last_filter parser

* Move filter utils to factory

* Update filter parser tests

* Code review returns

* Fix tests

* Remove LOCAL_SERVER_URL

* Simplify and fix filter string parser

* Rename parser to input

* Add new lines for more readability

* Use unary plus

* Use nextjs errors

* Use destructuring

* Remove useless else

* Use FieldMetadata types

* Rename enums

* Move methods to utils

* Lint project

* Use singular name if id provided

* Handle typing

* Handle typing

* Minor update

* Simplify order by parser

* Lint

* handle missing conjunction

* filter parser update
2023-12-06 16:55:42 +01:00
Charles Bochet
076a67b0e2
Fix optimistic rendering issues on views (#2851)
* Fix optimistic rendering issues on views

* Remove virtualizer
2023-12-06 16:55:09 +01:00
Jérémy M
93decaceab
fix: FieldMetadata default value and options better validation (#2785)
* fix: wip better field metadata validation

* fix: remove files

* fix: default value and options validation

* fix: small fix

* fix: try to limit patch

* fix: tests

* Update server/src/metadata/field-metadata/validators/is-field-metadata-options.validator.ts

Co-authored-by: Weiko <corentin@twenty.com>

* fix: lint

* fix: standard fields update security

---------

Co-authored-by: Weiko <corentin@twenty.com>
2023-12-06 15:19:23 +01:00
gitstart-twenty
b09100e3f3
Implement table record virtualizer back (#2839)
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Thiago Nascimbeni <tnascimbeni@gmail.com>
2023-12-06 14:20:00 +01:00
Jérémy M
9df83c9a5a
feat: better server lint (#2850)
* feat: add stylistic eslint plugin

* feat: add missing line return

* feat: secure line-break style

* feat: disallow break before else

* feat: line between class members

* feat: better new line lint rule
2023-12-06 12:19:00 +01:00
Thaïs
e388d90976
fix: fix Pipeline Step title and color update in board (#2849)
Fixes a bug where editing a pipeline step's title or color in the board changes the column's label to the column's uuid and the color to gray.
2023-12-06 12:06:46 +01:00
Thaïs
f8ddf7f32c
fix: several Navigation Bar and Drawer fixes (#2845)
* fix: several Navigation Bar and Drawer fixes

Fixes #2821

- Fix navigation drawer animations
- Fix navigation bar positioning
- Do not display navigation drawer collapse button on mobile
- Refactor code and rename componentst

* Fix storybook test

* fix: fix NavigationDrawerHeader elements space-between

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-06 10:36:10 +01:00
Charles Bochet
69f48ea330
Fix optimistic rendering issues on board and table (#2846)
* Fix optimistic rendering issues on board and table

* Remove dead code

* Improve re-renders of Table

* Remove re-renders on board
2023-12-05 22:29:27 +01:00
Andrey Kud
976e058328
fix: avoid create custom entities with the same name (#2791)
* fix: avoid create custom entities with the same name

* fix: use exact spelling

* fix: validate input as is
2023-12-05 22:24:16 +01:00
Paula Perdomo
1616ea6c4f
Bug Fix: Allows user to press 'Enter' to navigate through forms (#2840)
* Adding TextInput onKeyDown prop for detecting enter key on signup/login/onbaording forms

* Adding onKeyDown for password field
2023-12-05 14:28:12 +01:00
Weiko
6d4ad6ec18
Sync standard object metadata (#2807)
* Sync standard object metadata

* remove debug logging

* remove unused func

* fix comments

* fix empty objectsToDelete list
2023-12-05 14:10:50 +01:00
bosiraphael
2dcce31ede
Create feature flag and use hook to display account tab conditionally (#2843)
create feature flag and use hook to display account tab conditionally
2023-12-05 12:23:18 +01:00
Ruslan
72d696ad1b
Fixing fields that got mixed up (#2207) (#2842)
Fixing fields that got mixed up
2023-12-05 12:22:21 +01:00
bosiraphael
95a1cfeec3
2426 timebox refactor board with the new scope architecture (#2789)
* scoped states: wip

* scoped states: wip

* wip

* wip

* create boardFiltersScopedState and boardSortsScopedState

* wip

* reorganize hooks

* update hooks

* wip

* wip

* fix options dropdown

* clean unused selectors

* fields are working

* fix filter an sort

* fix entity count

* rename hooks

* rename states

* clean unused context

* fix recoil scope bug

* objectNameSingular instead of objectNamePlural
2023-12-05 12:15:20 +01:00
Thaïs
5c0ad30186
feat: add Status component (#2838)
Closes #2820
2023-12-05 11:07:51 +01:00
Thaïs
b4323f67a5
feat: create Settings/Accounts page (#2837)
Closes #2815
2023-12-05 10:51:25 +01:00
martmull
2c211c1a2e
Fix zapier validation team request (#2806) 2023-12-04 13:36:35 +01:00
brendanlaschke
40b4e9f8e9
Redesign Timeline (#1772)
* Timeline redesign for desktop and mobile
* Fixed nowrap on desktop

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-12-04 11:37:25 +01:00
Nimra Ahmed
2171eff1a0
minor improvements to ui component docs (#2805)
* minor improvements to ui component docs

* polish queue.mdx, remove duplicate icon
2023-12-04 08:32:35 +01:00
brendanlaschke
de2f7212d1
Attachments add more file extensions (#2803)
- add more file extensions
2023-12-03 23:13:53 +01:00
Charles Bochet
7e7bd6b9e7 Prevent setting addition from being broken 2023-12-03 12:01:37 +01:00
Ruslan
fd9467c54d
feat: Add seed people and companies data for demo environment (#2207) (#2307)
* feat: seed companies and people data

* init DataSeedDemoWorkspaceCommand to handle:
- seedCoreSchema()
- seedMetadataSchema()

* feature: Seed workspace with demo data

- delete workspace
- initDemo() with prefillWorkspaceWithDemoObjects()

* added companies-demo.ts with data
* added people-demo.ts with data

* added workspaceId to seedFeatureFlags()

* delete previous CoreSchema before seedCoreSchema

* added workspaceMemberPrefillData

* getDemoWorkspaces() to get DEMO_WORKSPACES from config

* defined DemoSeedUserIds

- created core/demo/ to keep modified seedCoreSchema() there
- DemoSeedUserIds with new set of users and Ids

* generateOpportunities() to seed demo opportunities (limit = 50)

* Code review and fixes

* Fix

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-02 18:37:45 +01:00
Kanav Arora
31f29582d0
2727-fix(front): CommandMenu and KeyboardMenu invoke handled (#2783)
* 2727-fix(front): CommandMenu and KeyboardMenu invoke handled

* Fix Command Menu and bug on metadata re-render

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-01 23:45:42 +01:00
Saba Shavidze
fec8223ab8
feat: improve mobile display by tab bar and other changes (#2304)
* feat: improve mobile display by tab bar and other changes

* fix: remove unused declaration in mobile navigation

* fix: update desktop navbar stories title

* fix: retrieve old titles for desktop-navbar stories

* fix: styles, manage active tabs

* fix: styles, manage active tabs

* fix: styles, manage active tabs

* fix: styles, manage active tabs

* fix: styles, manage active tabs

* fix: styles, manage active tabs

* fix: styles, manage active tabs

* fix: styles, manage active tabs

* fix: update logic for tab bar menu icons

* fix: remove Settings icon for mobile

* fix: resolve comments in pl

* feat: rework mobile navigation bar

* Fix

* Fixes

---------

Co-authored-by: Thaïs Guigon <guigon.thais@gmail.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-01 23:16:34 +01:00
Lucas Bordeau
74b077f3ca
Feat/error boundaries (#2779)
* - Changed to objectNameSingular always defined
- Added ErrorCatchAll

* - Added mock mode for companies logged out
- Added a proper ErrorBoundary component

* Removed react-error-boundary

* Implemented proper ErrorBoundary

* Fixes

* Change strategy about mocks

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-01 22:06:38 +01:00
pokeghost
a301f451f9
fix: Remove "pen icon" on Team member field #2384 (#2549)
fix: Remove "pen icon" on Team member field

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-01 18:48:15 +01:00
Umar Abid
5720312249
[FEAT-2496] Add Customize fields button in new column menu (#2683)
* feat: add customize-fields btn in new column menu

* fix: refactor onClick

* Add separator

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-01 17:48:38 +01:00
Kanav Arora
9dc997e9ac
2503-feat(front): hover icons added; commandmenu open added (#2622)
* 2503-feat(front): hover icons added; commandmenu open added

* 2503-feat(front): LightIconButtonGroup added; BoardColumn suggested fixes

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-01 16:49:18 +01:00
Charles Bochet
8bd567c2b4 Fix post merge conflict on Rating field hook 2023-12-01 16:29:49 +01:00
martmull
97f154ef2c
Add rest api (#2757)
* Add a wildcard get route

* Call api from api

* Add a query formatter

* Use headers to authenticate

* Handle findMany query

* Add limit, orderBy and lastCursor parameters

* Add filter parameters

* Remove singular object name from valid requests

* Update order_by format

* Add depth parameter

* Make /api/objects/ID requests work

* Fix filter

* Add INTERNAL_SERVER_URL env variable

* Remove useless comment

* Change bath api url to 'rest'

* Fix limit parser

* Handle full filter version

* Improve handle full filter version

* Continue rest api

* Add and(...) default behaviour on filters

* Add tests

* Handle 'not' conjunction for filters

* Check filter query

* Format values with field metadata item type

* Handle nested filtering

* Update parsing method

* Check nested fields

* Add delete query

* Add create query

* Rename methods

* Add update query

* Update get one object request

* Fix error handling

* Code review returns
2023-12-01 16:26:39 +01:00
Mahendra Kumar
f405b77cea
add message queue integration (#2491) 2023-12-01 16:09:04 +01:00
Thaïs
93e4f79551
feat: rename Probability field type to Rating and update preview (#2770)
Closes #2593
2023-12-01 15:31:01 +01:00
Jérémy M
474db1e142
fix: nested relations not working and relations not prefixed (#2782)
* fix: nested relations n+n

* fix: prefix custom relations

* fix: only apply targetColumnMap when it's a custom object

* fix: force workspaceId to be provided

* fix: toIsCustom -> isToCustom

* fix: remove console.log
2023-12-01 15:26:48 +01:00
Jérémy M
6e6f0af26e
feat: Adding support for new FieldMetadataType with Postgres enums (#2674)
* feat: add enum type (RATING, SELECT, MULTI_SELECT)

feat: wip enum type

feat: try to alter enum

feat: wip enum

feat: wip enum

feat: schema-builder can handle enum

fix: return default value in field metadata response

* fix: create fieldMedata with options

* fix: lint issues

* fix: rename abstract factory

* feat: drop `PHONE` and `EMAIL` fieldMetadata types

* feat: drop `VARCHAR` fieldMetadata type and rely on `TEXT`

* Revert "feat: drop `PHONE` and `EMAIL` fieldMetadata types"

This reverts commit 3857539f7d.
2023-11-30 15:24:26 +01:00
Mithra
c2131a29b8
Renaming "Experience" to "Appearance" (#2776)
* refining settings

* Delete .idea/workspace.xml

* Update .gitignore
2023-11-30 14:41:03 +01:00
gitstart-twenty
1822370389
feat: add missing updateMany and deleteMany resolvers on flexible backend (#2758)
* feat: add missing updateMany and deleteMany resolvers on flexible backend

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Refactor according to review

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Update return types for `createMany`, `updateMany` and `deleteMany`

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

---------

Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
2023-11-30 13:13:08 +01:00
Charles Bochet
1ba062f40c Update documentation database setup 2023-11-30 12:53:52 +01:00