graphql-engine/frontend
Daniele Cammareri 4a269b84fc chore: remove isProLiteConsole function
This PR reports back to main the changes discussed here: https://hasurahq.slack.com/archives/CKATHV1J7/p1685348635635059?thread_ts=1684879014.661199&cid=CKATHV1J7

TL;DR
- we created a isProConsole function and used it in isDynamicDBRoutingEnabled. We merged this on main
- we opened a cherry pick PR
- we figured out that the isProConsole misses the license key validation feature, so the function was not doing what the function name suggested.
- in the cherry pick PR we removed the generic isProConsole function (whose name was misleading) and replaced it with an inline console type check in the isDynamicDBRoutingEnabled. (the console type-only check is ok in that particular feature)

Since the last point happened only on the cherry-pick PR, we opened this PR to do the same on the main branch.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9368
GitOrigin-RevId: e358862e479ac2efa7268787ab2ca32d5a0994b5
2023-06-13 08:22:26 +00:00
..
.husky frontend: house keeping 2023-03-21 08:52:51 +00:00
.storybook feat: add soft validation and 3.1 support 2023-05-31 11:09:50 +00:00
.vscode [feature branch] EE Lite Trials 2023-04-05 08:59:09 +00:00
.yarn/releases frontend: switch to yarn berry 2023-05-05 08:57:54 +00:00
apps console: fix action with transform e2e tests 2023-06-07 11:42:10 +00:00
docker console: adjust docker setup to use template for compose file 2023-05-17 18:37:54 +00:00
docs frontend: introduce tags system for libs 2023-05-09 10:43:51 +00:00
libs chore: remove isProLiteConsole function 2023-06-13 08:22:26 +00:00
static frontend: apply prettier 2023-01-25 20:55:24 +00:00
tools feat: add soft validation and 3.1 support 2023-05-31 11:09:50 +00:00
types frontend: sync nx codebase again 2023-01-12 18:18:38 +00:00
.build.env frontend: switch to yarn berry 2023-05-05 08:57:54 +00:00
.editorconfig frontend: initial nx generation 2022-08-05 18:53:54 +00:00
.eslintignore frontend: update nx to latest 15 2023-02-28 19:42:51 +00:00
.eslintrc.json storybook: Migrate stories from CSF-2 to CSF-3 2023-05-25 19:08:20 +00:00
.gitattributes frontend: switch to yarn berry 2023-05-05 08:57:54 +00:00
.gitignore frontend: switch to yarn berry 2023-05-05 08:57:54 +00:00
.lintstagedrc.mjs frontend: change lint staged to only show warnings 2023-04-03 10:53:20 +00:00
.npmrc platform: fix graphql codegen in action and graphiql editor 2022-10-18 14:24:14 +00:00
.nvmrc platform(nx): initial oss migration 2022-08-18 19:37:56 +00:00
.prettierignore frontend: apply prettier 2023-01-25 20:55:24 +00:00
.prettierrc ci: introduce frontend related ci 2022-12-16 14:37:27 +00:00
.yarnrc.yml frontend: switch to yarn berry 2023-05-05 08:57:54 +00:00
babel.config.json frontend: initial nx generation 2022-08-05 18:53:54 +00:00
control-plane-graphql-codegen.yml schema-registry: fix lux endpoint and misc fixes 2023-06-01 14:56:37 +00:00
custom-webpack.config.js frontend: remove vendor source maps 2023-04-11 16:15:54 +00:00
frontend.code-workspace frontend: pre sync console into nx 2023-01-23 22:22:02 +00:00
jest.config.ts frontend: introduce tags system for libs 2023-05-09 10:43:51 +00:00
jest.preset.js fix: data type handling for mysql 2023-04-18 14:16:53 +00:00
nx.json frontend: introduce tags system for libs 2023-05-09 10:43:51 +00:00
package.json Integrating launch darkly sdk to console 2023-05-31 20:30:11 +00:00
README.md frontend: Create a Cypress project for the EE Console 2023-02-07 16:16:20 +00:00
snapshots.js Ensure all onboarding exit states are captured as details in the onboarding table 2023-05-12 07:44:48 +00:00
tailwind.config.js Fix monitoring tab 2023-05-24 09:07:40 +00:00
tsconfig.base.json frontend: upgrade to storybook 7 2023-05-09 17:41:28 +00:00
yarn.lock Integrating launch darkly sdk to console 2023-05-31 20:30:11 +00:00

Frontend

This project was generated using Nx.

Visit the Nx Documentation to learn more about it.

This frontend monorepo contains the Hasura Console, in all the possible modes.

Last import 2023-01-12

Nx Console

It's highly recommended to install the Nx Console for VSCode, IntelliJ or Neovim.

It will allow you to have all of the Nx commands usable via UI, have an embedded view of the NX graph right in your editor, and much more.

Hasura Console

The Hasura Console is an admin dashboard to manage the connected database and to try out GraphQL APIs. It is a React application bundled with Webpack, and the state is managed mostly using Redux.

Table of contents

How to

Install the dependencies

Run npm install.

Development server

Run nx serve console-ce (requires an .env file) for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run nx build console-ce to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run nx test console-ce to execute the unit tests via Jest.

Run nx affected:test to execute the unit tests affected by a change.

Running end-to-end tests

Run nx e2e console-ce-e2e --watch (requires an .env file) to open the Cypress UI and locally working with it.

Run nx e2e console-ce-e2e (requires an .env file) to execute the end-to-end tests via Cypress.

Run nx affected:e2e (requires an .env file) to execute the end-to-end tests affected by a change.

Understand your workspace

Run nx graph to see a diagram of the dependencies of your projects.