twenty/packages/twenty-ui
Thomas Trompette 756de8a31b
Add connection failed status (#4939)
1/ When the user inputs wrong connection informations, we do not inform
him. He will only see that no tables are available.
We will display a connection failed status if an error is raised testing
the connection

2/ If the connection fails, it should still be possible to delete the
server. Today, since we try first to delete the tables, the connection
failure throws an error that will prevent server deletion. Using the
foreign tables instead of calling the distant DB.

3/ Redirect to connection show page instead of connection list after
creation

4/ Today, foreign tables are fetched without the server name. This is a
mistake because we need to know which foreign table is linked with which
server. Updating the associated query.

<img width="632" alt="Capture d’écran 2024-04-12 à 10 52 49"
src="https://github.com/twentyhq/twenty/assets/22936103/9e8406b8-75d0-494c-ac1f-5e9fa7100f5c">

---------

Co-authored-by: Thomas Trompette <thomast@twenty.com>
2024-04-15 14:09:01 +02:00
..
.storybook Storybook fix dark mode (#4865) 2024-04-11 17:28:12 +02:00
scripts refactor: move @/ui/display/icon to twenty-ui (#4820) 2024-04-12 15:30:48 +02:00
src Add connection failed status (#4939) 2024-04-15 14:09:01 +02:00
.eslintrc.cjs refactor: move Checkmark, Avatar, Chip and Tooltip to twenty-ui (#4946) 2024-04-15 12:05:06 +02:00
jest.config.ts refactor: move @/ui/display/icon to twenty-ui (#4820) 2024-04-12 15:30:48 +02:00
package.json refactor: move Checkmark, Avatar, Chip and Tooltip to twenty-ui (#4946) 2024-04-15 12:05:06 +02:00
project.json chore: add incremental typecheck to twenty-ui (#4947) 2024-04-15 12:15:29 +02:00
README.md Setup the foundation for Twenty UI library. (#4423) 2024-03-13 14:21:18 +01:00
setupTests.ts chore: include react components in twenty-ui test config (#4709) 2024-04-04 12:30:49 +02:00
tsconfig.json chore: add incremental typecheck to twenty-ui (#4947) 2024-04-15 12:15:29 +02:00
tsconfig.lib.json chore: add incremental typecheck to twenty-ui (#4947) 2024-04-15 12:15:29 +02:00
tsconfig.spec.json chore: add incremental typecheck to twenty-ui (#4947) 2024-04-15 12:15:29 +02:00
tsconfig.storybook.json chore: add incremental typecheck to twenty-ui (#4947) 2024-04-15 12:15:29 +02:00
vite.config.ts refactor: move @/ui/display/icon to twenty-ui (#4820) 2024-04-12 15:30:48 +02:00

Twenty UI

This library was generated with Nx.

Building

Run yarn nx build twenty-ui to build the library.

Storybook Server

Run yarn nx start twenty-ui to start the storybook development server on localhost:6006.

Running unit tests

Run yarn nx test twenty-ui to execute the unit tests via Jest.