summon-ui
TypeScript icon, indicating that this package has built-in type declarations

5.2.0 • Public • Published

Summon UI

Summon UI project contains the common Front-end code of all Summon products. It's a Storybook project that contains our UI components as well as UI Providers for branding theming, helpers and more.

Through time we will be decoupling our UI from all our different products (user portal, client portal, etc) and migrating it in here.

It will allow us

  • To maintain common components across projects in a single place
  • To have a proper scalable design system and a complete storybook

Tech Stack

ReactJS & Typescript: We use React and we write in Typescript.

UI

MANTINE UI: https://mantine.dev/

Mantine is our Front-end library. We use Mantine components, as well as theme/brand handling. UI colors are based in Mantine color system.

We avoid writing styles, Inline styles are forbidden :) Instead we use Mantine components and their props. We use css modules.

If there is some component to be styled, there is a super powerful way to do this globally for components in the current theme.

If there are some classNames that need to be added to a component we use Tailwind classes passed via prop.

Mantine also offer a vast number of hooks and other functions that have proven to be very useful

TAILWIND CSS: https://tailwindcss.com/

STORYBOOK: https://storybook.js.org/

The Summon UI project is a Storybook project and we use Chromatic (https://www.chromatic.com/) for CI.

UNIT TESTING

JEST: https://jestjs.io/

RTL (React Testing Library): https://testing-library.com/

Development Process

PRs

  • We open PRs to introduce new code in our main branch
  • A PR shall be approved by 1 people before merge

Code

We like very much our code to be clean, free from Typescript errors, free from format errors, free from test errors. For that:

  • We use linter and prettier.
  • We have husky and lint-staged
  • We use commitlint

But we also care a lot about our git log. For that:

We also use NVM so we all use the same Node JS version

Editor/IDE

If you feel comfortable with it, we recommend to use VSCode as having linter and prettier working is pretty straight forward. But of course, this is a free choice.

As long as your editor/IDE allows you to follow all the standards described above you can create your code in whatever way you want

Local Testing Procedure

  1. Generate the dist folder in summon-ui by running pnpm build.

  2. Adjust the package in the target repository to reference your local changes:

    "summon-ui": "file:..//summon-ui"
  3. Install the updated dependency by running pnpm install.

Publishing

Whenever you upgrade the version in the main branch, a new package will be automatically published.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.2.056latest

Version History

VersionDownloads (Last 7 Days)Published
5.2.056
5.1.267
5.1.10
5.1.00
5.0.00
4.0.10
4.0.00
3.6.10
3.5.00
3.3.20
3.3.10
3.3.00
3.2.10
3.2.00
3.1.00
3.0.00
2.0.00
1.0.10
1.0.00
0.34.00
0.33.30
0.33.20
0.33.10
0.33.00
0.32.00
0.31.20
0.31.10
0.31.00
0.30.012
0.29.10
0.29.00
0.28.00
0.27.20
0.27.10
0.27.00
0.26.10
0.26.00
0.25.20
0.25.10
0.25.00
0.24.00
0.23.00
0.22.10
0.22.00
0.21.014
0.19.190
0.19.180
0.19.170
0.19.160
0.19.150
0.19.140
0.19.130
0.19.120
0.19.110
0.19.100
0.19.90
0.19.80
0.19.70
0.19.60
0.19.50
0.19.40
0.19.30
0.19.20
0.19.10
0.19.00
0.18.00
0.17.30
0.17.20
0.17.10
0.17.00
0.16.20
0.16.10
0.16.00
0.15.00
0.14.00
0.13.50
0.13.40
0.13.30
0.13.20
0.13.10
0.13.00
0.12.90
0.12.80
0.12.70
0.12.60
0.12.50
0.12.30
0.12.20
0.12.10
0.12.00
0.11.10
0.11.00
0.10.00
0.9.10
0.9.00
0.8.10
0.8.00
0.7.00
0.6.00
0.5.10
0.5.00
0.4.10
0.4.00
0.3.00
0.2.00
0.1.00
0.20.00

Package Sidebar

Install

npm i summon-ui

Weekly Downloads

139

Version

5.2.0

License

MIT

Unpacked Size

42.1 MB

Total Files

2642

Last publish

Collaborators

  • dcentn