Compare commits

...

385 Commits

Author SHA1 Message Date
Szilárd Dóró
9b8a19a316 Merge pull request #1987 from nhost/changeset-release/main
chore: update versions
2023-06-01 13:57:05 +02:00
github-actions[bot]
26b8519add chore: update versions 2023-06-01 11:33:06 +00:00
Szilárd Dóró
f372b167d9 Merge pull request #1988 from nhost/chore/bump-deps
chore(deps): bump `@types/react`, `turbo` and `tj-actions/changed-files`
2023-06-01 13:31:48 +02:00
Szilárd Dóró
fbaea49b28 fix: ignore secrets correctly 2023-06-01 13:24:39 +02:00
Szilárd Dóró
0b4a2041e2 Merge branch 'main' into chore/bump-deps 2023-06-01 13:24:14 +02:00
Szilárd Dóró
444206b0f7 Merge pull request #1993 from nhost/chore/allow-empty-secrets-env-vars
chore(dashboard): allow empty secrets and environment variables
2023-06-01 13:23:38 +02:00
Szilárd Dóró
624ef79110 chore: bump turbo to v1.10.1 2023-06-01 13:19:09 +02:00
Szilárd Dóró
711ef45815 Merge branch 'chore/bump-deps' of https://github.com/nhost/nhost into chore/bump-deps 2023-06-01 13:17:46 +02:00
Szilárd Dóró
21e13db05a chore: add changeset 2023-06-01 13:17:44 +02:00
Szilárd Dóró
a1862b80ba chore: bump turbo, @types/react and tj-actions/changed-files 2023-06-01 13:17:43 +02:00
Szilárd Dóró
42e8d102e9 Merge pull request #1985 from nhost/fix/ci
fix(ci): use new CLI
2023-06-01 13:16:21 +02:00
Szilárd Dóró
aa3c629892 chore: add changeset 2023-06-01 12:49:25 +02:00
Szilárd Dóró
f016afed5d chore: bump pnpm version 2023-06-01 12:12:54 +02:00
Szilárd Dóró
9d4ee99553 fix: don't break E2E tests 2023-06-01 12:10:04 +02:00
Szilárd Dóró
6cbe1f662f fix: don't break E2E tests 2023-06-01 11:37:56 +02:00
Szilárd Dóró
abd9c88e5a Revert "fix: use correct mailhog URL in tests"
This reverts commit 788090e917.
2023-06-01 10:40:04 +02:00
Szilárd Dóró
27e5ef8f5a fix: use correct mailhog URL in tests 2023-06-01 10:34:50 +02:00
Szilárd Dóró
788090e917 fix: use correct mailhog URL in tests 2023-06-01 10:34:10 +02:00
Szilárd Dóró
f16433ae67 chore: allow empty secrets and environment variables 2023-06-01 10:17:14 +02:00
Szilárd Dóró
33e3bba700 fix: don't break E2E tests 2023-06-01 10:12:38 +02:00
Szilárd Dóró
517bb6930a chore: bump CLI version in all examples 2023-06-01 09:09:25 +02:00
Szilárd Dóró
4b17964e8d fix: simplify CI 2023-06-01 08:53:50 +02:00
Szilárd Dóró
ebc016377b fix: use proper dummy JWT secret 2023-06-01 08:45:55 +02:00
Szilárd Dóró
eae670f4d1 fix: don't start nhost up in the background 2023-06-01 08:42:55 +02:00
Szilárd Dóró
c642649853 chore: revert insecure curl requests 2023-06-01 08:26:16 +02:00
David Barroso
095f2c73b9 fix: update nhost's upgrade command (#1989) 2023-05-31 17:54:43 +02:00
Szilárd Dóró
42753d2b1f chore: add changeset 2023-05-31 16:00:42 +02:00
Szilárd Dóró
328c0a6600 chore: bump turbo, @types/react and tj-actions/changed-files 2023-05-31 15:59:52 +02:00
Szilárd Dóró
93101430c8 fix: temporarily allow insecure URL for curl 2023-05-31 15:53:28 +02:00
Szilárd Dóró
c14738b8c1 fix: use dummy .secrets file 2023-05-31 15:53:28 +02:00
Szilárd Dóró
683ef4f2fe fix: use dummy .secrets file 2023-05-31 15:53:28 +02:00
Szilárd Dóró
528f02874c fix: use dummy .secrets file 2023-05-31 15:53:28 +02:00
Szilárd Dóró
5f72ba57d3 chore: upgrade the Nhost app in packages/nhost-js 2023-05-31 15:53:27 +02:00
Szilárd Dóró
e71e3af530 fix: use CLI v1.0.1 2023-05-31 15:53:27 +02:00
Szilárd Dóró
aa05cd4b61 fix: temp CLI version change 2023-05-31 15:53:27 +02:00
Szilárd Dóró
bd87a36c6e update CLI install script 2023-05-31 15:53:27 +02:00
Szilárd Dóró
9c88947b86 change CLI version in CI 2023-05-31 15:53:27 +02:00
Szilárd Dóró
1b03ce7259 fix test CLI action 2023-05-31 15:53:27 +02:00
Szilárd Dóró
de1137a876 update CLI commands 2023-05-31 15:53:27 +02:00
Szilárd Dóró
770c4d1801 fix: don't break CI because of new Nhost CLI 2023-05-31 15:53:26 +02:00
Szilárd Dóró
60e25b3425 Merge pull request #1984 from nhost/chore/under-the-hood-improvements-pt-3
chore(dashboard): under the hood improvements
2023-05-31 15:50:06 +02:00
Szilárd Dóró
f4d2a305a5 Merge pull request #1980 from nhost/changeset-release/main
chore: update versions
2023-05-31 14:56:02 +02:00
Szilárd Dóró
01eeef9de7 chore: add changeset 2023-05-31 10:50:44 +02:00
Szilárd Dóró
f395375cd0 chore: @/ui -> @/components/ui
also improve ESLint rules
2023-05-31 10:48:40 +02:00
Szilárd Dóró
ae3599d2b4 chore: update codegen, simplify types 2023-05-31 10:40:51 +02:00
David Barroso
9a3c782fcb fix: update to new subcommand structure (#1983) 2023-05-31 10:30:56 +02:00
Szilárd Dóró
28c1633695 chore: remove unused hook 2023-05-31 10:27:56 +02:00
Szilárd Dóró
66822f8673 chore: nest remaining unnested utils 2023-05-31 10:26:19 +02:00
Szilárd Dóró
86b82bf5cf chore: simplify utils structure 2023-05-31 10:24:17 +02:00
Szilárd Dóró
f77454a848 chore: move utility function to features 2023-05-31 09:40:15 +02:00
Szilárd Dóró
3426000edf chore: simplify project structure 2023-05-31 09:33:21 +02:00
Szilárd Dóró
7bd9da909c chore: move components from the common folder 2023-05-31 09:26:42 +02:00
Szilárd Dóró
fcb84bfb3d chore: simplify component structure 2023-05-31 09:12:30 +02:00
Szilárd Dóró
991e4c0cc5 chore: move files to the features folder 2023-05-31 09:07:25 +02:00
github-actions[bot]
a7f03bc6ce chore: update versions 2023-05-31 06:53:53 +00:00
Szilárd Dóró
5684fdbf0b Merge pull request #1977 from nhost/chore/under-the-hood-improvements-pt-2
chore(dashboard): under the hood improvements
2023-05-31 08:52:34 +02:00
Nuno Pato
39980e6c54 Merge pull request #1979 from nhost/blog/config
update docs on cli
2023-05-30 16:50:18 +00:00
Nuno Pato
5b959cce0e asd 2023-05-30 16:25:15 +00:00
Nuno Pato
117098d8da config blog post 2023-05-30 15:20:36 +00:00
Szilárd Dóró
1fce4ca93d fix: don't break linter step 2023-05-30 15:45:04 +02:00
Szilárd Dóró
6a74a97cd0 Merge pull request #1978 from nhost/changeset-release/main
chore: update versions
2023-05-30 15:07:59 +02:00
Szilárd Dóró
7446fb30db fix: don't break build 2023-05-30 15:00:17 +02:00
github-actions[bot]
291185e609 chore: update versions 2023-05-30 12:43:56 +00:00
Szilárd Dóró
b1a2dd6ab3 Merge remote-tracking branch 'origin/main' into chore/under-the-hood-improvements-pt-2 2023-05-30 14:43:44 +02:00
Szilárd Dóró
d3f965048a Merge pull request #1976 from nhost/feat/enable-secrets
feat(dashboard): enable secrets
2023-05-30 14:42:39 +02:00
Szilárd Dóró
9acecfd638 chore: simplify file structure 2023-05-30 14:37:00 +02:00
Szilárd Dóró
134773be86 chore: break down UIContext 2023-05-30 14:31:12 +02:00
Szilárd Dóró
88a4983f2e chore: add changeset 2023-05-30 14:21:27 +02:00
Szilárd Dóró
7526f573c3 Merge remote-tracking branch 'origin/main' into chore/under-the-hood-improvements-pt-2 2023-05-30 14:21:18 +02:00
Szilárd Dóró
9b0d4dde50 feat: enable secrets 2023-05-30 14:16:20 +02:00
Szilárd Dóró
9934514dde chore: nest unnested hooks and utils 2023-05-30 13:07:46 +02:00
Szilárd Dóró
c7084d1759 chore: misc cleanup 2023-05-30 12:43:11 +02:00
Szilárd Dóró
f0a122d39b chore: remove unused components 2023-05-30 12:32:53 +02:00
Szilárd Dóró
34f1795e40 chore: update remaining default exports 2023-05-30 12:32:15 +02:00
Szilárd Dóró
2032494b27 chore: update provider exports 2023-05-30 12:30:10 +02:00
Szilárd Dóró
b5dce47370 chore: update secret components 2023-05-30 12:25:10 +02:00
Szilárd Dóró
60f1a03d33 chore: update roles components' exports 2023-05-30 12:24:02 +02:00
Szilárd Dóró
881b2d752c chore: update environment variable imports 2023-05-30 12:22:59 +02:00
Szilárd Dóró
db293808f3 chore: update BasePermissionVariableForm imports 2023-05-30 12:22:17 +02:00
Szilárd Dóró
7414b39f48 chore: update BaseEnvironmentVariableForm imports 2023-05-30 12:18:16 +02:00
Szilárd Dóró
7ebc555e4c chore: update ErrorMessage imports 2023-05-30 12:17:05 +02:00
Szilárd Dóró
830e627da1 chore: update import paths 2023-05-30 12:15:46 +02:00
Szilárd Dóró
176e3d5ea6 chore: update import paths 2023-05-30 11:35:45 +02:00
Szilárd Dóró
759aa9c221 chore: update Box imports 2023-05-30 11:28:27 +02:00
Szilárd Dóró
3acfd032bd chore: update Text imports 2023-05-30 11:25:59 +02:00
Szilárd Dóró
b77711000a chore: nest the remaining unnested components 2023-05-30 11:23:09 +02:00
Szilárd Dóró
79fa77f28f chore: remove unused components, update avatars 2023-05-30 11:19:33 +02:00
Szilárd Dóró
bd6fe2f85f chore: move Resource settings components 2023-05-30 11:03:13 +02:00
Szilárd Dóró
acb8a4f187 chore: remove default Button export 2023-05-30 11:00:19 +02:00
Nuno Pato
06d6ae0e86 Merge pull request #1971 from nhost/changeset-release/main
chore: update versions
2023-05-28 01:22:55 +00:00
github-actions[bot]
1777c147b2 chore: update versions 2023-05-26 18:59:45 +00:00
Nuno Pato
9d784b82c8 Merge pull request #1969 from nhost/chore/add-postgres-latest-version
chore: add latest postgres image
2023-05-26 18:58:30 +00:00
Nuno Pato
15d84a1966 chore: add latest postgres image 2023-05-26 16:52:52 +00:00
Nuno Pato
8a1a1e06aa Merge pull request #1963 from nhost/dbarroso/functions-metrics
chore: docs: update info about metrics to mention functions
2023-05-26 10:17:43 +00:00
David Barroso
eb1d7137cf fix link 2023-05-26 11:02:09 +02:00
David Barroso
cf55e8e111 chore: ammend functions dashboard (#1964) 2023-05-25 19:25:30 +02:00
David Barroso
b47c797d73 asd 2023-05-25 14:50:25 +02:00
David Barroso
dafc4b2635 chore: docs: update info about metrics to mention functions 2023-05-25 14:49:45 +02:00
Szilárd Dóró
97cfb5c514 chore: remove unnecessary components 2023-05-25 14:08:38 +02:00
David Barroso
0ccd9c82b1 feat: observability: added dashboard for metrics (#1961) 2023-05-25 13:29:55 +02:00
Szilárd Dóró
f0be842325 chore: create v1 folder for old UI components 2023-05-25 12:39:28 +02:00
Szilárd Dóró
30a0fd1698 chore: create folders for basic components 2023-05-25 12:34:01 +02:00
Szilárd Dóró
ce45f3b707 chore: move icons to the correct place 2023-05-25 12:23:07 +02:00
Szilárd Dóró
8b9df13725 chore: move generic components 2023-05-25 12:11:58 +02:00
Szilárd Dóró
8f31258d11 chore: move data grid components and hooks 2023-05-25 12:04:46 +02:00
Szilárd Dóró
877f857010 chore: improve hook structure 2023-05-25 11:46:49 +02:00
Szilárd Dóró
5773521b03 chore: move workspace-related components 2023-05-25 11:29:20 +02:00
Szilárd Dóró
549dd83f3e chore: partially move workspace-related components 2023-05-25 11:19:38 +02:00
Szilárd Dóró
e72c19c9da chore: move logs-related components 2023-05-25 11:08:28 +02:00
Szilárd Dóró
70d5dcf170 chore: move graphql-related files 2023-05-25 10:48:05 +02:00
Szilárd Dóró
c439174821 chore: move project-related components 2023-05-25 10:36:24 +02:00
Szilárd Dóró
2f7b2532ea chore: move backup and project-related components 2023-05-25 10:28:09 +02:00
Szilárd Dóró
faa21af7fb chore: move deployment-related files 2023-05-25 10:19:17 +02:00
Szilárd Dóró
a5fdc46a57 chore: move database utils 2023-05-25 10:10:36 +02:00
Szilárd Dóró
04e8728753 chore: move common project-related hooks 2023-05-25 10:09:34 +02:00
Szilárd Dóró
34cf922643 chore: cleanup Git related files 2023-05-25 10:07:56 +02:00
Szilárd Dóró
0dd1883815 Merge pull request #1954 from nhost/changeset-release/main
chore: update versions
2023-05-24 09:43:17 +02:00
github-actions[bot]
01ba429007 chore: update versions 2023-05-23 14:38:21 +00:00
Szilárd Dóró
fdf5b3035c Merge pull request #1951 from nhost/feat/pat-ui
feat(dashboard): add support for personal access tokens
2023-05-23 16:37:07 +02:00
Szilárd Dóró
ae52ca6303 fix: don't break tests 2023-05-23 15:52:36 +02:00
Szilárd Dóró
428222bf5f chore: revert "Note" to "Name" 2023-05-23 15:42:47 +02:00
Szilárd Dóró
090ee51854 Merge branch 'main' into feat/pat-ui 2023-05-23 15:34:42 +02:00
Szilárd Dóró
766c8431f1 Merge pull request #1944 from nhost/chore/under-the-hood-improvements
chore(dashboard): under the hood improvements
2023-05-23 15:31:45 +02:00
Szilárd Dóró
4c62617472 chore: add changeset 2023-05-23 15:10:45 +02:00
Szilárd Dóró
01f3cbb07a chore: update import paths 2023-05-23 15:09:20 +02:00
Szilárd Dóró
62f5d8b69e Merge branch 'main' into chore/under-the-hood-improvements 2023-05-23 14:37:57 +02:00
Szilárd Dóró
88e2c05afc Merge pull request #1947 from nhost/renovate/fontsource-inter-5.x
fix(deps): bump @fontsource monorepo to v5
2023-05-23 14:04:34 +02:00
Szilárd Dóró
f1edbfdbf1 chore: improve PAT table 2023-05-23 13:56:15 +02:00
Szilárd Dóró
a9943eef3f chore: remove unused codegen plugin 2023-05-23 12:42:29 +02:00
Szilárd Dóró
431e61a684 Merge branch 'main' into renovate/fontsource-inter-5.x 2023-05-23 12:40:44 +02:00
Szilárd Dóró
87e7f7d4f5 fix: revert to 365 days 2023-05-23 12:39:20 +02:00
Szilárd Dóró
5aab6b1896 fix: don't break tests 2023-05-23 11:11:29 +02:00
Szilárd Dóró
e4e216da6d chore: update PAT form structure 2023-05-23 11:07:59 +02:00
Szilárd Dóró
cd8ccdf59a Merge remote-tracking branch 'origin/main' into feat/pat-ui 2023-05-23 10:27:26 +02:00
Szilárd Dóró
9421dda73d Merge pull request #1953 from nhost/changeset-release/main
chore: update versions
2023-05-23 10:20:13 +02:00
github-actions[bot]
f13dc75993 chore: update versions 2023-05-23 08:16:17 +00:00
Szilárd Dóró
0a8b42d371 Merge pull request #1939 from nhost/feat/service-versions
feat(dashboard): add service version selectors
2023-05-23 10:15:03 +02:00
Szilárd Dóró
bd59d61e94 chore: update available Hasura Storage versions 2023-05-23 09:46:27 +02:00
Szilárd Dóró
349622fca2 chore: update available Hasura versions 2023-05-23 09:43:41 +02:00
Szilárd Dóró
dfe8588a94 chore: simplify account settings structure 2023-05-23 09:40:33 +02:00
Szilárd Dóró
0167df5534 chore: update settings layout 2023-05-23 09:30:37 +02:00
Szilárd Dóró
7c790b3afe fix: don't use test.only 2023-05-22 20:57:06 +02:00
Szilárd Dóró
1b3a8a1638 chore: add tests for PAT 2023-05-22 17:38:19 +02:00
Szilárd Dóró
99edd0129a chore: add changeset 2023-05-22 16:26:15 +02:00
Szilárd Dóró
cfb759c34a feat: finalize PAT support 2023-05-22 16:25:49 +02:00
Szilárd Dóró
6c5a645876 feat: add support for listing PATs 2023-05-22 16:10:56 +02:00
Szilárd Dóró
db459b09ec feat: add support for PAT creation 2023-05-22 15:57:37 +02:00
Szilárd Dóró
e4fa63a571 feat: start working on PAT settings 2023-05-22 15:37:15 +02:00
Szilárd Dóró
4ce552c8eb feat: restore password change feature 2023-05-22 15:03:10 +02:00
Szilárd Dóró
b847c6d003 feat: prepare account settings page 2023-05-22 14:42:27 +02:00
Szilárd Dóró
daab7d8eeb Merge branch 'main' into feat/service-versions 2023-05-22 13:29:08 +02:00
Szilárd Dóró
1b4f074dfd chore: update Hasura version selector 2023-05-22 13:15:41 +02:00
Szilárd Dóró
cca7075721 fix: use tailwind classes in features 2023-05-22 12:26:18 +02:00
Szilárd Dóró
4c1b96ccc6 Merge branch 'main' into chore/under-the-hood-improvements 2023-05-22 11:53:08 +02:00
Szilárd Dóró
809a2d35f8 Merge pull request #1940 from nhost/changeset-release/main
chore: update versions
2023-05-22 11:51:04 +02:00
Szilárd Dóró
084b7ce6d2 Merge branch 'main' into feat/service-versions 2023-05-22 09:41:39 +02:00
github-actions[bot]
e17ec7fce7 chore: update versions 2023-05-22 07:26:27 +00:00
Szilárd Dóró
241175b158 Merge pull request #1935 from nhost/renovate/prettier-plugin-tailwindcss-0.x
chore(deps): update dependency prettier-plugin-tailwindcss to ^0.3.0
2023-05-22 09:14:39 +02:00
Szilárd Dóró
9b209ef419 update pnpm-lock file 2023-05-22 09:07:45 +02:00
Szilárd Dóró
a86d17c81f Merge branch 'renovate/fontsource-inter-5.x' of https://github.com/nhost/nhost into renovate/fontsource-inter-5.x 2023-05-22 09:07:32 +02:00
Szilárd Dóró
cc047b719a chore: bump @fontsource monorepo 2023-05-22 09:06:09 +02:00
renovate[bot]
889b071134 fix(deps): update dependency @fontsource/inter to v5 2023-05-22 07:04:25 +00:00
Szilárd Dóró
51ceaf2696 Merge pull request #1950 from nhost/fix/nextjs-react-error
fix(nextjs): don't break Next.js when using SignedIn/SignedOut
2023-05-22 09:00:26 +02:00
renovate[bot]
eee3f5723e fix(deps): update dependency @fontsource/inter to v5 2023-05-21 16:50:23 +00:00
Szilárd Dóró
490b77cde4 Merge pull request #1949 from nhost/fix/local-infinite-loop
fix(dashboard): don't enter an infinite loop in local mode
2023-05-21 18:14:05 +02:00
Szilárd Dóró
7fea29a8b4 chore: add changeset 2023-05-21 18:13:34 +02:00
Szilárd Dóró
1a34e011ad fix: don't break Next.js when using SignedIn/SignedOut 2023-05-21 18:08:42 +02:00
Szilárd Dóró
395839f449 chore: check service URL when creating client 2023-05-21 16:34:00 +02:00
Szilárd Dóró
399009d66a fix(gql): don't enter an infinite loop when fetching remote app data 2023-05-21 16:31:57 +02:00
Szilárd Dóró
12eb236c4a chore: add changeset 2023-05-19 17:14:22 +02:00
Szilárd Dóró
2218e5cd5b Merge branch 'main' into renovate/prettier-plugin-tailwindcss-0.x 2023-05-19 17:12:36 +02:00
Szilárd Dóró
2dcf1b38c6 Merge pull request #1945 from nhost/fix/404-not-found
fix(dashboard): don't redirect to 404 on project creation
2023-05-19 16:16:13 +02:00
Szilárd Dóró
412520ac10 fix: don't break tests 2023-05-19 15:32:27 +02:00
Szilárd Dóró
ad49c92879 fix: trigger project list refetch properly 2023-05-19 15:31:17 +02:00
Szilárd Dóró
13dd57eeb4 Merge pull request #1943 from nhost/fix/deployment-sorting
fix(dashboard): sync deployment sorting
2023-05-19 15:27:44 +02:00
Szilárd Dóró
1345741b11 fix: don't redirect to 404 2023-05-19 15:26:20 +02:00
Szilárd Dóró
3cb63a6da9 chore: move overview files to the features folder 2023-05-19 14:36:08 +02:00
Szilárd Dóró
985f648204 chore: simplify folder structure 2023-05-19 13:47:21 +02:00
Szilárd Dóró
bbc3aa8896 fix: don't hide custom option 2023-05-19 13:44:05 +02:00
Szilárd Dóró
3d51de4a60 chore: move hooks to the features folder 2023-05-19 12:15:42 +02:00
Szilárd Dóró
b46afa37c6 chore: simplify folder structure 2023-05-19 12:10:08 +02:00
Szilárd Dóró
8ad6358d76 chore: delete unnecessary hook 2023-05-19 12:01:16 +02:00
Szilárd Dóró
f73f8366e4 chore: move every database code to features 2023-05-19 11:58:45 +02:00
renovate[bot]
511615f176 chore(deps): update dependency prettier-plugin-tailwindcss to ^0.3.0 2023-05-19 09:51:56 +00:00
Szilárd Dóró
1198c201f1 Merge pull request #1922 from nhost/renovate/turbo-1.x
chore(deps): update dependency turbo to v1.9.8
2023-05-19 11:48:43 +02:00
Szilárd Dóró
cab803e5b7 chore: move data browser files to features 2023-05-19 11:10:36 +02:00
Szilárd Dóró
59fea65eb6 feat: migrate storage-related files to features 2023-05-19 10:44:58 +02:00
Szilárd Dóró
f9b81a2ae9 chore: bump version in the Dockerfile as well 2023-05-19 10:34:21 +02:00
Szilárd Dóró
23bac2d29c Merge branch 'main' into feat/service-versions 2023-05-19 10:27:55 +02:00
Szilárd Dóró
78739f77b1 feat: add support for project status indicator 2023-05-19 09:59:33 +02:00
Szilárd Dóró
dff0894f37 Revert "fix: sync deployment sorting"
This reverts commit 80f3645d57.
2023-05-19 09:38:04 +02:00
Szilárd Dóró
80f3645d57 fix: sync deployment sorting 2023-05-19 09:27:24 +02:00
Szilárd Dóró
7ddb9a654e fix: sync deployment sorting 2023-05-19 09:10:44 +02:00
Szilárd Dóró
71f3be15d8 Merge pull request #1941 from nhost/chore/under-the-hood-improvements
chore(dashboard): under the hood improvements
2023-05-19 09:03:46 +02:00
Szilárd Dóró
96a9070836 chore: loosen eslint rules 2023-05-18 17:07:15 +02:00
Szilárd Dóró
329e5a91b9 fix: use the correct deployment ordering 2023-05-18 16:01:44 +02:00
Szilárd Dóró
6d559d6e23 chore: under the hood improvements 2023-05-18 11:39:22 +02:00
renovate[bot]
f4f1450d06 chore(deps): update dependency turbo to v1.9.8 2023-05-18 08:22:54 +00:00
Szilárd Dóró
a1eea9df7d Merge pull request #1932 from nhost/renovate/docusaurus-monorepo
fix(deps): update docusaurus monorepo to v2.4.1
2023-05-18 10:16:23 +02:00
Szilárd Dóró
26f2b665e6 Merge pull request #1924 from nhost/feat/pat
feat(hasura-auth-js): add support for personal access tokens
2023-05-18 10:14:12 +02:00
Szilárd Dóró
8989202692 chore: improve variable name 2023-05-18 10:09:03 +02:00
Szilárd Dóró
2ae463f11f fix: don't break builds 2023-05-18 10:06:43 +02:00
Szilárd Dóró
18a786e880 feat: add storage settings page 2023-05-18 10:03:15 +02:00
Szilárd Dóró
c88fbe1e17 feat: allow changing db version
chore: reorganize features folder
2023-05-18 09:50:36 +02:00
Szilárd Dóró
78c7109c46 chore: add changeset 2023-05-18 08:54:41 +02:00
Szilárd Dóró
c7b968868a feat: use hardcoded images instead 2023-05-17 16:47:40 +02:00
Szilárd Dóró
77a3473166 feat: add support for version autocomplete 2023-05-17 13:51:39 +02:00
renovate[bot]
224a5cc805 fix(deps): update docusaurus monorepo to v2.4.1 2023-05-17 11:05:58 +00:00
David Barroso
59125b3c77 Merge pull request #1937 from nhost/dbarroso/react-apollo-example-update
chore: update react-apollo example's dependencies
2023-05-17 13:02:09 +02:00
Szilárd Dóró
91e2affa6f chore: use cache-and-network fetch policy 2023-05-17 12:52:52 +02:00
Szilárd Dóró
a8d747976b feat: add support for changing hasura images 2023-05-17 11:23:44 +02:00
Szilárd Dóró
5b69e3efd8 fix: don't break builds 2023-05-17 10:41:27 +02:00
Szilárd Dóró
c9a444d048 chore: sync playwright versions 2023-05-17 10:21:03 +02:00
Szilárd Dóró
fc16fd5452 fix: refresh auth settings on page change 2023-05-17 10:04:19 +02:00
David Barroso
2eeac45718 asd 2023-05-17 09:54:44 +02:00
Szilárd Dóró
afc9de7994 chore: create dedicated hook 2023-05-17 09:40:36 +02:00
David Barroso
fe8ca8aba6 Update examples/react-apollo/package.json
Co-authored-by: Szilárd Dóró <doroszilard@icloud.com>
2023-05-17 09:32:13 +02:00
David Barroso
086ee46b08 chore: update react-apollo example's dependencies 2023-05-17 09:21:25 +02:00
Szilárd Dóró
37c1c18b43 feat: fetch docker images from lambda 2023-05-16 16:50:23 +02:00
Szilárd Dóró
67078b9a72 feat: add support for selecting Auth version 2023-05-16 16:22:55 +02:00
Szilárd Dóró
203bc97f51 feat: add useSignInPAT to @nhost/vue 2023-05-16 14:42:55 +02:00
Szilárd Dóró
b24af44aac feat: add support for refreshTokenId 2023-05-16 12:54:51 +02:00
Szilárd Dóró
cdaa6d4e73 chore: remove hash function 2023-05-16 12:16:35 +02:00
Szilárd Dóró
09e2c8f5c7 feat: add hash function 2023-05-16 11:24:52 +02:00
Szilárd Dóró
4581677830 chore: update docs 2023-05-16 09:37:51 +02:00
Szilárd Dóró
7bfa6c9f93 fix: use correct hasura-auth image 2023-05-16 08:59:17 +02:00
Szilárd Dóró
80ef430d70 feat: add personal access token docs 2023-05-16 08:51:22 +02:00
Szilárd Dóró
bad8af0fd1 Merge branch 'main' into feat/pat 2023-05-16 08:35:24 +02:00
Szilárd Dóró
69caa34c43 Merge pull request #1934 from nhost/changeset-release/main
chore: update versions
2023-05-16 08:34:38 +02:00
github-actions[bot]
1d898e2893 chore: update versions 2023-05-15 18:43:10 +00:00
Szilárd Dóró
e87621cbde Merge pull request #1936 from nhost/fix/security-key-url
fix(hasura-auth-js): make the call to the correct endpoint
2023-05-15 20:41:59 +02:00
Szilárd Dóró
0d6fc42158 fix: make the call to the correct endpoint 2023-05-15 19:46:26 +02:00
Szilárd Dóró
f6fbee6b13 Merge pull request #1933 from nhost/fix/project-rename-prevent-404
fix(dashboard): don't redirect to 404 on project rename
2023-05-15 16:59:00 +02:00
Szilárd Dóró
1230b72222 fix: don't redirect to 404 on project rename 2023-05-15 16:05:45 +02:00
Szilárd Dóró
6cc7704555 Merge pull request #1931 from nhost/changeset-release/main
chore: update versions
2023-05-15 15:47:22 +02:00
github-actions[bot]
c0954dec09 chore: update versions 2023-05-15 13:30:42 +00:00
Szilárd Dóró
6c25480a7a Merge pull request #1929 from nhost/fix/build-targets
chore: change build target to ES2019
2023-05-15 15:29:32 +02:00
Szilárd Dóró
da03bf390c chore: change build target to ES2019 2023-05-15 11:09:00 +02:00
Szilárd Dóró
3b513be9f2 Merge pull request #1926 from nhost/changeset-release/main
chore: update versions
2023-05-12 16:55:46 +02:00
github-actions[bot]
e450e9d636 chore: update versions 2023-05-12 14:27:16 +00:00
Szilárd Dóró
ed1ee10879 Merge pull request #1925 from nhost/fix/postgres-connection-string
fix(dashboard): show correct postgres connection string
2023-05-12 16:25:51 +02:00
Szilárd Dóró
a6120bf366 feat: update API
chore: fix tests
2023-05-12 14:59:07 +02:00
Szilárd Dóró
349aac369e chore: add changeset 2023-05-12 14:23:54 +02:00
Szilárd Dóró
5a84362c80 fix: construct postgres connection string 2023-05-12 14:23:05 +02:00
Szilárd Dóró
b23dc058a6 Merge branch 'main' into feat/pat 2023-05-12 14:14:09 +02:00
Szilárd Dóró
ad0dda7493 feat: extend nhost.auth.createPAT with id 2023-05-12 14:09:57 +02:00
Szilárd Dóró
4063507d59 chore: improve CLI example 2023-05-12 14:01:11 +02:00
Szilárd Dóró
f59a77b1c8 Merge pull request #1923 from nhost/changeset-release/main
chore: update versions
2023-05-12 10:25:12 +02:00
github-actions[bot]
30686bc4ce chore: update versions 2023-05-12 08:03:41 +00:00
Szilárd Dóró
0c4ac8d368 Merge pull request #1919 from nhost/chore/update-staging-urls
chore(dashboard): change URL construction
2023-05-12 10:02:32 +02:00
Szilárd Dóró
85439307a9 feat: finalize CLI example 2023-05-12 09:34:22 +02:00
Szilárd Dóró
0d8baa4065 feat: allow PAT creation through the example 2023-05-12 08:56:56 +02:00
Szilárd Dóró
7da0e5e256 Merge pull request #1918 from nhost/changeset-release/main
chore: update versions
2023-05-11 15:30:16 +02:00
Szilárd Dóró
4bca94425e chore: add useful information to the README 2023-05-11 15:26:15 +02:00
Szilárd Dóró
9f948385c0 feat: improve readability, add book relationship 2023-05-11 15:23:59 +02:00
Szilárd Dóró
294c504b61 chore: update pnpm-lock file 2023-05-11 15:10:28 +02:00
Szilárd Dóró
1469ec2969 Merge branch 'main' into feat/pat 2023-05-11 15:09:31 +02:00
github-actions[bot]
8229101efe chore: update versions 2023-05-11 13:07:57 +00:00
Szilárd Dóró
afad1778f8 Merge pull request #1895 from nhost/renovate/react-monorepo
chore(deps): update react monorepo
2023-05-11 15:06:23 +02:00
Szilárd Dóró
28fc7b84c7 chore: update changeset 2023-05-11 13:38:39 +02:00
Szilárd Dóró
3f478a4e3c chore: include vitest in the bump, add changeset 2023-05-11 13:37:34 +02:00
Szilárd Dóró
aa54666941 fix: don't break builds 2023-05-11 12:53:45 +02:00
Szilárd Dóró
20fb69faba chore: change URL construction 2023-05-11 12:46:49 +02:00
renovate[bot]
1caeb2a548 chore(deps): update react monorepo 2023-05-11 10:12:59 +00:00
Szilárd Dóró
6356c5a2c8 Merge pull request #1906 from nhost/chore/bump-pnpm
chore: bump `pnpm` and `turbo` version
2023-05-11 12:10:10 +02:00
Szilárd Dóró
6ec1dd3248 chore: bump lock file again 2023-05-11 11:07:27 +02:00
Szilárd Dóró
8a4b5031dc Merge branch 'main' into chore/bump-pnpm 2023-05-11 11:06:57 +02:00
Szilárd Dóró
4790fee41f Merge pull request #1916 from nhost/changeset-release/main
chore: update versions
2023-05-11 09:26:44 +02:00
github-actions[bot]
0a8033812d chore: update versions 2023-05-11 06:56:16 +00:00
Szilárd Dóró
2b56ffc29e Merge pull request #1915 from nhost/fix/project-redirects
fix(dashboard): redirect an invalid project to the 404 page
2023-05-11 08:54:58 +02:00
Szilárd Dóró
aa9b926cd7 Merge branch 'main' into fix/project-redirects 2023-05-10 17:21:18 +02:00
Szilárd Dóró
575404ad62 Merge pull request #1917 from nhost/fix/imports
fix(dashboard): don't break builds
2023-05-10 17:20:37 +02:00
Szilárd Dóró
3f6dfc7bcd fix: don't break builds 2023-05-10 17:19:32 +02:00
Szilárd Dóró
682e64d7a3 fix: don't break build 2023-05-10 16:51:59 +02:00
Szilárd Dóró
30cee4f86c Merge branch 'main' into fix/project-redirects 2023-05-10 16:51:06 +02:00
Szilárd Dóró
29dcc8c63e Merge pull request #1911 from nhost/fix/non-owner-functionality
fix(dashboard): restrict non-owner functionality
2023-05-10 16:47:06 +02:00
Szilárd Dóró
d926f15676 fix: redirect an invalid project to the 404 page 2023-05-10 16:46:16 +02:00
Szilárd Dóró
726c33d1b2 feat: finalize CLI example 2023-05-10 16:41:49 +02:00
Szilárd Dóró
11b9cfbc0d feat: add an example CLI tool to showcase PATs 2023-05-10 15:35:54 +02:00
Szilárd Dóró
d4a0aad2dd Merge pull request #1913 from nhost/changeset-release/main
chore: update versions
2023-05-10 14:24:09 +02:00
github-actions[bot]
1030813279 chore: update versions 2023-05-10 11:50:46 +00:00
Nuno Pato
917a14aa40 Merge pull request #1912 from nhost/docs/add-metrics
Add section on Metrics to the documentation
2023-05-10 11:49:27 +00:00
Szilárd Dóró
6381d1b095 Merge pull request #1893 from nhost/feat/metrics-page 2023-05-10 13:43:34 +02:00
Nuno Pato
8dbdc0bf50 asd 2023-05-10 11:32:34 +00:00
Nuno Pato
8c072a4c6e asd 2023-05-10 10:10:38 +00:00
Nuno Pato
fe341519f7 Add section on Metrics to the documentation 2023-05-10 10:09:12 +00:00
Szilárd Dóró
ea09384064 fix: update import paths 2023-05-10 10:45:20 +02:00
Szilárd Dóró
49b9972885 chore: add changeset 2023-05-10 10:42:35 +02:00
Szilárd Dóró
98c541ee52 feat: introduce useIsCurrentUserOwner hook
- chore: improve file structure
2023-05-10 10:41:35 +02:00
Szilárd Dóró
79aaa91e67 chore: update hasura-auth version 2023-05-09 17:19:40 +02:00
Szilárd Dóró
df4d24320a chore: update example metadata 2023-05-09 14:33:49 +02:00
Szilárd Dóró
757c888656 Merge pull request #1910 from nhost/changeset-release/main
chore: update versions
2023-05-09 11:40:16 +02:00
github-actions[bot]
7c13eb5f9b chore: update versions 2023-05-09 09:17:43 +00:00
Szilárd Dóró
a84608e086 Merge pull request #1907 from nhost/fix/upgrade
fix(dashboard): unpause after upgrading a paused project to pro
2023-05-09 11:13:44 +02:00
Szilárd Dóró
e43c079b9c feat: poll project state after unpausing with upgrade 2023-05-09 10:50:34 +02:00
Szilárd Dóró
3f396a9ebb chore: add changesets 2023-05-08 19:28:42 +02:00
Szilárd Dóró
6ed605beb8 fix: update desiredState on plan change 2023-05-08 17:58:06 +02:00
Szilárd Dóró
edd223d29c fix: don't go to 404 page unnecessarily 2023-05-08 17:47:04 +02:00
Szilárd Dóró
baa3ef794e feat(examples): add PAT example 2023-05-08 17:03:49 +02:00
Szilárd Dóró
da7ffbe523 feat: add useSignInPAT hook 2023-05-08 16:04:00 +02:00
Szilárd Dóró
15a985e079 fix: don't break dashboard build 2023-05-08 15:29:29 +02:00
Szilárd Dóró
8ff00a4258 chore(ci): bump pnpm version to v8.4.0 2023-05-08 15:19:53 +02:00
Szilárd Dóró
7e27d7c0a1 chore: update changeset, bump turbo version 2023-05-08 15:17:42 +02:00
Szilárd Dóró
49f9b8372a chore: bump pnpm version to v8.4.0 2023-05-08 15:09:29 +02:00
Szilárd Dóró
3ca70554c8 feat: add support for PAT sign in 2023-05-08 14:34:12 +02:00
Szilárd Dóró
077b200510 Merge branch 'main' into feat/pat 2023-05-08 14:04:11 +02:00
Szilárd Dóró
925bf0f13f Merge pull request #1905 from nhost/changeset-release/main
chore: update versions
2023-05-08 13:51:55 +02:00
github-actions[bot]
30d35f9607 chore: update versions 2023-05-08 10:10:25 +00:00
Szilárd Dóró
755aa56f12 Merge pull request #1904 from nhost/fix/package-json-types
chore: add `types` to `package.json`
2023-05-08 12:09:11 +02:00
Szilárd Dóró
4c7e7c57a9 fix: don't break tests 2023-05-08 10:29:13 +02:00
Szilárd Dóró
36708e2853 Merge pull request #1903 from hrmoller/fix/wrong-linking-in-docs
Fixed linking to wrong destination in docs
2023-05-08 10:26:31 +02:00
Szilárd Dóró
90c6031189 chore: add types to package.json 2023-05-08 09:54:27 +02:00
Martin Møller
f044dbdb10 Fixed linking to wrong destination 2023-05-05 08:03:50 +02:00
Szilárd Dóró
c2f3bce5f9 Merge pull request #1902 from nhost/chore/probot-improvements
chore: refine probot config
2023-05-04 16:20:59 +02:00
Szilárd Dóró
22d9877b97 chore: update probot config 2023-05-04 16:04:09 +02:00
Szilárd Dóró
628e96dcc3 Merge pull request #1901 from nhost/chore/probot-stale
chore: add probot/stale configuration
2023-05-04 15:32:50 +02:00
Szilárd Dóró
3e9d3c42b6 fix: disable exemptLabels 2023-05-04 15:20:23 +02:00
Szilárd Dóró
a1e7b87c38 add probot/stale configuration 2023-05-04 15:08:37 +02:00
David Barroso
1bd800359e Merge pull request #1894 from nhost/dbarroso/obs-dash-improv
fix: observability: filter pod metrics
2023-05-03 12:59:07 +02:00
David Barroso
54a204a34e fix: observability: filter pod metrics 2023-05-03 10:09:27 +02:00
Szilárd Dóró
b17e8d6f3c fix: don't break e2e tests 2023-05-03 10:00:29 +02:00
Szilárd Dóró
12e2855f01 chore: update description and prevent free access
- bump `jsdom` to v22
- increase test timeout
2023-05-03 09:57:11 +02:00
Szilárd Dóró
c1080d9e63 fix: don't break the UI 2023-05-03 09:38:48 +02:00
Szilárd Dóró
e4972b8307 feat: add Grafana page 2023-05-03 09:35:06 +02:00
Szilárd Dóró
2e7ec0697e Merge pull request #1881 from nhost/changeset-release/main
chore: update versions
2023-05-02 21:06:46 +02:00
github-actions[bot]
2d9baec9d4 chore: update versions 2023-05-02 18:56:49 +00:00
Szilárd Dóró
7a7750be0b Merge pull request #1892 from nhost/fix/disable-downgrade
fix: disallow downgrading through the UI
2023-05-02 20:55:24 +02:00
Szilárd Dóró
0f34f0c6b9 fix: disallow downgrading 2023-05-02 15:31:39 +02:00
Nestor Manrique
d05253183a Merge pull request #1883 from nhost/nestor/fix-grafana-dashboard-datasource
fix: use dashboard externally exported version
2023-05-02 13:15:40 +02:00
Nestor Manrique
65df016bbc fix: fix datasource config 2023-04-28 17:28:43 +02:00
David Barroso
3e6ee1ae97 Merge pull request #1882 from nhost/dbarroso/observability-dashboard
feat: added project metrics observability dashboard
2023-04-28 14:32:55 +02:00
David Barroso
6042ed101f feat: added project metrics observability dashboard 2023-04-28 11:49:33 +02:00
Szilárd Dóró
384bce59bf Merge pull request #1859 from nhost/renovate/react-monorepo
chore(deps): update react monorepo
2023-04-28 09:59:24 +02:00
Szilárd Dóró
8da291ad4d chore: add changeset 2023-04-28 09:42:13 +02:00
renovate[bot]
f94eb3c467 chore(deps): update react monorepo 2023-04-27 18:07:47 +00:00
Szilárd Dóró
9baf3f4ac7 Merge pull request #1876 from nhost/changeset-release/main
chore: update versions
2023-04-27 20:00:27 +02:00
github-actions[bot]
9c406548e3 chore: update versions 2023-04-27 17:47:36 +00:00
Szilárd Dóró
1c08cd1949 Merge pull request #1878 from nhost/fix/local-users-page 2023-04-27 19:46:28 +02:00
Szilárd Dóró
adc828a582 fix: don't enter an infinite loop 2023-04-27 17:45:04 +02:00
Szilárd Dóró
2f220db84a extend machine with PAT sign in 2023-04-27 17:06:26 +02:00
Szilárd Dóró
f1ec6b9a93 Merge pull request #1871 from nhost/docs/local-development-migration
docs: add migration info
2023-04-27 16:37:40 +02:00
Szilárd Dóró
233b7e383e Merge pull request #1873 from nhost/changeset-release/main
chore: update versions
2023-04-27 16:06:05 +02:00
github-actions[bot]
7ea469a1e3 chore: update versions 2023-04-27 13:46:37 +00:00
Szilárd Dóró
ebd218c180 Merge pull request #1855 from nhost/feat/resource-replicas
feat(dashboard): Service Replicas
2023-04-27 15:45:31 +02:00
Nuno Pato
5ab1626f73 Merge pull request #1869 from nhost/docs/add-service-replicas
docs: add service replicas
2023-04-27 13:35:53 +00:00
Nuno Pato
444c3b86ca asd 2023-04-27 13:34:35 +00:00
Szilárd Dóró
7238412341 Merge pull request #1872 from nhost/chore/remove-backend-url
chore(dashboard): remove deprecated environment variable
2023-04-27 14:36:09 +02:00
Szilárd Dóró
f6639ae05c chore: add changeset 2023-04-27 13:54:27 +02:00
Szilárd Dóró
d8ceccec5d chore: add changeset 2023-04-27 13:41:11 +02:00
Szilárd Dóró
6db257d4c7 chore: remove deprecated backend URL 2023-04-27 13:40:41 +02:00
Szilárd Dóró
93dab2d183 docs: add migration info 2023-04-27 11:56:41 +02:00
Nuno Pato
dfc18368be asd 2023-04-26 18:09:42 +00:00
Nuno Pato
f7c6e80bf2 asd 2023-04-26 17:38:53 +00:00
Nuno Pato
573cac1431 asd 2023-04-26 17:23:11 +00:00
Nuno Pato
d72ae3f362 docs: add service replicas 2023-04-26 00:42:16 +00:00
Szilárd Dóró
49ec7ec385 fix: mobile improvements, improved validation 2023-04-25 15:30:38 +02:00
Szilárd Dóró
7d2b4083c2 chore: reorder components, update labels 2023-04-24 17:24:54 +02:00
Szilárd Dóró
696b493745 chore: increase test timeout 2023-04-24 16:23:51 +02:00
Szilárd Dóró
15a117a861 feat: improve cost calculation 2023-04-24 15:48:20 +02:00
Szilárd Dóró
e7ff1f79f8 feat: add information about replicas 2023-04-24 14:29:20 +02:00
Szilárd Dóró
33c7368a2e chore: update validation error message 2023-04-24 11:40:05 +02:00
Szilárd Dóró
664c182c8e fix: use font-medium for confirmation labels 2023-04-24 11:36:48 +02:00
Szilárd Dóró
c1ab4e0a77 chore: improve validation messages 2023-04-24 11:36:10 +02:00
Szilárd Dóró
4a4bd61757 chore: update tooltip label 2023-04-24 11:16:51 +02:00
Szilárd Dóró
b6d05289be fix: don't fail tests 2023-04-24 11:13:39 +02:00
Szilárd Dóró
5857458ca5 chore: improve resources form validation 2023-04-24 11:09:00 +02:00
Szilárd Dóró
2fb1145fe0 chore: add changeset 2023-04-24 10:22:44 +02:00
Szilárd Dóró
546d710102 Merge branch 'main' into feat/resource-replicas 2023-04-24 10:21:04 +02:00
Szilárd Dóró
7756103476 Merge pull request #1861 from nhost/changeset-release/main 2023-04-24 09:38:50 +02:00
github-actions[bot]
fef9456c12 chore: update versions 2023-04-23 19:36:24 +00:00
Szilárd Dóró
2d6d56f6b0 Merge pull request #1860 from nhost/fix/project-details
fix(dashboard): filter projects by workspace
2023-04-23 21:35:16 +02:00
Szilárd Dóró
f54be0fefd fix: don't break unit tests 2023-04-23 19:27:36 +02:00
Szilárd Dóró
4e76d388ab fix: remove unused query parameter 2023-04-23 16:42:33 +02:00
Szilárd Dóró
84b84ab785 fix: filter projects by workspace 2023-04-23 16:34:39 +02:00
Szilárd Dóró
ed66769688 Merge branch 'main' into feat/resource-replicas 2023-04-21 14:31:51 +02:00
Szilárd Dóró
a0298e0bdb chore: increase test timeout, improve stability 2023-04-20 16:40:42 +02:00
Szilárd Dóró
3fd94b1cdf chore: improve validation, fix tests 2023-04-20 16:08:37 +02:00
Szilárd Dóró
61d5f7d616 feat: make use of replicas from API 2023-04-20 14:56:52 +02:00
Szilárd Dóró
cde9a0a715 chore: extend tests, improve validation 2023-04-20 14:50:12 +02:00
Szilárd Dóró
eae6349b04 feat: add new pricing to confirmation dialog 2023-04-20 14:19:53 +02:00
Szilárd Dóró
211b930b84 chore: fix after effects of the new data structure 2023-04-20 13:53:06 +02:00
Szilárd Dóró
4ae463074b chore: simplify form data structure 2023-04-20 13:19:59 +02:00
Szilárd Dóró
1c5a4746f7 chore: improve validation error 2023-04-20 11:35:25 +02:00
Szilárd Dóró
d6ae1fa44a feat: resource validation when replicas > 1 2023-04-20 10:28:31 +02:00
Szilárd Dóró
a3abb81b37 feat: add replica slider to services 2023-04-19 15:57:57 +02:00
1444 changed files with 36679 additions and 17074 deletions

View File

@@ -14,7 +14,7 @@ runs:
steps:
- uses: pnpm/action-setup@v2.2.4
with:
version: 7.17.0
version: 8.6.0
run_install: false
- name: Get pnpm cache directory
id: pnpm-cache-dir

View File

@@ -49,21 +49,9 @@ runs:
if: ${{ inputs.start == 'true' }}
shell: bash
working-directory: ${{ inputs.path }}
run: nhost dev --no-browser &
- name: Wait for the app to be ready
id: wait
if: ${{ inputs.start == 'true' && inputs.wait == 'true' }}
shell: bash
working-directory: ${{ inputs.path }}
continue-on-error: true
run: |
curl -sSf --connect-timeout 3 \
--max-time 5 \
--retry 300 \
--retry-delay 1 \
--retry-max-time 300 \
--retry-connrefused \
'http://localhost:9695' > /dev/null
cp .secrets.example .secrets
nhost up
- name: Log on failure
if: steps.wait.outcome == 'failure'
shell: bash

16
.github/stale.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
# Configuration for probot-stale - https://github.com/probot/stale
daysUntilStale: 180
daysUntilClose: 7
limitPerRun: 30
onlyLabels: []
exemptLabels: []
exemptProjects: false
exemptMilestones: false
exemptAssignees: false
staleLabel: stale
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

View File

@@ -43,7 +43,7 @@ jobs:
BUILD: 'all'
- name: Check if the pnpm lockfile changed
id: changed-lockfile
uses: tj-actions/changed-files@v35
uses: tj-actions/changed-files@v36
with:
files: pnpm-lock.yaml
# * Determine a pnpm filter argument for packages that have been modified.

View File

@@ -28,7 +28,7 @@ jobs:
path: packages/nhost-js
start: true
- name: should be running
run: curl -sSf 'http://localhost:9695' > /dev/null
run: curl -sSf 'https://local.hasura.nhost.run' > /dev/null
stop:
runs-on: ubuntu-latest
@@ -48,28 +48,6 @@ jobs:
exit 1
fi
wait:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install the Nhost CLI and start the application
uses: ./.github/actions/nhost-cli
with:
path: packages/nhost-js
start: true
wait: false
- name: should not be ready
run: curl -sSf -o /dev/null 'http://localhost:9695' > /dev/null && exit 1 || true
- name: should eventually be ready
run: |
curl -sSf --connect-timeout 3 \
--max-time 5 \
--retry 300 \
--retry-delay 1 \
--retry-max-time 300 \
--retry-connrefused \
'http://localhost:9695' > /dev/null
config:
runs-on: ubuntu-latest
steps:
@@ -79,14 +57,10 @@ jobs:
with:
path: packages/nhost-js
start: true
config: |
services:
auth:
image: nhost/hasura-auth:0.15.0
- name: should find the injected hasura-auth version
run: |
VERSION=$(curl -sSf 'http://localhost:1337/v1/auth/version')
EXPECTED_VERSION='{"version":"v0.15.0"}'
VERSION=$(curl -sSf 'https://local.auth.nhost.run/v1/version')
EXPECTED_VERSION='{"version":"v0.20.1"}'
if [ "$VERSION" != "$EXPECTED_VERSION" ]; then
echo "Expected version $EXPECTED_VERSION but got $VERSION"
exit 1
@@ -99,6 +73,6 @@ jobs:
- name: Install the Nhost CLI
uses: ./.github/actions/nhost-cli
with:
version: v0.8.10
version: v1.0.1
- name: should find the correct version
run: nhost version | head -n 1 | grep v0.8.10 || exit 1
run: nhost --version | head -n 1 | grep v1.0.1 || exit 1

1
.gitignore vendored
View File

@@ -26,6 +26,7 @@ tmp/
.pnpm-store
.turbo
.env
.secrets
out/
# Custom

View File

@@ -36,6 +36,7 @@ export default defineConfig({
}
},
build: {
target: 'es2019',
sourcemap: true,
lib: {
entry,

View File

@@ -28,7 +28,6 @@ module.exports = {
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
curly: ['error', 'all'],
'no-restricted-exports': 'off',
'no-undef': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': [
@@ -67,17 +66,7 @@ module.exports = {
{
group: ['..*'],
message:
'Please use absolute imports instead. (e.g: @/ui/, @/hooks/, etc.)',
},
{
group: ['@/components/ui', '@/components/ui/*'],
message:
'Please use shorthand imports instead. (e.g: @/ui/ActivityIndicator, @/ui/Button, etc.)',
},
{
group: ['@/components/ui/v2*'],
message:
'Please use shorthand imports instead. (e.g: @/ui/v2/ActivityIndicator, @/ui/v2/Button, etc.)',
'Please use absolute imports instead. (e.g: @/components/, @/hooks/, etc.)',
},
{
group: ['@testing-library/react*'],

View File

@@ -1,5 +1,155 @@
# @nhost/dashboard
## 0.17.3
### Patch Changes
- 01eeef9de: chore(misc): under the hood improvements
- 21e13db05: chore(deps): bump `@types/react` to `v18.2.7` and `turbo` to `v1.10.1`
- f16433ae6: chore(secrets): allow empty secrets and environment variables
- aa3c62989: chore(cli): bump Nhost CLI version to v1.0
- @nhost/react-apollo@5.0.24
- @nhost/nextjs@1.13.26
## 0.17.2
### Patch Changes
- 88a4983f: chore(misc): under the hood improvements
## 0.17.1
### Patch Changes
- 9b0d4dde: feat(secrets): enable secrets
## 0.17.0
### Minor Changes
- 15d84a19: Add postgres 14.6-20230525
## 0.16.14
### Patch Changes
- 4c626174: chore: updated import paths, improved directory structure
- cc047b71: chore(deps): bump `@fontsource` monorepo to `v5.0.0`
- 99edd012: feat(account): add support for personal access tokens
## 0.16.13
### Patch Changes
- 78c7109c: feat(settings): allow selecting service versions
## 0.16.12
### Patch Changes
- 399009d6: fix(gql): don't enter an infinite loop when fetching remote app data
- 329e5a91: fix(deployments): use the same sorting of deployments everywhere
- 6d559d6e: chore(settings): add under the hood improvements to the settings page
- 12eb236c: chore(deps): bump `prettier-plugin-tailwindcss` to `v0.3.0`
- f9b81a2a: chore(deps): bump `turbo` to `v1.9.8`
- 1345741b: fix(projects): don't redirect to 404 on project creation
- Updated dependencies [7fea29a8]
- @nhost/react-apollo@5.0.23
- @nhost/nextjs@1.13.25
## 0.16.11
### Patch Changes
- 1230b722: fix(projects): don't redirect to 404 on when the project is renamed
- @nhost/react-apollo@5.0.22
- @nhost/nextjs@1.13.24
## 0.16.10
### Patch Changes
- Updated dependencies [da03bf39]
- @nhost/react-apollo@5.0.21
- @nhost/nextjs@1.13.23
## 0.16.9
### Patch Changes
- 349aac36: fix(settings): use region domain when constructing the postgres connection string
## 0.16.8
### Patch Changes
- 20fb69fa: chore(projects): change the way how API URLs are constructed
## 0.16.7
### Patch Changes
- 49f9b837: chore(docker): bump `pnpm` to `v8.4.0` and `turbo` to `v1.9.3`
- 3f478a4e: chore(deps): bump `vitest` to `v0.31.0`, `@types/react` to `v18.2.6` and `@types/react-dom` to `v18.2.4`
## 0.16.6
### Patch Changes
- d926f156: fix(projects): redirect to 404 when an invalid project is opened
- 49b99728: fix(projects): disable features for non-owner members of workspaces
## 0.16.5
### Patch Changes
- 12e2855f: chore(deps): bump `jsdom` to v22
- e4972b83: feat(metrics): add Grafana page
## 0.16.4
### Patch Changes
- 3f396a9e: fix(projects): unpause after upgrading a paused project to pro
- 3f396a9e: fix(projects): don't redirect to 404 page after project creation
## 0.16.3
### Patch Changes
- Updated dependencies [90c60311]
- @nhost/react-apollo@5.0.20
- @nhost/nextjs@1.13.22
## 0.16.2
### Patch Changes
- 0f34f0c6: fix(projects): disallow downgrading to free plan
- 8da291ad: chore(deps): bump `@types/react` to v18.2.0 and `@types/react-dom` to v18.2.1
## 0.16.1
### Patch Changes
- adc828a5: fix(gql): don't enter an infinite loop when fetching remote app data
## 0.16.0
### Minor Changes
- 2fb1145f: feat(compute): add support for replicas
### Patch Changes
- d8ceccec: chore(env): remove deprecated `NHOST_BACKEND_URL` environment variable
## 0.15.2
### Patch Changes
- 84b84ab7: fix(projects): filter projects by workspace
## 0.15.1
### Patch Changes

View File

@@ -3,7 +3,7 @@ RUN apk add --no-cache libc6-compat
RUN apk update
WORKDIR /app
RUN yarn global add turbo@1.8.6
RUN yarn global add turbo@1.10.1
COPY . .
RUN turbo prune --scope="@nhost/dashboard" --docker
@@ -29,7 +29,7 @@ ENV NEXT_PUBLIC_NHOST_HASURA_CONSOLE_URL __NEXT_PUBLIC_NHOST_HASURA_CONSOLE_URL_
ENV NEXT_PUBLIC_NHOST_HASURA_MIGRATIONS_API_URL __NEXT_PUBLIC_NHOST_HASURA_MIGRATIONS_API_URL__
ENV NEXT_PUBLIC_NHOST_HASURA_API_URL __NEXT_PUBLIC_NHOST_HASURA_API_URL__
RUN yarn global add pnpm@7.17.0
RUN yarn global add pnpm@8.6.0
COPY .gitignore .gitignore
COPY --from=pruner /app/out/json/ .
COPY --from=pruner /app/out/pnpm-*.yaml .

View File

@@ -13,7 +13,7 @@ pnpm install
Depending on the environment you wish to target you can configure environment variables in `.env.<target_environment>.local`.
- `.env.development`: This file is used if you run `nhost dev`
- `.env.development`: This file is used if you run `nhost up`
- `.env.development.local`: This file is used if you run `pnpm dev`. It takes precedence over `.env.local` if available.
- `.env.production.local`: This file is used if you run `pnpm build`. It takes precedence over `.env.local` if available.
- `.env.local`: This file is used if you run either `pnpm dev` or `pnpm build`.
@@ -27,7 +27,7 @@ You can connect the Nhost Dashboard to your **locally running** Nhost backend in
First, you need to run the following command to start your backend locally:
```bash
cd <your_nhost_project> && nhost dev
cd <your_nhost_project> && nhost up
```
You can connect the Nhost Dashboard to your locally running backend by setting the following environment variables in `.env.development.local`:
@@ -92,7 +92,7 @@ pnpm storybook
| Name | Description |
| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `react/react-in-jsx-scope` | Disabled because we don't need to import `React` anymore. |
| `react/jsx-props-no-spreading` | Disabled because we heavily rely on props spreading in our `@/ui/v2` components. |
| `react/jsx-props-no-spreading` | Disabled because we heavily rely on props spreading in our `@/components/ui/v2` components. |
| `react/require-default-props` | Disabled because we use TypeScript instead of PropTypes. |
| `react-hooks/exhaustive-deps` | Because we already had several rule violations when proper ESLint rules were introduced, we changed this rule to a warning. |
| `import/extensions` | JS / TS files should be imported without file extensions. |
@@ -101,7 +101,6 @@ pnpm storybook
| `import/order` | Until we have a better auto-formatter, we disable this rule. |
| `import/no-extraneous-dependencies` | `devDependencies` should be excluded from the list of disallowed imports. |
| `curly` | By default it only enforces curly braces for multi-line blocks, but it should be enforced for single-line blocks as well. |
| `no-restricted-exports` | `export { default } from './module'` is used heavily in `@/ui/v2` which is a restricted export by default. |
| `@typescript-eslint/no-use-before-define` | Order of type references should be ignored. |
| `no-undef` | [Official TypeScript ESLint packages](https://github.com/typescript-eslint/typescript-eslint/issues/4671#issuecomment-1065948494) are turning off this rule. |
| `@typescript-eslint/no-shadow` | TypeScript specific implementation of `no-shadow`. |

View File

@@ -0,0 +1,51 @@
import { faker } from '@faker-js/faker';
import type { Page } from '@playwright/test';
import { expect, test } from '@playwright/test';
let page: Page;
test.beforeAll(async ({ browser }) => {
page = await browser.newPage();
});
test.beforeEach(async () => {
await page.goto('/');
});
test.afterAll(async () => {
await page.close();
});
test('should be able to create then delete a personal access token', async () => {
await page.waitForLoadState('networkidle');
await page.getByRole('banner').getByRole('button').last().click();
await page.getByRole('link', { name: /account settings/i }).click();
await page
.getByRole('button', { name: /create personal access token/i })
.click();
const patName = faker.lorem.slug(3);
await page.getByRole('textbox', { name: /name/i }).fill(patName);
await page.getByRole('button', { name: /expiration/i }).click();
await page.getByRole('option', { name: /7 days/i }).click();
await page.getByRole('button', { name: /create/i }).click();
await expect(
page.getByText(
/this token will not be shown again. make sure to copy it now./i,
),
).toBeVisible();
await page.getByRole('button', { name: /close/i }).click();
await expect(page.getByText(patName)).toBeVisible();
await page
.getByRole('button', { name: `More options for ${patName}`, exact: true })
.click();
await page.getByRole('menuitem', { name: /delete/i }).click();
await page.getByRole('button', { name: /delete/i }).click();
await expect(page.getByText(patName)).not.toBeVisible();
});

View File

@@ -30,7 +30,7 @@ test('should show a sidebar with menu items', async () => {
const navLocator = page.getByRole('navigation', { name: /main navigation/i });
await expect(navLocator).toBeVisible();
await expect(navLocator.getByRole('list').getByRole('listitem')).toHaveCount(
10,
11,
);
await expect(
navLocator.getByRole('link', { name: /overview/i }),
@@ -53,6 +53,9 @@ test('should show a sidebar with menu items', async () => {
navLocator.getByRole('link', { name: /backups/i }),
).toBeVisible();
await expect(navLocator.getByRole('link', { name: /logs/i })).toBeVisible();
await expect(
navLocator.getByRole('link', { name: /metrics/i }),
).toBeVisible();
await expect(
navLocator.getByRole('link', { name: /settings/i }),
).toBeVisible();

View File

@@ -46,7 +46,7 @@ async function globalTeardown() {
await hasuraPage.locator('a', { hasText: /data/i }).click();
await hasuraPage.getByRole('link', { name: /sql/i }).click();
await hasuraPage.getByRole('textbox').fill(`
await hasuraPage.locator('#raw_sql > textarea').fill(`
DO $$ DECLARE
tablename text;
BEGIN

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/dashboard",
"version": "0.15.1",
"version": "0.17.3",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
@@ -11,11 +11,11 @@
"lint": "next lint --max-warnings 0",
"test": "vitest",
"codegen": "graphql-codegen --config graphql.config.yaml --errors-only",
"nhost:dev": "nhost dev -d",
"nhost:dev": "nhost up",
"format": "prettier --write \"src/**/*.{js,ts,tsx,jsx,json,md}\" --plugin-search-dir=.",
"storybook": "start-storybook -p 6006 -s public",
"build-storybook": "build-storybook",
"e2e": "npx playwright@1.31.2 install --with-deps && playwright test"
"e2e": "npx playwright@1.34.0 install --with-deps && playwright test"
},
"dependencies": {
"@apollo/client": "^3.7.10",
@@ -24,8 +24,8 @@
"@emotion/react": "^11.10.5",
"@emotion/server": "^11.4.0",
"@emotion/styled": "^11.10.5",
"@fontsource/inter": "^4.5.14",
"@fontsource/roboto-mono": "^4.5.8",
"@fontsource/inter": "^5.0.0",
"@fontsource/roboto-mono": "^5.0.0",
"@graphiql/react": "^0.17.0",
"@graphiql/toolkit": "^0.8.2",
"@headlessui/react": "^1.6.5",
@@ -84,11 +84,10 @@
"@faker-js/faker": "^7.6.0",
"@graphql-codegen/cli": "^3.0.0",
"@graphql-codegen/typescript": "^3.0.0",
"@graphql-codegen/typescript-graphql-request": "^4.5.1",
"@graphql-codegen/typescript-operations": "^3.0.0",
"@graphql-codegen/typescript-react-apollo": "^3.3.1",
"@next/bundle-analyzer": "^12.3.1",
"@playwright/test": "^1.31.2",
"@playwright/test": "^1.34.0",
"@storybook/addon-actions": "^6.5.14",
"@storybook/addon-essentials": "^6.5.14",
"@storybook/addon-interactions": "^6.5.14",
@@ -105,15 +104,15 @@
"@types/lodash.debounce": "^4.0.7",
"@types/node": "^16.11.7",
"@types/pluralize": "^0.0.29",
"@types/react": "18.0.37",
"@types/react-dom": "18.0.11",
"@types/react": "18.2.7",
"@types/react-dom": "18.2.4",
"@types/react-table": "^7.7.12",
"@types/testing-library__jest-dom": "^5.14.5",
"@types/validator": "^13.7.10",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"@vitejs/plugin-react": "^4.0.0",
"@vitest/coverage-c8": "^0.30.0",
"@vitest/coverage-c8": "^0.31.0",
"autoprefixer": "^10.4.13",
"babel-loader": "^8.3.0",
"babel-plugin-transform-remove-console": "^6.9.4",
@@ -129,7 +128,7 @@
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"jsdom": "^21.0.0",
"jsdom": "^22.0.0",
"lint-staged": ">=13",
"msw": "^1.0.1",
"msw-storybook-addon": "^1.6.3",
@@ -137,7 +136,7 @@
"postcss": "^8.4.19",
"prettier": "^2.7.1",
"prettier-plugin-organize-imports": "^3.2.0",
"prettier-plugin-tailwindcss": "^0.2.0",
"prettier-plugin-tailwindcss": "^0.3.0",
"react-date-fns-hooks": "^0.9.4",
"require-from-string": "^2.0.2",
"snake-case": "^3.0.4",
@@ -147,8 +146,7 @@
"tsconfig-paths-webpack-plugin": "^4.0.0",
"vite": "^4.0.2",
"vite-tsconfig-paths": "^4.0.3",
"vitest": "^0.30.0",
"webpack": "^5.75.0"
"vitest": "^0.31.0"
},
"browserslist": {
"production": [

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@@ -1,120 +0,0 @@
import Box from '@/ui/v2/Box';
import Button from '@/ui/v2/Button';
import Input from '@/ui/v2/Input';
import Text from '@/ui/v2/Text';
import { nhost } from '@/utils/nhost';
import { triggerToast } from '@/utils/toast';
import React, { useState } from 'react';
export function ChangePasswordModal({ close }: any) {
const [formState, setFormState] = useState<{
loading: boolean;
error: null | string;
}>({
loading: false,
error: null,
});
const [newPassword, setNewPassword] = useState('');
const [newPasswordConfirm, setNewPasswordConfirm] = useState('');
const handleSubmit = async (e: React.SyntheticEvent<HTMLFormElement>) => {
e.preventDefault();
setFormState({
loading: true,
error: null,
});
if (newPassword !== newPasswordConfirm) {
setFormState({
loading: false,
error: 'Passwords do not match',
});
return;
}
const { error } = await nhost.auth.changePassword({ newPassword });
if (error) {
setFormState({
loading: false,
error: error.message,
});
return;
}
triggerToast(`Your password has been updated`);
close();
};
return (
<Box className="w-full max-w-md rounded-md px-6 py-6 text-left">
<form onSubmit={handleSubmit}>
<div className="grid grid-flow-row gap-4">
<div className="grid grid-flow-row gap-2">
<Text variant="h3">Choose New Password</Text>
<Text className="mt-2 font-normal">
Make sure to pick a strong password with at least 8 characters.
</Text>
</div>
<div className="grid grid-flow-row gap-2">
<Input
type="password"
id="newPassword"
name="newPassword"
label="New Password"
placeholder="New password"
autoFocus
value={newPassword}
onChange={(event) => setNewPassword(event.target.value)}
hideEmptyHelperText
fullWidth
required
/>
<Input
type="password"
id="confirmNewPassword"
name="confirmNewPassword"
label="Confirm New Password"
placeholder="Confirm new password"
value={newPasswordConfirm}
onChange={(event) => setNewPasswordConfirm(event.target.value)}
hideEmptyHelperText
fullWidth
required
/>
</div>
<div className="grid grid-flow-row gap-2">
{formState.error && (
<Text className="w-full px-4 text-center" color="error">
Error: {formState.error}
</Text>
)}
<Button type="submit" loading={formState.loading}>
Set New Password
</Button>
<Button
type="reset"
variant="outlined"
color="secondary"
onClick={close}
>
Cancel
</Button>
</div>
</div>
</form>
</Box>
);
}
export default ChangePasswordModal;

View File

@@ -1,19 +0,0 @@
import Status, { StatusEnum } from '@/ui/Status';
import Box from '@/ui/v2/Box';
import { isDevOrStaging } from '@/utils/helpers';
import type { PropsWithChildren } from 'react';
export function StagingMetadata({ children }: PropsWithChildren<unknown>) {
return (
isDevOrStaging() && (
<div className="mx-auto mt-10 max-w-sm">
<Box className="mx-auto flex flex-col rounded-md border p-5 text-center">
<Status status={StatusEnum.Deploying}>Internal info</Status>
{children}
</Box>
</div>
)
);
}
export default StagingMetadata;

View File

@@ -1,45 +0,0 @@
import { ChangePlanModal } from '@/components/applications/ChangePlanModal';
import { useDialog } from '@/components/common/DialogProvider';
import { Alert } from '@/ui/Alert';
import Button from '@/ui/v2/Button';
import Text from '@/ui/v2/Text';
import type { DetailedHTMLProps, HTMLProps } from 'react';
import { twMerge } from 'tailwind-merge';
export interface UnlockFeatureByUpgradingProps
extends DetailedHTMLProps<HTMLProps<HTMLDivElement>, HTMLDivElement> {
/**
* Message to display in the alert.
*/
message: string;
}
export function UnlockFeatureByUpgrading({
message,
className,
...props
}: UnlockFeatureByUpgradingProps) {
const { openDialog } = useDialog();
return (
<div className={twMerge('flex', className)} {...props}>
<Alert className="grid w-full grid-flow-col place-content-between items-center gap-2">
<Text className="text-left">{message}</Text>
<Button
variant="borderless"
onClick={() => {
openDialog({
component: <ChangePlanModal />,
props: {
PaperProps: { className: 'p-0 max-w-xl w-full' },
},
});
}}
>
Upgrade
</Button>
</Alert>
</div>
);
}

View File

@@ -1,23 +0,0 @@
import Link from '@/ui/v2/Link';
import Text from '@/ui/v2/Text';
export function CheckGithubConfiguration() {
return (
<Text className="mt-2 text-center text-xs">
Do you miss a repository, or do you need to connect another GitHub
account?{' '}
<Link
href={process.env.NEXT_PUBLIC_GITHUB_APP_INSTALL_URL}
target="_blank"
rel="noreferrer noopener"
className="text-xs font-medium"
underline="hover"
>
Manage your GitHub configuration
</Link>
.
</Text>
);
}
export default CheckGithubConfiguration;

View File

@@ -1,35 +0,0 @@
import GithubIcon from '@/components/icons/GithubIcon';
import Button from '@/ui/v2/Button';
import ArrowSquareOutIcon from '@/ui/v2/icons/ArrowSquareOutIcon';
import Text from '@/ui/v2/Text';
export default function GitHubInstallNhostApplication() {
return (
<div className="grid grid-flow-row justify-center gap-2 p-0.5">
<GithubIcon className="mx-auto h-8 w-8" />
<div className="text-center">
<Text variant="h3" component="h2">
Install the Nhost GitHub Application
</Text>
<Text variant="subtitle2">
Install the Nhost application on your GitHub account and update
permissions to automatically track repositories.
</Text>
</div>
<Button
href={process.env.NEXT_PUBLIC_GITHUB_APP_INSTALL_URL}
// Both `target` and `rel` are available when `href` is set. This is
// a limitation of MUI.
// @ts-ignore
target="_blank"
rel="noreferrer noopener"
endIcon={<ArrowSquareOutIcon className="h-4 w-4" />}
>
Configure the Nhost application on GitHub
</Button>
</div>
);
}

View File

@@ -1,62 +0,0 @@
import { Avatar } from '@/ui/Avatar';
import Divider from '@/ui/v2/Divider';
import PlusCircleIcon from '@/ui/v2/icons/PlusCircleIcon';
import Link from '@/ui/v2/Link';
import List from '@/ui/v2/List';
import { ListItem } from '@/ui/v2/ListItem';
import Text from '@/ui/v2/Text';
import { Fragment } from 'react';
export function GitHubNoRepositoriesAdded({
filteredGitHubAppInstallations,
}: any) {
return (
<div>
<Text className="mt-1 text-center text-lg font-medium">
No repositories found
</Text>
<Text className="text-center text-xs">
Check the Nhost app&apos;s settings on your GitHub account, or install
the app on a new account.
</Text>
<List className="my-2 border-y">
{filteredGitHubAppInstallations.map((githubApp, index) => (
<Fragment key={githubApp.id}>
<ListItem.Root
key={githubApp.id}
className="grid grid-flow-col gap-2 py-2.5 justify-start items-center"
>
<ListItem.Avatar>
<Avatar
avatarUrl={githubApp.accountAvatarUrl as string}
className="mr-1 h-5 w-5"
/>
</ListItem.Avatar>
<ListItem.Text primary={githubApp.accountLogin} />
</ListItem.Root>
{index < filteredGitHubAppInstallations.length - 1 && (
<Divider component="li" />
)}
</Fragment>
))}
</List>
<Link
href={process.env.NEXT_PUBLIC_GITHUB_APP_INSTALL_URL}
target="_blank"
rel="noreferrer noopener"
underline="hover"
className="grid grid-flow-col gap-1 items-center justify-start"
>
<PlusCircleIcon className="w-4 h-4" />
Configure the Nhost application on GitHub.
</Link>
</div>
);
}
export default GitHubNoRepositoriesAdded;

View File

@@ -1,2 +0,0 @@
export * from './Breadcrumbs';
export { default } from './Breadcrumbs';

View File

@@ -1,2 +0,0 @@
export * from './ControlledAutocomplete';
export { default } from './ControlledAutocomplete';

View File

@@ -1,2 +0,0 @@
export * from './ControlledCheckbox';
export { default } from './ControlledCheckbox';

View File

@@ -1,2 +0,0 @@
export * from './ControlledSelect';
export { default } from './ControlledSelect';

View File

@@ -1,2 +0,0 @@
export * from './ControlledSwitch';
export { default } from './ControlledSwitch';

View File

@@ -1,2 +0,0 @@
export * from './DataGrid';
export { default } from './DataGrid';

View File

@@ -1,2 +0,0 @@
export * from './DataGridBody';
export { default } from './DataGridBody';

View File

@@ -1,2 +0,0 @@
export * from './DataGridBooleanCell';
export { default } from './DataGridBooleanCell';

View File

@@ -1,2 +0,0 @@
export * from './DataGridDateCell';
export { default } from './DataGridDateCell';

View File

@@ -1,2 +0,0 @@
export * from './DataGridFrame';
export { default } from './DataGridFrame';

View File

@@ -1,2 +0,0 @@
export * from './DataGridHeader';
export { default } from './DataGridHeader';

View File

@@ -1,2 +0,0 @@
export * from './DataGridNumericCell';
export { default } from './DataGridNumericCell';

View File

@@ -1,2 +0,0 @@
export * from './DataGridPagination';
export { default } from './DataGridPagination';

View File

@@ -1,2 +0,0 @@
export * from './DataGridPreviewCell';
export { default } from './DataGridPreviewCell';

View File

@@ -1,2 +0,0 @@
export * from './DataGridTextCell';
export { default } from './DataGridTextCell';

View File

@@ -1,2 +0,0 @@
export * from './DesktopNav';
export { default } from './DesktopNav';

View File

@@ -1,5 +1,5 @@
import type { CommonDialogProps } from '@/components/ui/v2/Dialog';
import type { DialogFormProps } from '@/types/common';
import type { CommonDialogProps } from '@/ui/v2/Dialog';
import type { ReactElement, ReactNode } from 'react';
import { createContext } from 'react';

View File

@@ -1,7 +1,7 @@
import RetryableErrorBoundary from '@/components/common/RetryableErrorBoundary';
import AlertDialog from '@/ui/v2/AlertDialog';
import { BaseDialog } from '@/ui/v2/Dialog';
import Drawer from '@/ui/v2/Drawer';
import { RetryableErrorBoundary } from '@/components/presentational/RetryableErrorBoundary';
import { AlertDialog } from '@/components/ui/v2/AlertDialog';
import { BaseDialog } from '@/components/ui/v2/Dialog';
import { Drawer } from '@/components/ui/v2/Drawer';
import { useRouter } from 'next/router';
import type { BaseSyntheticEvent, PropsWithChildren } from 'react';
import {

View File

@@ -1,4 +1,4 @@
import type { CommonDialogProps } from '@/ui/v2/Dialog';
import type { CommonDialogProps } from '@/components/ui/v2/Dialog';
import type { ReactElement, ReactNode } from 'react';
import type { DialogConfig, OpenDialogOptions } from './DialogContext';

View File

@@ -1,11 +0,0 @@
import ErrorMessage from '@/components/common/ErrorMessage';
import type { FallbackProps } from 'react-error-boundary';
export default function ErrorBoundaryFallback({
error,
resetErrorBoundary,
}: FallbackProps) {
return (
<ErrorMessage onReset={resetErrorBoundary}>{error.message}</ErrorMessage>
);
}

View File

@@ -1 +0,0 @@
export { default } from './ErrorBoundaryFallback';

View File

@@ -1,2 +0,0 @@
export * from './ErrorMessage';
export { default } from './ErrorMessage';

View File

@@ -1,5 +1,11 @@
import { FeedbackReceived } from '@/components/home/FeedbackReceived';
import { SendFeedback } from '@/components/home/SendFeedback';
import { Avatar } from '@/components/ui/v2/Avatar';
import { Button } from '@/components/ui/v2/Button';
import { Input } from '@/components/ui/v2/Input';
import { Text } from '@/components/ui/v2/Text';
import { useCurrentWorkspaceAndProject } from '@/features/projects/common/hooks/useCurrentWorkspaceAndProject';
import { useInsertFeedbackOneMutation } from '@/utils/__generated__/graphql';
import { useUserData } from '@nhost/nextjs';
import Image from 'next/image';
import type { DetailedHTMLProps, HTMLProps } from 'react';
import { useState } from 'react';
import { twMerge } from 'tailwind-merge';
@@ -7,25 +13,136 @@ import { twMerge } from 'tailwind-merge';
export interface FeedbackFormProps
extends DetailedHTMLProps<HTMLProps<HTMLDivElement>, HTMLDivElement> {}
// TODO: Use `react-hook-form` here instead of the custom solution
// TODO: Use `react-hook-form` here instead of the custom form implementation
export default function FeedbackForm({
className,
...props
}: FeedbackFormProps) {
const { currentProject } = useCurrentWorkspaceAndProject();
const [insertFeedback, { loading }] = useInsertFeedbackOneMutation();
const user = useUserData();
const [feedback, setFeedback] = useState('');
const [feedbackSent, setFeedbackSent] = useState(false);
return (
<div className={twMerge('max-w-md py-4 px-5', className)} {...props}>
{!feedbackSent ? (
<SendFeedback
setFeedbackSent={setFeedbackSent}
feedback={feedback}
setFeedback={setFeedback}
function handleClose() {
setTimeout(() => {
setFeedbackSent(false);
}, 500);
}
async function handleSubmit(e: React.SyntheticEvent<HTMLFormElement>) {
e.preventDefault();
const feedbackWithProjectInfo = [
currentProject && `Project ID: ${currentProject.id}`,
typeof window !== 'undefined' && `URL: ${window.location.href}`,
feedback,
]
.filter(Boolean)
.join('\n\n');
try {
await insertFeedback({
variables: {
feedback: {
feedback: feedbackWithProjectInfo,
},
},
});
setFeedbackSent(true);
setFeedback('');
} catch (error) {
// TODO: Display error to user and use a logging solution
}
}
if (feedbackSent) {
return (
<div
className={twMerge(
'grid max-w-md grid-flow-row justify-center gap-4 py-4 px-5 text-center',
className,
)}
{...props}
>
<Image
src="/assets/FeedbackReceived.svg"
alt="Light bulb with a checkmark"
width={72}
height={72}
/>
) : (
<FeedbackReceived setFeedbackSent={setFeedbackSent} close={() => {}} />
<div className="grid grid-flow-row gap-2">
<Text variant="h3" component="h2" className="text-center">
Feedback Received
</Text>
<Text>
Thanks for sending us your thoughts! Feel free to send more feedback
as you explore the beta, and stay tuned for updates.
</Text>
</div>
<Button
variant="outlined"
color="secondary"
className="mt-2 text-sm+ font-normal"
onClick={handleClose}
>
Go Back
</Button>
</div>
);
}
return (
<div
className={twMerge(
'grid max-w-md grid-flow-row gap-2 py-4 px-5',
className,
)}
{...props}
>
<Text variant="h3" component="h2">
Leave Feedback
</Text>
<Text>
Nhost is still in beta and not everything is in place yet, but we&apos;d
love to know what you think of it so far.
</Text>
<form onSubmit={handleSubmit} className="grid grid-flow-row gap-2">
<div className="grid grid-flow-col place-content-between gap-2">
<Text className="font-medium">
What do you think we should improve?
</Text>
<Avatar
className="h-6 w-6 rounded-full"
alt={user?.displayName}
src={user?.avatarUrl}
>
{user?.displayName}
</Avatar>
</div>
<Input
multiline
value={feedback}
onChange={(event) => setFeedback(event.target.value)}
placeholder="Your feedback"
rows={6}
required
fullWidth
hideEmptyHelperText
/>
<Button type="submit" disabled={!feedback} loading={loading}>
Send Feedback
</Button>
</form>
</div>
);
}

View File

@@ -1,2 +1,2 @@
export * from './FeedbackForm';
export { default } from './FeedbackForm';
export { default as FeedbackForm } from './FeedbackForm';

View File

@@ -1,2 +0,0 @@
export * from './Form';
export { default } from './Form';

View File

@@ -1,2 +0,0 @@
export * from './FormActivityIndicator';
export { default } from './FormActivityIndicator';

View File

@@ -1,2 +0,0 @@
export * from './Header';
export { default } from './Header';

View File

@@ -1 +0,0 @@
export { default } from './HighlightedText';

View File

@@ -1,6 +1,6 @@
import type { NavLinkProps } from '@/components/common/NavLink';
import NavLink from '@/components/common/NavLink';
import type { SvgIconProps } from '@/ui/v2/icons/SvgIcon';
import { NavLink } from '@/components/common/NavLink';
import type { SvgIconProps } from '@/components/ui/v2/icons/SvgIcon';
import type { ForwardedRef, PropsWithoutRef, ReactElement } from 'react';
import { cloneElement, forwardRef, isValidElement } from 'react';
import { twMerge } from 'tailwind-merge';

View File

@@ -1,2 +1,2 @@
export * from './IconLink';
export { default } from './IconLink';
export { default as IconLink } from './IconLink';

View File

@@ -1,2 +0,0 @@
export * from './InlineCode';
export { default } from './InlineCode';

View File

@@ -1,23 +1,22 @@
import { Box } from '@/components/ui/v2/Box';
import { Button } from '@/components/ui/v2/Button';
import { Text } from '@/components/ui/v2/Text';
import { useIsPlatform } from '@/features/projects/common/hooks/useIsPlatform';
import {
GetAllWorkspacesAndProjectsDocument,
GetWorkspaceMemberInvitesToManageDocument,
useGetWorkspaceMemberInvitesToManageQuery,
} from '@/generated/graphql';
import useIsPlatform from '@/hooks/common/useIsPlatform';
import { useSubmitState } from '@/hooks/useSubmitState';
import Box from '@/ui/v2/Box';
import Button from '@/ui/v2/Button';
import Text from '@/ui/v2/Text';
import { nhost } from '@/utils/nhost';
import { triggerToast } from '@/utils/toast';
import { updateOwnCache } from '@/utils/updateOwnCache';
import { useApolloClient } from '@apollo/client';
import { alpha } from '@mui/system';
import { useUserData } from '@nhost/nextjs';
import { useRouter } from 'next/router';
import { useEffect } from 'react';
export function InviteAnnounce() {
export default function InviteNotification() {
const user = useUserData();
const isPlatform = useIsPlatform();
@@ -28,13 +27,18 @@ export function InviteAnnounce() {
useSubmitState();
// @FIX: We probably don't want to poll every ten seconds for possible invites. (We can change later depending on how it works in production.) Maybe just on the workspace page?
const { data, loading, error, refetch, startPolling } =
useGetWorkspaceMemberInvitesToManageQuery({
variables: {
userId: user?.id,
},
skip: !isPlatform || !user,
});
const {
data,
loading,
error,
refetch: refetchInvitations,
startPolling,
} = useGetWorkspaceMemberInvitesToManageQuery({
variables: {
userId: user?.id,
},
skip: !isPlatform || !user,
});
useEffect(() => {
startPolling(15000);
@@ -79,9 +83,14 @@ export function InviteAnnounce() {
});
}
await updateOwnCache(client);
await client.refetchQueries({
include: [
GetAllWorkspacesAndProjectsDocument,
GetWorkspaceMemberInvitesToManageDocument,
],
});
await router.push(`/${invite.workspace.slug}`);
await refetch();
await refetchInvitations();
triggerToast('Workspace invite accepted');
return setSubmitState({
error: null,
@@ -189,5 +198,3 @@ export function InviteAnnounce() {
</Box>
);
}
export default InviteAnnounce;

View File

@@ -0,0 +1 @@
export { default as InviteNotification } from './InviteNotification';

View File

@@ -1,39 +0,0 @@
import ThemeSwitcher from '@/components/common/ThemeSwitcher';
import { Dropdown } from '@/ui/v2/Dropdown';
import IconButton from '@/ui/v2/IconButton';
import UserIcon from '@/ui/v2/icons/UserIcon';
import Text from '@/ui/v2/Text';
import getConfig from 'next/config';
export default function LocalAccountMenu() {
const { publicRuntimeConfig } = getConfig();
return (
<Dropdown.Root className="justify-self-center">
<Dropdown.Trigger hideChevron asChild>
<IconButton
variant="borderless"
color="secondary"
className="h-7 w-7 rounded-full"
sx={{
backgroundColor: (theme) => `${theme.palette.grey[300]} !important`,
}}
>
<UserIcon className="h-4 w-4" />
</IconButton>
</Dropdown.Trigger>
<Dropdown.Content
PaperProps={{
className: 'mt-1 p-6 grid grid-flow-row gap-4 w-full max-w-xs',
}}
>
<ThemeSwitcher label="Theme" />
<Text className="text-center text-xs" color="disabled">
Dashboard Version: {publicRuntimeConfig?.version || 'n/a'}
</Text>
</Dropdown.Content>
</Dropdown.Root>
);
}

View File

@@ -1 +0,0 @@
export { default } from './LocalAccountMenu';

View File

@@ -1 +0,0 @@
export { default } from './MaintenanceAlert';

View File

@@ -1,2 +0,0 @@
export * from './MobileNav';
export { default } from './MobileNav';

View File

@@ -1,5 +1,5 @@
import type { LinkProps } from '@/ui/v2/Link';
import Link from '@/ui/v2/Link';
import type { LinkProps } from '@/components/ui/v2/Link';
import { Link } from '@/components/ui/v2/Link';
import NextLink from 'next/link';
import type { ForwardedRef, PropsWithoutRef } from 'react';
import { forwardRef } from 'react';

View File

@@ -1,2 +1,2 @@
export * from './NavLink';
export { default } from './NavLink';
export { default as NavLink } from './NavLink';

View File

@@ -1,9 +1,9 @@
import type { ButtonProps } from '@/ui/v2/Button';
import Button from '@/ui/v2/Button';
import ChevronLeftIcon from '@/ui/v2/icons/ChevronLeftIcon';
import ChevronRightIcon from '@/ui/v2/icons/ChevronRightIcon';
import Input from '@/ui/v2/Input';
import Text from '@/ui/v2/Text';
import type { ButtonProps } from '@/components/ui/v2/Button';
import { Button } from '@/components/ui/v2/Button';
import { ChevronLeftIcon } from '@/components/ui/v2/icons/ChevronLeftIcon';
import { ChevronRightIcon } from '@/components/ui/v2/icons/ChevronRightIcon';
import { Input } from '@/components/ui/v2/Input';
import { Text } from '@/components/ui/v2/Text';
import type { DetailedHTMLProps, HTMLProps } from 'react';
import { twMerge } from 'tailwind-merge';

View File

@@ -1,3 +1,2 @@
export * from './Pagination';
export { default } from './Pagination';
export { default as Pagination } from './Pagination';

View File

@@ -1 +0,0 @@
export { default } from './ReadOnlyToggle';

View File

@@ -1,2 +0,0 @@
export * from './RetryableErrorBoundary';
export { default } from './RetryableErrorBoundary';

View File

@@ -1,7 +1,7 @@
import Option from '@/ui/v2/Option';
import type { SelectProps } from '@/ui/v2/Select';
import Select from '@/ui/v2/Select';
import useColorPreference from '@/ui/v2/useColorPreference';
import { Option } from '@/components/ui/v2/Option';
import type { SelectProps } from '@/components/ui/v2/Select';
import { Select } from '@/components/ui/v2/Select';
import { useColorPreference } from '@/components/ui/v2/useColorPreference';
export interface ThemeSwitcherProps extends SelectProps<any> {}
@@ -22,6 +22,7 @@ export default function ThemeSwitcher({
onChange?.(event, value);
}}
slotProps={{
...props?.slotProps,
listbox: { className: 'min-w-0 w-full' },
popper: {
disablePortal: false,

View File

@@ -1,2 +1,2 @@
export * from './ThemeSwitcher';
export { default } from './ThemeSwitcher';
export { default as ThemeSwitcher } from './ThemeSwitcher';

View File

@@ -0,0 +1,19 @@
import { createContext } from 'react';
export interface UIContextProps {
/**
* Determines whether or not the dashboard is in maintenance mode.
*/
maintenanceActive: boolean;
/**
* The date and time when maintenance mode will end.
*/
maintenanceEndDate: Date;
}
const UIContext = createContext<UIContextProps>({
maintenanceActive: false,
maintenanceEndDate: null,
});
export default UIContext;

View File

@@ -0,0 +1,30 @@
import { useRouter } from 'next/router';
import type { PropsWithChildren } from 'react';
import { useMemo } from 'react';
import type { UIContextProps } from './UIContext';
import UIContext from './UIContext';
export default function UIProvider(props: PropsWithChildren<unknown>) {
const router = useRouter();
const maintenanceUnlocked =
process.env.NEXT_PUBLIC_MAINTENANCE_UNLOCK_SECRET &&
process.env.NEXT_PUBLIC_MAINTENANCE_UNLOCK_SECRET ===
router.query.maintenanceUnlockSecret;
const value: UIContextProps = useMemo(
() => ({
maintenanceActive: maintenanceUnlocked
? false
: process.env.NEXT_PUBLIC_MAINTENANCE_ACTIVE === 'true',
maintenanceEndDate:
process.env.NEXT_PUBLIC_MAINTENANCE_END_DATE &&
!Number.isNaN(Date.parse(process.env.NEXT_PUBLIC_MAINTENANCE_END_DATE))
? new Date(Date.parse(process.env.NEXT_PUBLIC_MAINTENANCE_END_DATE))
: null,
}),
[maintenanceUnlocked],
);
return <UIContext.Provider value={value} {...props} />;
}

View File

@@ -0,0 +1,4 @@
export * from './UIContext';
export { default as UIContext } from './UIContext';
export { default as UIProvider } from './UIProvider';
export { default as useUI } from './useUI';

View File

@@ -0,0 +1,12 @@
import { useContext } from 'react';
import UIContext from './UIContext';
export default function useUI() {
const context = useContext(UIContext);
if (!context) {
throw new Error('useUI must be used within a UIProvider');
}
return context;
}

View File

@@ -1,119 +0,0 @@
import { ChangePasswordModal } from '@/components/applications/ChangePasswordModal';
import ThemeSwitcher from '@/components/common/ThemeSwitcher';
import { Avatar } from '@/ui/Avatar';
import { Modal } from '@/ui/Modal';
import Box from '@/ui/v2/Box';
import Button from '@/ui/v2/Button';
import { Dropdown, useDropdown } from '@/ui/v2/Dropdown';
import PowerIcon from '@/ui/v2/icons/PowerIcon';
import Text from '@/ui/v2/Text';
import { useApolloClient } from '@apollo/client';
import { useSignOut, useUserData } from '@nhost/nextjs';
import getConfig from 'next/config';
import { useRouter } from 'next/router';
import { useEffect, useState } from 'react';
interface AccountMenuContentProps {
onChangePasswordClick: VoidFunction;
}
function AccountMenuContent({
onChangePasswordClick,
}: AccountMenuContentProps) {
const user = useUserData();
const { signOut } = useSignOut();
const router = useRouter();
const apolloClient = useApolloClient();
const { handleClose } = useDropdown();
const { publicRuntimeConfig } = getConfig();
return (
<Box className="relative grid w-full grid-flow-row gap-5 p-6">
<div className="grid grid-flow-row justify-center">
<Avatar
className="mx-auto mb-2 h-16 w-16 rounded-full"
name={user?.displayName}
avatarUrl={user?.avatarUrl}
/>
<Text variant="h3" component="h2" className="text-center">
{user?.displayName}
</Text>
<Text className="text-center font-medium">{user?.email}</Text>
</div>
<div className="grid grid-flow-row gap-2">
<Button
variant="outlined"
color="secondary"
onClick={() => {
onChangePasswordClick();
handleClose();
}}
>
Change Password
</Button>
<Button
variant="outlined"
color="secondary"
onClick={async () => {
await apolloClient.clearStore();
await signOut();
await router.push('/signin');
}}
endIcon={<PowerIcon className="mr-1 h-4 w-4" />}
>
Sign Out
</Button>
</div>
<ThemeSwitcher label="Theme" />
<Text className="text-center text-xs" color="disabled">
Dashboard Version: {publicRuntimeConfig?.version || 'n/a'}
</Text>
</Box>
);
}
export function AccountMenu() {
const user = useUserData();
const [changePasswordModal, setChangePasswordModal] = useState(false);
useEffect(() => {
if (window.location.hash.search('type=passwordReset') !== -1) {
setChangePasswordModal(true);
}
}, []);
return (
<>
<Modal
showModal={changePasswordModal}
close={() => setChangePasswordModal(false)}
>
<ChangePasswordModal close={() => setChangePasswordModal(false)} />
</Modal>
<Dropdown.Root>
<Dropdown.Trigger hideChevron className="rounded-full">
<Avatar
className="h-7 w-7 self-center rounded-full"
name={user?.displayName}
avatarUrl={user?.avatarUrl}
/>
</Dropdown.Trigger>
<Dropdown.Content PaperProps={{ className: 'mt-1 max-w-xs w-full' }}>
<AccountMenuContent
onChangePasswordClick={() => setChangePasswordModal(true)}
/>
</Dropdown.Content>
</Dropdown.Root>
</>
);
}
export default AccountMenu;

View File

@@ -1,2 +0,0 @@
export * from './BaseColumnForm';
export { default } from './BaseColumnForm';

View File

@@ -1,2 +0,0 @@
export * from './BaseForeignKeyForm';
export { BaseForeignKeyForm as default } from './BaseForeignKeyForm';

View File

@@ -1,2 +0,0 @@
export * from './BaseRecordForm';
export { default } from './BaseRecordForm';

View File

@@ -1,2 +0,0 @@
export * from './BaseTableForm';
export { default } from './BaseTableForm';

View File

@@ -1,2 +0,0 @@
export * from './ColumnAutocomplete';
export { default } from './ColumnAutocomplete';

View File

@@ -1,2 +0,0 @@
export * from './CreateColumnForm';
export { default } from './CreateColumnForm';

View File

@@ -1,2 +0,0 @@
export * from './CreateForeignKeyForm';
export { default } from './CreateForeignKeyForm';

View File

@@ -1,2 +0,0 @@
export * from './CreateRecordForm';
export { default } from './CreateRecordForm';

View File

@@ -1,2 +0,0 @@
export * from './CreateTableForm';
export { default } from './CreateTableForm';

View File

@@ -1,2 +0,0 @@
export * from './DataBrowserEmptyState';
export { default } from './DataBrowserEmptyState';

View File

@@ -1,2 +0,0 @@
export * from './DataBrowserGrid';
export { default } from './DataBrowserGrid';

View File

@@ -1,2 +0,0 @@
export * from './DataBrowserGridControls';
export { default } from './DataBrowserGridControls';

View File

@@ -1,2 +0,0 @@
export * from './DataBrowserLayout';
export { default } from './DataBrowserLayout';

View File

@@ -1,2 +0,0 @@
export * from './DataBrowserSidebar';
export { default } from './DataBrowserSidebar';

View File

@@ -1,2 +0,0 @@
export * from './DatabaseRecordInputGroup';
export { default } from './DatabaseRecordInputGroup';

View File

@@ -1,2 +0,0 @@
export * from './EditColumnForm';
export { default } from './EditColumnForm';

View File

@@ -1,2 +0,0 @@
export * from './EditForeignKeyForm';
export { default } from './EditForeignKeyForm';

View File

@@ -1,2 +0,0 @@
export * from './EditPermissionsForm';
export { default } from './EditPermissionsForm';

View File

@@ -1,2 +0,0 @@
export * from './EditTableForm';
export { default } from './EditTableForm';

View File

@@ -1,2 +0,0 @@
export * from './RuleGroupEditor';
export { default } from './RuleGroupEditor';

View File

@@ -1,19 +1,19 @@
import DataGridBody from '@/components/common/DataGridBody';
import DataGridFrame from '@/components/common/DataGridFrame';
import type { DataGridHeaderProps } from '@/components/common/DataGridHeader';
import DataGridHeader from '@/components/common/DataGridHeader';
import DataBrowserEmptyState from '@/components/dataBrowser/DataBrowserEmptyState';
import { DataGridProvider } from '@/context/DataGridContext';
import type { UseDataGridOptions } from '@/hooks/useDataGrid';
import useDataGrid from '@/hooks/useDataGrid';
import type { DataBrowserGridColumn } from '@/types/dataBrowser';
import ActivityIndicator from '@/ui/v2/ActivityIndicator';
import Box from '@/ui/v2/Box';
import type { UseDataGridOptions } from '@/components/dataGrid/DataGrid/useDataGrid';
import { DataGridBody } from '@/components/dataGrid/DataGridBody';
import { DataGridConfigProvider } from '@/components/dataGrid/DataGridConfigProvider';
import { DataGridFrame } from '@/components/dataGrid/DataGridFrame';
import type { DataGridHeaderProps } from '@/components/dataGrid/DataGridHeader';
import { DataGridHeader } from '@/components/dataGrid/DataGridHeader';
import { ActivityIndicator } from '@/components/ui/v2/ActivityIndicator';
import { Box } from '@/components/ui/v2/Box';
import { DataBrowserEmptyState } from '@/features/database/dataGrid/components/DataBrowserEmptyState';
import type { DataBrowserGridColumn } from '@/features/database/dataGrid/types/dataBrowser';
import type { ForwardedRef } from 'react';
import { forwardRef, useEffect, useRef } from 'react';
import mergeRefs from 'react-merge-refs';
import type { Column, Row, SortingRule, TableOptions } from 'react-table';
import { twMerge } from 'tailwind-merge';
import useDataGrid from './useDataGrid';
export interface DataGridProps<TColumnData extends object>
extends Omit<UseDataGridOptions<TColumnData>, 'tableRef'> {
@@ -130,7 +130,7 @@ function DataGrid<TColumnData extends object>(
}, [allowSort, dataGridProps.state.sortBy, onSort, toggleAllRowsSelected]);
return (
<DataGridProvider
<DataGridConfigProvider
toggleAllRowsSelected={toggleAllRowsSelected}
setSortBy={setSortBy}
tableRef={tableRef}
@@ -176,7 +176,7 @@ function DataGrid<TColumnData extends object>(
{loading && <ActivityIndicator delay={1000} className="my-4" />}
</>
</DataGridProvider>
</DataGridConfigProvider>
);
}

View File

@@ -0,0 +1,4 @@
export * from './DataGrid';
export { default as DataGrid } from './DataGrid';
export * from './useDataGrid';
export { default as useDataGrid } from './useDataGrid';

View File

@@ -1,4 +1,4 @@
import Checkbox from '@/ui/v2/Checkbox';
import { Checkbox } from '@/components/ui/v2/Checkbox';
import type { MutableRefObject } from 'react';
import { useMemo } from 'react';
import type { PluginHook, TableInstance, TableOptions } from 'react-table';

View File

@@ -1,11 +1,11 @@
import type { DataGridProps } from '@/components/common/DataGrid';
import DataGridCell from '@/components/common/DataGridCell';
import useDataGridConfig from '@/hooks/useDataGridConfig';
import type { DataBrowserGridColumn } from '@/types/dataBrowser';
import type { BoxProps } from '@/ui/v2/Box';
import Box from '@/ui/v2/Box';
import Button from '@/ui/v2/Button';
import PlusIcon from '@/ui/v2/icons/PlusIcon';
import type { DataGridProps } from '@/components/dataGrid/DataGrid';
import { DataGridCell } from '@/components/dataGrid/DataGridCell';
import { useDataGridConfig } from '@/components/dataGrid/DataGridConfigProvider';
import type { BoxProps } from '@/components/ui/v2/Box';
import { Box } from '@/components/ui/v2/Box';
import { Button } from '@/components/ui/v2/Button';
import { PlusIcon } from '@/components/ui/v2/icons/PlusIcon';
import type { DataBrowserGridColumn } from '@/features/database/dataGrid/types/dataBrowser';
import type { DetailedHTMLProps, HTMLProps, KeyboardEvent } from 'react';
import { Fragment, useMemo, useRef } from 'react';
import type { Row } from 'react-table';

View File

@@ -0,0 +1,2 @@
export * from './DataGridBody';
export { default as DataGridBody } from './DataGridBody';

View File

@@ -1,7 +1,7 @@
import type { CommonDataGridCellProps } from '@/components/common/DataGridCell';
import { useDataGridCell } from '@/components/common/DataGridCell';
import ReadOnlyToggle from '@/components/common/ReadOnlyToggle';
import { Dropdown } from '@/ui/v2/Dropdown';
import type { CommonDataGridCellProps } from '@/components/dataGrid/DataGridCell';
import { useDataGridCell } from '@/components/dataGrid/DataGridCell';
import { ReadOnlyToggle } from '@/components/presentational/ReadOnlyToggle';
import { Dropdown } from '@/components/ui/v2/Dropdown';
import type { KeyboardEvent as ReactKeyboardEvent, MouseEvent } from 'react';
import { twMerge } from 'tailwind-merge';
@@ -70,7 +70,7 @@ export default function DataGridBooleanCell<TData extends object>({
<Dropdown.Trigger
id="boolean-trigger"
className={twMerge(
'h-full w-full border-none outline-none p-0',
'h-full w-full border-none p-0 outline-none',
isEditing && 'p-1.5',
)}
ref={inputRef}

View File

@@ -0,0 +1,2 @@
export * from './DataGridBooleanCell';
export { default as DataGridBooleanCell } from './DataGridBooleanCell';

Some files were not shown because too many files have changed in this diff Show More