Commit Graph

259 Commits

Author SHA1 Message Date
Julian@Hasura
4062d5f515 console: add clone permissions to GDC permissions tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7620
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
GitOrigin-RevId: 0e94fe8f6dc4233233a3c038c0d48a3f6c4dab50
2023-02-07 05:18:05 +00:00
Nicolas Inchauspe
825e5206b4 console: fix telemetry notification reappearing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7781
GitOrigin-RevId: 33c7873f8f9ff950cb7d45adf7b26b352f7fe1ae
2023-02-06 09:30:24 +00:00
Sameer Kolhar
c27dceb1df console: fix issue with Badge component for Check DB Latency on Data Manager
[CPS-737]: https://hasurahq.atlassian.net/browse/CPS-737?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7804
GitOrigin-RevId: b3b90fd3542d95d0560ded43766d57f81b4e3416
2023-02-06 07:59:38 +00:00
Stefano Magni
1f469b279b frontend: Clear the slow or flaky Console CE E2E tests
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7779
GitOrigin-RevId: fda5d58c5739f1069fc5bab94f8bbde1961b7e17
2023-02-05 06:53:50 +00:00
Stefano Magni
03bf7e8c6f console: programmaticallyTraceError logs to the Console too
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7714
GitOrigin-RevId: 7307093f9db4a871a43011705b42c06332c57d18
2023-02-03 14:46:41 +00:00
Julian@Hasura
40c25057ba Feature: Delete rows hook
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7546
Co-authored-by: Julian <843342+okjulian@users.noreply.github.com>
Co-authored-by: Sean Park-Ross <94021366+seanparkross@users.noreply.github.com>
Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com>
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
Co-authored-by: Nicolas Beaussart <7281023+beaussan@users.noreply.github.com>
GitOrigin-RevId: 9efcea1d9babe9977bb578c73e638a981630aaf7
2023-02-02 20:52:09 +00:00
Nicolas Inchauspe
737071a760 console: fix notifications alignment and spacing
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7769
GitOrigin-RevId: cfa6fb1cf26e5b0287ccc87a02997dc5a78a1719
2023-02-02 16:50:07 +00:00
Nicolas Beaussart
0947e7390c ci: setup chromatic to run on new workspace
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7740
GitOrigin-RevId: 56764d7009268592e6580c13d70237af10a826eb
2023-02-02 10:04:09 +00:00
Vijay Prasanna
c663cb9879 feature (console): streamlined UI for DB-to-X relationships
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7678
Co-authored-by: Nicolas Beaussart <7281023+beaussan@users.noreply.github.com>
GitOrigin-RevId: 2bc3e26efa6037341157e01c27aca8e532353f36
2023-02-01 18:15:57 +00:00
Vijay Prasanna
80a3c63f32 fix (console): edit connection UI bug with default values
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7744
GitOrigin-RevId: 3337c7e7a1930d829949d0ecc7bfb8b63ac44682
2023-02-01 11:26:12 +00:00
Varun Dey
2508b35c90 console: Pass hasura project name as args for neon create DB mutation
[GT-381]: https://hasurahq.atlassian.net/browse/GT-381?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7409
Co-authored-by: Mohd Bilal <24944223+m-Bilal@users.noreply.github.com>
Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com>
Co-authored-by: Nicolas Inchauspe <710410+nicoinch@users.noreply.github.com>
Co-authored-by: Stefano Magni <173663+NoriSte@users.noreply.github.com>
Co-authored-by: Divi <32202683+imperfect-fourth@users.noreply.github.com>
Co-authored-by: paritosh-08 <85472423+paritosh-08@users.noreply.github.com>
Co-authored-by: ananya-2410 <107847554+ananya-2410@users.noreply.github.com>
Co-authored-by: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com>
Co-authored-by: Philip Lykke Carlsen <358550+plcplc@users.noreply.github.com>
Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com>
Co-authored-by: Puru Gupta <32328846+purugupta99@users.noreply.github.com>
Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com>
Co-authored-by: Abhijeet Khangarot <26903230+abhi40308@users.noreply.github.com>
Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com>
GitOrigin-RevId: f900d38a71a4306b208bc0cf406c109c3b7c028d
2023-01-31 20:31:22 +00:00
Nicolas Inchauspe
a7af427d38 console: fix remove useless warning
[PLAT-411]: https://hasurahq.atlassian.net/browse/PLAT-411?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7737
GitOrigin-RevId: 2753d7cdb09e9651361de702f8b1bca210cf803d
2023-01-31 19:45:30 +00:00
Luca Restagno
ab088cad25 feat: filter existing relstionships from suggested relationships
[GCU-20]: https://hasurahq.atlassian.net/browse/GCU-20?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7705
GitOrigin-RevId: 4e9eb492a7438923e7a117bc9327929561310350
2023-01-31 15:30:52 +00:00
Nicolas Beaussart
53a3803ba4 frontend: setup asset loader for local dev
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7691
GitOrigin-RevId: 4e3926b4105f0bc15dce75b154f6ef60292c5074
2023-01-31 14:56:47 +00:00
Stefano Magni
051f193b86 console: Add a beta badge on OpenTelemetry
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7713
GitOrigin-RevId: 3d7689c8d34096850b022a1b617ffe1d046f9b8c
2023-01-30 19:11:09 +00:00
Luca Restagno
9882ddb2a5 console: fix edit postgres row with generated always (close #9389)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7708
GitOrigin-RevId: a8e2e8aa14c1e88ec0f5f587b533fa3e4da900c1
2023-01-30 15:12:15 +00:00
Aravind K P
a0c5e1669b cli: support ee-lite in CLI console
Closes https://hasurahq.atlassian.net/browse/PLAT-351

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7256
Co-authored-by: Sooraj <8408875+soorajshankar@users.noreply.github.com>
Co-authored-by: Manas Agarwal <5352361+manasag@users.noreply.github.com>
GitOrigin-RevId: 5096e76f11ab2860fae9fa7cd71c9afaead20cc0
2023-01-30 09:28:28 +00:00
Varun Dey
16bde2ef34 console: User login with additional scopes for neon API v2
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7655
GitOrigin-RevId: 7c6971c211f6666d229f51cc5455a6dccde7dda0
2023-01-28 13:43:03 +00:00
Nicolas Beaussart
77a1c71e06 ci: setup smoke test for the ee console
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7696
GitOrigin-RevId: 6cefc9f6a4e9a88457c8890bd7e37fbfe2aafa86
2023-01-27 17:13:20 +00:00
Stefano Magni
f5ea2e6b5a console: Add the OpenTelemetry settings
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7665
GitOrigin-RevId: 9d150ec5137f8c2f8d1f0a921aa4a686720070a1
2023-01-27 00:45:53 +00:00
Stefano Magni
11294d2876 console: Fix the E2E tests in the frontend directory
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7661
GitOrigin-RevId: 3877a3b001da24e7e7db90fe51973695f5bb4c1e
2023-01-26 11:19:32 +00:00
Vijay Prasanna
6f32cc20c9 feature (console): add component that allows user to map RS fields to table columns
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7644
Co-authored-by: Nicolas Beaussart <7281023+beaussan@users.noreply.github.com>
GitOrigin-RevId: 496a64abda035392fbad0a055d8d3bdb63bdbb84
2023-01-26 10:23:16 +00:00
Matthew Goodwin
094f35666f refactor (console): Custom field names modal [GDC-654] [NX Migration Redo]
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7666
GitOrigin-RevId: 914ed0935faa266716bdcd8ef0eca0304e5a0b0d
2023-01-26 00:00:57 +00:00
Nicolas Beaussart
09c9cf8b46 frontend: apply prettier
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7668
GitOrigin-RevId: 0ed901780092994ae40c2c57557c5854812a91b2
2023-01-25 20:55:24 +00:00
Luca Restagno
7ff73d34c6 console: fix handling of bigint arrays
[NDAT-469]: https://hasurahq.atlassian.net/browse/NDAT-469?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7649
GitOrigin-RevId: 6c30a3a18db2e24786a540aebb8e6af61a4ac18b
2023-01-25 14:47:14 +00:00
Nicolas Beaussart
2c3d91b033 frontend: switch cli and server to use the new nx assets
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7533
GitOrigin-RevId: 8adde90a90115c2782dc77b9f30297499f22acab
2023-01-25 12:07:01 +00:00
Nicolas Beaussart
152cc6151c frontend: modify the code to have it work in nx
GitOrigin-RevId: e564d86de44bf81e708ca2c40bb505dec01076ce
2023-01-25 11:24:54 +00:00
Nicolas Beaussart
bdcbda5f54 frontend: migrate console to the new frontend folder
GitOrigin-RevId: bde5a5e36ff0093d141f666b9183caafefa39cf8
2023-01-25 11:24:38 +00:00
Nicolas Beaussart
6203a280db frontend: prepare nx migration by removing the old copied files
GitOrigin-RevId: 07e74dcd87e84610efab22c1645d82db378df31f
2023-01-25 11:24:27 +00:00
Nicolas Beaussart
57e62c3d40 frontend: fix storybook not running
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7646
Co-authored-by: Nicolas Inchauspe <710410+nicoinch@users.noreply.github.com>
GitOrigin-RevId: cc26aff8d9241bfbec1c019da9f681ec62a76ea3
2023-01-24 17:17:33 +00:00
Nicolas Beaussart
9e04135f98 frontend: pre sync console into nx
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7638
GitOrigin-RevId: 8866a609e83e6330786ddc741afcba9d45e1f42e
2023-01-23 22:22:02 +00:00
Erik Magnusson
e86d24b1fb console: add root field permissions to GDC permissions tab
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7536
Co-authored-by: Matt Hardman <28978422+mattshardman@users.noreply.github.com>
GitOrigin-RevId: eaa788e45e12900ac5237c4fb1c98d19f64778ed
2023-01-23 11:29:06 +00:00
Nicolas Beaussart
63d4f97f3f frontend: make the scriptLoader works with gz files
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7616
GitOrigin-RevId: ae2c8db13ba3b9cea42fb31780e37102ea1b1a44
2023-01-20 18:24:37 +00:00
Nicolas Beaussart
41d5bf2a19 frontend: setup internal executor to create the assetLoader
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7612
GitOrigin-RevId: 4da8b7a642af3795ef9c31939e2d14ef7a755013
2023-01-20 16:05:52 +00:00
Nicolas Beaussart
f6427b993e frontend: fix css ordering issue in nx
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7584
GitOrigin-RevId: f61baa0cb8b08abfa240e6bda8a2a450e593752a
2023-01-18 22:23:36 +00:00
Nicolas Beaussart
e58a550cc8 frontend: sync nx codebase again
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7523
GitOrigin-RevId: 0ade4563d4d189dd2c74c8fd6760bc2bd4c47b75
2023-01-12 18:18:38 +00:00
Nicolas Beaussart
55307f1797 ci: introduce frontend related ci
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6991
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nicolas Inchauspe <710410+nicoinch@users.noreply.github.com>
GitOrigin-RevId: 88173064e50d3e05cd1606f7c2a5b9edf1d5857b
2022-12-16 14:37:27 +00:00
Nicolas Beaussart
6f5bd9cb63 frontend: re import code into new console code
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7280
GitOrigin-RevId: e403f0a05ee94ee0ddac0e263af44b15706a7d00
2022-12-15 10:04:26 +00:00
Nicolas Beaussart
df7234fe7d frontend: upgrade to jest 27
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7208
Co-authored-by: Rishichandra Wawhal <27274869+wawhal@users.noreply.github.com>
Co-authored-by: Nicolas Inchauspe <710410+nicoinch@users.noreply.github.com>
GitOrigin-RevId: 52f4fb7e17a27bd181ad6bb030e5947c9ce4f819
2022-12-14 16:00:54 +00:00
Nicolas Beaussart
b01a9e2784 frontend: re import code into new mono
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6966
GitOrigin-RevId: 92a8909a3d316f6a6d5dc512057e60995389383d
2022-11-24 17:21:59 +00:00
Nicolas Beaussart
1b33ebc32d ci: introduce required review github action
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7011
GitOrigin-RevId: 357186328a784ad5b44a155d098944c242b08ca8
2022-11-23 14:33:45 +00:00
Nicolas Beaussart
66077866cb platform: introduce nx docs
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6829
GitOrigin-RevId: b0a6a7ccc647ca13863f4c296b7c6b993f784bbb
2022-11-18 18:56:30 +00:00
Nicolas Inchauspe
1f4e802d88 console: upgrade msw to fix storybook with NX
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6732
GitOrigin-RevId: f83a95d9589cd9fddf9cb9f57f5bbe612022a77a
2022-11-04 08:44:52 +00:00
Stefano Magni
f24ef6ced5 console(fix, plaftorm): Fix the E2E tests lint process
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6550
GitOrigin-RevId: ff31b5990fc1d27e64346289a13e0dadab7883ea
2022-10-31 14:00:51 +00:00
Stefano Magni
2643fef930 console: Prevent using analytics-related props on React components
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6544
GitOrigin-RevId: 9f461c73f28b9d8d310fe6dfd02f4224a33ba156
2022-10-28 16:23:47 +00:00
Stefano Magni
040a281392 platform(console): Refactor everything Analytics
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6153
GitOrigin-RevId: e0dea3acf995d8f73eed8fabae374e215ebcd964
2022-10-24 08:30:01 +00:00
Nicolas Beaussart
6289b06453 platform: rename codebases and re import code
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6450
GitOrigin-RevId: 4ee8e72fe62edef0f04be9f6dc66b3788dc9a0f4
2022-10-20 16:21:56 +00:00
Nicolas Beaussart
7a7688ca9d platform: fix graphql codegen in action and graphiql editor
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6404
GitOrigin-RevId: f20eaece35f2c0b7d7db8b65908b608a79afcdba
2022-10-18 14:24:14 +00:00
Nicolas Beaussart
391d8570a1 platform: rework css import to prepare the nx migration
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6272
GitOrigin-RevId: 43d52508dac9687184f6702d312a21232051503e
2022-10-12 12:47:51 +00:00
Nicolas Beaussart
dbe350d087 platform(nx): import pro console into nx
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6122
GitOrigin-RevId: 7b36dcb51bf2b7c8dd8f514ceba5878f1c2757ca
2022-09-30 08:35:02 +00:00
Nicolas Beaussart
2f86f71d4d make the build outpout similar than before
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6052
GitOrigin-RevId: 3f93eb14828057ce67bad6068e4c00f32e8b7c51
2022-09-27 11:49:49 +00:00
Matthew Goodwin
b3b9ff269a console: GQL Customization while tracking a table
## Description 🔖

This adds the ability to "customize & track" using the [new tracking ui](https://github.com/hasura/graphql-engine-mono/pull/5391).

A new button was added to implement this:

<img width="870" alt="Screen Shot 2022-09-16 at 12 37 14 PM" src="https://user-images.githubusercontent.com/49927862/190701948-1ad86717-f6be-4f67-8e0c-17b618790795.png">

## Solution and Design 🎨

This feature mostly makes use of components and hooks already created.

I was able to refactor some code to reduce code duplication and type duplication.

A few highlights on the refactor:

- `useTrackTable`, `useUntrackTable` and `useTrackSelectedTables` were all refactored into a single hook: `useTrackTable`. This hook has one main function but returns 4 wrapper functions: `trackTable`, `untrackTable`, `trackTables`, and `untrackTables`. This should make maintaining easier in the future.
- Synced up types between `MetadataTableConfig` and the customization form. Previously, the customization form had duplicated this same type, and there was some slight discrepancies between them.
- Modified `TableTrackingCustomizationModal` `onSubmit` return with a 2nd argument that's in the exact shape of `MetadataTableConfig` for convenience.
- Did some refactoring of the `DropDownMenu` component that should not interfere with anything. Exposed a few of the inner components for export and used these modular pieces in the current implementation. This ended up not being used in the feature, but left it in as it's a slight improvement.

I also added a function called `delayAsyncAction` [here](5e88262628/console/src/components/Common/utils/jsUtils.tsx (L416)) to create an artificial delay for `async` functions. This allows us to create a more confident UX when requests happen near-instantly. Introducing a tiny delay of around 300ms with good UI feedback (i.e. loading spinner) shows the user something is happening. I wanted to document this as I'm not sure it's something other will agree on. If it's against our UX philosophy, I can remove it, but I found it nice.

## Review Setup 💻

1. Run the code locally and go to `http://localhost:3000/data/v2/manage?database=YOUR_DATABASE_NAME_HERE`
2. You should see the new button as shown above to `Customize & Track`
3. Try it out with various field custom roots
4. Also try tracking and untracking tables both from the individual rows as well as the checkboxes as this logic was also modified in the refactor.

 ** I am not totally sure how much I need to put here for testing, I may want some help here from the team. **

## Review checklist. 📋

### Functionality

- [ ] Steps to verify console behaviour

### Tests

Going to open another PR for adding testing to the relevant areas. Will update this PR with a link once that's been done.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5922
GitOrigin-RevId: e7c14be5b9bcc255a7b9ecfd43f1f84aa8aabba2
2022-09-26 22:02:40 +00:00
Daniele Cammareri
f34bd93e9c console: remove allow list feature flag
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5889
GitOrigin-RevId: b9a3bab2bd83edb94137603850b405df1766e43b
2022-09-18 15:39:51 +00:00
Nicolas Beaussart
ad18266a3c frontend: dev server config
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5668
Co-authored-by: Nicolas Inchauspe <710410+nicoinch@users.noreply.github.com>
GitOrigin-RevId: c4915e445be9d95bcb4c76679f534ea80d52e3d3
2022-09-05 15:37:05 +00:00
Stefano Magni
d864bed4f4 console: Setup cypress on the Nx monorepo (close #5463)
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5675
GitOrigin-RevId: b320b6f5bb092d20a4de8e51f6711323dd2b0a05
2022-08-31 09:04:45 +00:00
Nicolas Inchauspe
b53cc2e81c console: add storybook and tailwind to console-legacy-oss
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5590
GitOrigin-RevId: 911fa2b8f59383fc10a08afac3138aacfe0927d3
2022-08-30 08:04:31 +00:00
Nicolas Inchauspe
6ca1fea4bf Migrate ALL buttons to new Button component
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5406
Co-authored-by: Erik Magnusson <32518962+ejkkan@users.noreply.github.com>
GitOrigin-RevId: c6eb23f5820ea4fe2ee23bf323ba81cd20d152e0
2022-08-22 14:48:14 +00:00
Nicolas Beaussart
38ffe84ce3 platform(nx): initial oss migration
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5429
GitOrigin-RevId: 3df08906d9c3cd6a9f75b933469bce4782c4a8d5
2022-08-18 19:37:56 +00:00
Nicolas Beaussart
79d9be5669 frontend: initial nx generation
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5355
GitOrigin-RevId: b54bb378389ab4fae1fdf6b5a5cc97d1fd6abaf9
2022-08-05 18:53:54 +00:00