Sammy Teillet a93c92c65c Sammy/t 131 i see a ascending descending option in (#73)
* refactor: use safe css selector

* feature: onclick update the order option

* feature: set option in the dropdown

* feature: display icon for sort options

* refactor: indent key so react does not complain of conflicting keys

* feature: align icon and text

* feature: fix size of icon to align text

* feature: create design for TopOption in dropdown

* refactor: set font weight in style

* feature: finalise design of TopOption

* refactor: rename option to sort

* refactor: remove order from the sortType

* refactor: move sort mapper in service

* test: selection of Descending in SortDropdownButton

* refactor: fix styme-component warning

* feature: add sorting by people

* refactor: set SortFields types for tables

* feature: add sort by company

* refactor: rename sortFields to singular

* refactor: rename option to SortDirection
2023-04-25 16:29:08 +02:00
2023-04-20 11:51:04 +02:00
2023-04-20 22:57:55 +02:00
2023-04-24 17:36:28 +02:00
2023-04-24 18:04:55 +02:00
2023-04-11 13:55:45 +02:00
2023-04-12 15:54:16 +02:00
2023-04-21 09:33:57 +02:00

Twenty

Welcome to Twenty documentation!

High Level Overview

Twenty development stack is composed of 3 different layers

  • front: our frontend React app
  • hasura: our graphql engine exposing our database and server
  • server: our backend that contain endpoint, crm logic, scripts, jobs...
  • storages: postgres

Setup env variables and npmrc variables

  1. cp ./infra/dev/.env.example ./infra/dev/.env and fill with values
  2. cp ./front/.npmrc.example ./front/.npmrc and fill with values

We also provide a containerized environment with Docker and orchestrated with docker-compose in case it is easier for you. This install will also provision a postgres container out of the box.

Step 1: pre-requesites

Make sure to have the latest Docker and Docker-compose versions installed on your computer. You can run docker-compose --version to check if you have docker-compose installed and docker --version to check if you have docker installed.

Step 2: docker build

Build docker containers.

The whole setup experience is happening in infra/dev folder. Make sure to be in this folder:

cd infra/dev
make build
make up

Once this is completed you should have:

Step 3: IDE setup

If you are using VSCode, please use the Dev Containers extension to open the project in a container. This will allow you to run Visual Studio on top of the docker container. This will allow you to run the project without having to install node on your machine.

Note

If you are using Docker install, make sure to ssh in the docker container during development to execute commands. You can also use Makefile to help you

Development workflow

Front tests

Run tests: make front-test Run coverage: make front-coverage Run storybook: make front-storybook

Hasura development

Open hasura console: make hasura-console Do your changes in hasura console on http://localhost:9695 Commit your changes in git

Description
No description provided
Readme AGPL-3.0 324 MiB
Languages
TypeScript 98.7%
MDX 1%