2023-03-15 14:54:16 +03:00
|
|
|
{
|
|
|
|
"name": "enso-dashboard",
|
|
|
|
"version": "0.1.0",
|
2023-03-31 17:19:07 +03:00
|
|
|
"type": "module",
|
2024-01-10 19:22:11 +03:00
|
|
|
"main": "./src/index.tsx",
|
2023-03-15 14:54:16 +03:00
|
|
|
"private": true,
|
2024-01-10 19:22:11 +03:00
|
|
|
"imports": {
|
|
|
|
"#/*": "./src/*"
|
|
|
|
},
|
|
|
|
"exports": {
|
|
|
|
".": "./src/index.tsx",
|
2024-03-08 06:14:26 +03:00
|
|
|
"./tailwind.config": "./tailwind.config.js",
|
2024-01-10 19:22:11 +03:00
|
|
|
"./src/platform": "./src/platform.ts",
|
|
|
|
"./src/tailwind.css": "./src/tailwind.css"
|
|
|
|
},
|
2023-03-31 17:19:07 +03:00
|
|
|
"scripts": {
|
2024-01-10 19:22:11 +03:00
|
|
|
"compile": "tsc",
|
|
|
|
"typecheck": "tsc --noEmit",
|
2024-01-31 14:35:41 +03:00
|
|
|
"build": "vite build",
|
2023-11-29 20:29:25 +03:00
|
|
|
"dev": "vite",
|
2024-01-31 14:35:41 +03:00
|
|
|
"dev:e2e": "vite -c vite.test.config.ts",
|
2024-06-12 13:20:07 +03:00
|
|
|
"dev:e2e:ci": "vite -c vite.test.config.ts build && vite preview --port 8080 --strictPort",
|
2024-02-01 14:03:58 +03:00
|
|
|
"test": "npm run test:unit && npm run test:e2e",
|
|
|
|
"test:unit": "vitest run",
|
|
|
|
"test:unit:debug": "vitest",
|
2024-03-08 06:14:26 +03:00
|
|
|
"test:e2e": "cross-env NODE_ENV=production playwright test",
|
|
|
|
"test:e2e:debug": "cross-env NODE_ENV=production playwright test --ui"
|
2023-03-31 17:19:07 +03:00
|
|
|
},
|
2023-03-15 14:54:16 +03:00
|
|
|
"dependencies": {
|
2024-03-11 18:26:59 +03:00
|
|
|
"@aws-amplify/auth": "5.6.5",
|
|
|
|
"@aws-amplify/core": "5.8.5",
|
2024-05-20 16:53:38 +03:00
|
|
|
"@hookform/resolvers": "^3.4.0",
|
Keyboard navigation between components (#9499)
- Close https://github.com/enso-org/cloud-v2/issues/982
- Add keyboard navigation via arrows between different components
- This is achieved by a `Navigator2D` class which keeps track of the closest adjacent elements.
Other changes:
- Switch much of the codebase to use `react-aria-components`
- This *should* (but does not necessarily) give us improved accessibility for free.
- Refactor various common styles into styled components
- `FocusArea` to perform automatic registration with `Navigator2D`
- `Button` and `UnstyledButton` to let buttons participate in keyboard navigation
- `HorizontalMenuBar` - used for buttons below the titles in the Drive page, Keyboard Shortcuts settings page, and Members List settings page
- `SettingsPage` in the settings pages
- `SettingsSection` in the settings page to wrap around `FocusArea` and the heading for each section
- Add debugging utilities
- Add debugging when `body` has the `data-debug` attribute: `document.body.dataset.debug = ''`
- This adds rings around elements (all with different colors):
- That are `FocusArea`s. `FocusArea` is a wrapper component that makes an element participate in `Navigator2D`.
- That are `:focus`ed, and that are `:focus-visible`
- That are `.focus-child`. This is because keyboard navigation via arrows ***ignores*** all focusable elements that are not `.focus-child`.
- Debug `Navigator2D` neighbors when `body` has the `debug-navigator2d` attribute: `document.body.dataset.debugNavigator2d = ''`
- This highlights neighbors of the currently focused element. This is a separate debug option because computing neighbors is potentially quite expensive.
# Important Notes
- :warning: Modals and the authentication flow are not yet fully tested.
- Up+Down to navigate through suggestions has been disabled to improve UX when accidentally navigating upwards to the assets search bar.
- There are a number of *known* issues with keyboard navigation. For the most part it's because a proper solution will be quite difficult.
- Focus is lost when a column (from the extra columns selector) is toggled - because the button stops existing
- It's not possible to navigate to the icons on the assets table - so it's current not possible to *hide* columns via the keyboard
- Neighbors of the extra columns selector are not ideal (both when it is being navigated from, and when it is being navigated to)
- The suggestions in the `AssetSearchBar` aren't *quite* fully integrated with arrow keyboard navigation.
- This is *semi*-intentional. I think it makes a lot more sense to integrate them in, *however* it stays like this for now largely because I think pressing `ArrowUp` then `ArrowDown` from the assets table should return to the assets table
- Likewise for the assets table. The reason here, however, is because we want multi-select. While `react-aria-components` has lists which support multi-select, it doesn't allow programmatic focus control, making it not particularly ideal, as we want to focus the topmost element when navigating in from above.
- Clicking on the "New Folder" icon (and the like) do not focus on the newly created child. This one should be pretty easy to do, but I'm not sure whether it's the right thing to do.
2024-04-05 10:21:02 +03:00
|
|
|
"@monaco-editor/react": "4.6.0",
|
2023-11-03 03:38:30 +03:00
|
|
|
"@sentry/react": "^7.74.0",
|
Offline Mode Support (#10317)
#### Tl;dr
Closes: enso-org/cloud-v2#1283
This PR significantly reimplements Offline mode
<details><summary>Demo Presentation</summary>
<p>
https://github.com/enso-org/enso/assets/61194245/752d0423-9c0a-43ba-91e3-4a6688f77034
</p>
</details>
---
#### Context:
Offline mode is one of the core features of the dashboard. Unfortunately, after adding new features and a few refactoring, we lost the ability to work offline.
This PR should bring this functionality back, with a few key differences:
1. We require users to sign in before using the dashboard even in local mode.
2. Once a user is logged in, we allow him to work with local files
3. If a user closes the dashboard, and then open it, he can continue using it in offline mode
#### This Change:
What does this change do in the larger context? Specific details to highlight for review:
1. Reimplements `<AuthProvider />` functionality, now it implemented on top of `<Suspense />` and ReactQuery
2. Reimplements Backend module flow, now remote backend is always created, You no longer need to check if the RemoteBackend is present
3. Introduces new `<Suspense />` component, which is aware of offline status
4. Introduce new offline-related hooks
5. Add a banner to the form if it's unable to submit it offline
6. Refactor `InviteUserDialog` to the new `<Form />` component
7. Fixes redirect bug when the app doesn't redirect a user to the dashboard after logging in
8. Fixes strange behavior when `/users/me` could stuck into infinite refetch
9. Redesign the Cloud table for offline mode.
10. Adds blocking UI dialog when a user clicks "log out" button
#### Test Plan:
This PR requires thorough QA on the login flow across the browser and IDE. All redirect logic must stay unchanged.
---
2024-06-21 10:14:40 +03:00
|
|
|
"@tanstack/react-query": "5.45.1",
|
2024-07-09 18:01:10 +03:00
|
|
|
"@tanstack/vue-query": ">= 5.45.0 < 5.46.0",
|
2024-02-29 13:36:47 +03:00
|
|
|
"ajv": "^8.12.0",
|
2024-07-05 14:13:04 +03:00
|
|
|
"clsx": "^2.1.1",
|
|
|
|
"enso-assets": "workspace:*",
|
|
|
|
"enso-common": "workspace:*",
|
2024-01-25 09:36:03 +03:00
|
|
|
"is-network-error": "^1.0.1",
|
2024-05-20 16:53:38 +03:00
|
|
|
"monaco-editor": "0.48.0",
|
|
|
|
"react": "^18.3.1",
|
|
|
|
"react-aria": "^3.33.0",
|
|
|
|
"react-aria-components": "^1.2.0",
|
|
|
|
"react-dom": "^18.3.1",
|
|
|
|
"react-error-boundary": "4.0.13",
|
|
|
|
"react-hook-form": "^7.51.4",
|
2024-07-05 14:13:04 +03:00
|
|
|
"react-router": "^6.23.1",
|
2024-05-20 16:53:38 +03:00
|
|
|
"react-router-dom": "^6.23.1",
|
|
|
|
"react-stately": "^3.31.0",
|
2024-01-10 19:22:11 +03:00
|
|
|
"react-toastify": "^9.1.3",
|
2024-05-20 16:53:38 +03:00
|
|
|
"tailwind-merge": "^2.3.0",
|
2024-06-12 13:20:07 +03:00
|
|
|
"tailwind-variants": "0.2.1",
|
Keyboard navigation between components (#9499)
- Close https://github.com/enso-org/cloud-v2/issues/982
- Add keyboard navigation via arrows between different components
- This is achieved by a `Navigator2D` class which keeps track of the closest adjacent elements.
Other changes:
- Switch much of the codebase to use `react-aria-components`
- This *should* (but does not necessarily) give us improved accessibility for free.
- Refactor various common styles into styled components
- `FocusArea` to perform automatic registration with `Navigator2D`
- `Button` and `UnstyledButton` to let buttons participate in keyboard navigation
- `HorizontalMenuBar` - used for buttons below the titles in the Drive page, Keyboard Shortcuts settings page, and Members List settings page
- `SettingsPage` in the settings pages
- `SettingsSection` in the settings page to wrap around `FocusArea` and the heading for each section
- Add debugging utilities
- Add debugging when `body` has the `data-debug` attribute: `document.body.dataset.debug = ''`
- This adds rings around elements (all with different colors):
- That are `FocusArea`s. `FocusArea` is a wrapper component that makes an element participate in `Navigator2D`.
- That are `:focus`ed, and that are `:focus-visible`
- That are `.focus-child`. This is because keyboard navigation via arrows ***ignores*** all focusable elements that are not `.focus-child`.
- Debug `Navigator2D` neighbors when `body` has the `debug-navigator2d` attribute: `document.body.dataset.debugNavigator2d = ''`
- This highlights neighbors of the currently focused element. This is a separate debug option because computing neighbors is potentially quite expensive.
# Important Notes
- :warning: Modals and the authentication flow are not yet fully tested.
- Up+Down to navigate through suggestions has been disabled to improve UX when accidentally navigating upwards to the assets search bar.
- There are a number of *known* issues with keyboard navigation. For the most part it's because a proper solution will be quite difficult.
- Focus is lost when a column (from the extra columns selector) is toggled - because the button stops existing
- It's not possible to navigate to the icons on the assets table - so it's current not possible to *hide* columns via the keyboard
- Neighbors of the extra columns selector are not ideal (both when it is being navigated from, and when it is being navigated to)
- The suggestions in the `AssetSearchBar` aren't *quite* fully integrated with arrow keyboard navigation.
- This is *semi*-intentional. I think it makes a lot more sense to integrate them in, *however* it stays like this for now largely because I think pressing `ArrowUp` then `ArrowDown` from the assets table should return to the assets table
- Likewise for the assets table. The reason here, however, is because we want multi-select. While `react-aria-components` has lists which support multi-select, it doesn't allow programmatic focus control, making it not particularly ideal, as we want to focus the topmost element when navigating in from above.
- Clicking on the "New Folder" icon (and the like) do not focus on the newly created child. This one should be pretty easy to do, but I'm not sure whether it's the right thing to do.
2024-04-05 10:21:02 +03:00
|
|
|
"tiny-invariant": "^1.3.3",
|
|
|
|
"ts-results": "^3.3.0",
|
2024-05-20 16:53:38 +03:00
|
|
|
"validator": "^13.12.0",
|
2024-07-15 13:06:15 +03:00
|
|
|
"zod": "^3.23.8",
|
|
|
|
"zustand": "^4.5.4"
|
2023-03-15 14:54:16 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-03-31 17:19:07 +03:00
|
|
|
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
|
2024-01-09 13:43:18 +03:00
|
|
|
"@fast-check/vitest": "^0.0.8",
|
2024-01-10 19:22:11 +03:00
|
|
|
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
|
2023-10-11 13:24:33 +03:00
|
|
|
"@modyfi/vite-plugin-yaml": "^1.0.4",
|
2023-11-27 18:48:37 +03:00
|
|
|
"@playwright/experimental-ct-react": "^1.40.0",
|
|
|
|
"@playwright/test": "^1.40.0",
|
Keyboard navigation between components (#9499)
- Close https://github.com/enso-org/cloud-v2/issues/982
- Add keyboard navigation via arrows between different components
- This is achieved by a `Navigator2D` class which keeps track of the closest adjacent elements.
Other changes:
- Switch much of the codebase to use `react-aria-components`
- This *should* (but does not necessarily) give us improved accessibility for free.
- Refactor various common styles into styled components
- `FocusArea` to perform automatic registration with `Navigator2D`
- `Button` and `UnstyledButton` to let buttons participate in keyboard navigation
- `HorizontalMenuBar` - used for buttons below the titles in the Drive page, Keyboard Shortcuts settings page, and Members List settings page
- `SettingsPage` in the settings pages
- `SettingsSection` in the settings page to wrap around `FocusArea` and the heading for each section
- Add debugging utilities
- Add debugging when `body` has the `data-debug` attribute: `document.body.dataset.debug = ''`
- This adds rings around elements (all with different colors):
- That are `FocusArea`s. `FocusArea` is a wrapper component that makes an element participate in `Navigator2D`.
- That are `:focus`ed, and that are `:focus-visible`
- That are `.focus-child`. This is because keyboard navigation via arrows ***ignores*** all focusable elements that are not `.focus-child`.
- Debug `Navigator2D` neighbors when `body` has the `debug-navigator2d` attribute: `document.body.dataset.debugNavigator2d = ''`
- This highlights neighbors of the currently focused element. This is a separate debug option because computing neighbors is potentially quite expensive.
# Important Notes
- :warning: Modals and the authentication flow are not yet fully tested.
- Up+Down to navigate through suggestions has been disabled to improve UX when accidentally navigating upwards to the assets search bar.
- There are a number of *known* issues with keyboard navigation. For the most part it's because a proper solution will be quite difficult.
- Focus is lost when a column (from the extra columns selector) is toggled - because the button stops existing
- It's not possible to navigate to the icons on the assets table - so it's current not possible to *hide* columns via the keyboard
- Neighbors of the extra columns selector are not ideal (both when it is being navigated from, and when it is being navigated to)
- The suggestions in the `AssetSearchBar` aren't *quite* fully integrated with arrow keyboard navigation.
- This is *semi*-intentional. I think it makes a lot more sense to integrate them in, *however* it stays like this for now largely because I think pressing `ArrowUp` then `ArrowDown` from the assets table should return to the assets table
- Likewise for the assets table. The reason here, however, is because we want multi-select. While `react-aria-components` has lists which support multi-select, it doesn't allow programmatic focus control, making it not particularly ideal, as we want to focus the topmost element when navigating in from above.
- Clicking on the "New Folder" icon (and the like) do not focus on the newly created child. This one should be pretty easy to do, but I'm not sure whether it's the right thing to do.
2024-04-05 10:21:02 +03:00
|
|
|
"@react-types/shared": "^3.22.1",
|
Offline Mode Support (#10317)
#### Tl;dr
Closes: enso-org/cloud-v2#1283
This PR significantly reimplements Offline mode
<details><summary>Demo Presentation</summary>
<p>
https://github.com/enso-org/enso/assets/61194245/752d0423-9c0a-43ba-91e3-4a6688f77034
</p>
</details>
---
#### Context:
Offline mode is one of the core features of the dashboard. Unfortunately, after adding new features and a few refactoring, we lost the ability to work offline.
This PR should bring this functionality back, with a few key differences:
1. We require users to sign in before using the dashboard even in local mode.
2. Once a user is logged in, we allow him to work with local files
3. If a user closes the dashboard, and then open it, he can continue using it in offline mode
#### This Change:
What does this change do in the larger context? Specific details to highlight for review:
1. Reimplements `<AuthProvider />` functionality, now it implemented on top of `<Suspense />` and ReactQuery
2. Reimplements Backend module flow, now remote backend is always created, You no longer need to check if the RemoteBackend is present
3. Introduces new `<Suspense />` component, which is aware of offline status
4. Introduce new offline-related hooks
5. Add a banner to the form if it's unable to submit it offline
6. Refactor `InviteUserDialog` to the new `<Form />` component
7. Fixes redirect bug when the app doesn't redirect a user to the dashboard after logging in
8. Fixes strange behavior when `/users/me` could stuck into infinite refetch
9. Redesign the Cloud table for offline mode.
10. Adds blocking UI dialog when a user clicks "log out" button
#### Test Plan:
This PR requires thorough QA on the login flow across the browser and IDE. All redirect logic must stay unchanged.
---
2024-06-21 10:14:40 +03:00
|
|
|
"@tanstack/react-query-devtools": "5.45.1",
|
2024-03-06 18:34:07 +03:00
|
|
|
"@types/node": "^20.11.21",
|
2023-11-21 09:34:46 +03:00
|
|
|
"@types/react": "^18.0.27",
|
|
|
|
"@types/react-dom": "^18.0.10",
|
2023-11-30 15:40:01 +03:00
|
|
|
"@types/validator": "^13.11.7",
|
2024-07-05 14:13:04 +03:00
|
|
|
"@typescript-eslint/eslint-plugin": "^7.15.0",
|
|
|
|
"@typescript-eslint/parser": "^7.15.0",
|
2024-01-10 19:22:11 +03:00
|
|
|
"@vitejs/plugin-react": "^4.2.1",
|
2023-08-17 13:32:53 +03:00
|
|
|
"chalk": "^5.3.0",
|
2024-03-08 06:14:26 +03:00
|
|
|
"cross-env": "^7.0.3",
|
2023-07-27 11:53:00 +03:00
|
|
|
"enso-chat": "git://github.com/enso-org/enso-bot",
|
2024-01-10 19:22:11 +03:00
|
|
|
"esbuild": "^0.19.3",
|
2023-10-11 13:24:33 +03:00
|
|
|
"esbuild-plugin-inline-image": "^0.0.9",
|
2024-01-10 19:22:11 +03:00
|
|
|
"esbuild-plugin-time": "^1.0.0",
|
2024-03-18 15:18:18 +03:00
|
|
|
"esbuild-plugin-yaml": "^0.0.1",
|
2023-09-22 06:43:25 +03:00
|
|
|
"eslint": "^8.49.0",
|
|
|
|
"eslint-plugin-jsdoc": "^46.8.1",
|
2023-03-15 14:54:16 +03:00
|
|
|
"eslint-plugin-react": "^7.32.1",
|
2024-01-09 13:43:18 +03:00
|
|
|
"fast-check": "^3.15.0",
|
2023-10-11 13:24:33 +03:00
|
|
|
"playwright": "^1.38.0",
|
2023-11-29 20:29:25 +03:00
|
|
|
"postcss": "^8.4.29",
|
Refactor CSS; address some design issues (#9260)
- Implement https://github.com/enso-org/cloud-v2/issues/924
- Refactor all numbers out to CSS variables
- Implement some issues raised in the design meeting
- The columns selector now only contains *hidden* columns, rather than all of them.
- Unified opacity for active (100%), selectable and hovered (75%), selectable (50%) and disabled (30%)
- Easily configurable if we want to change it in the future, so the specific values don't matter too much for now.
- Always show asset right panel if it is enabled - display placeholder text if <1 or >1 asset is selected
- Hide docs icon that was in the top right assets menubar (next to the gear icon for asset settings) (as backend functionality has yet to be implemented)
- Clicking a user in the "Shared with" column now adds them to the search as `owner:<username>`
- Add a gap between adjacent rows. This makes each row more visually distinct when many rows are selected
- Center the left column (the first column) of the context menu below the mouse, rather than centering the entire context menu.
- Fix regressions caused by CSS refactor
- Make keyboard selection indicator for asset rows rounded again
- Other misc. fixes and improvements
- Slightly modified styling of chat reaction bar
- Hide the row containing the "New Project" button in the cloud drive, when not in the "Home" drive tab
- Animate rotation of column sort arrow when clicking on a column to change the sort order
- Consistent duration of arrow rotation animation for folder arrows, column sort arrows, chat thread list arrows
- Consistent icon for sort arrow for folders and the chat thread list
- Minor adjustment of styles for optional properties in the Data Link input
Not included in this PR:
- Custom (HTML) scrollbars for consistency across all browsers and all OSes (except perhaps touchscreens)
- Potentially time-consuming to look for a library (and not quite trivial to implement ourselves)
- Columns sliding left as they expand and right as they collapse
- Also non-trivial, especially when taking into account horizontal scrolling.
- Fixing styles to closer resemble Figma design
- As (kinda) mentioned in the meeting - ideally it should be pixel perfect, *but* value consistency with other spacings, opacities etc. over being 100% pixel-perfect
- However, it has *partly* been done - mostly for the home page. It's entirely possible that changes made afterwards broke the spacing again though.
# Important Notes
None
2024-03-13 13:32:05 +03:00
|
|
|
"prettier-plugin-tailwindcss": "^0.5.11",
|
2023-07-24 22:58:53 +03:00
|
|
|
"react-toastify": "^9.1.3",
|
Refactor CSS; address some design issues (#9260)
- Implement https://github.com/enso-org/cloud-v2/issues/924
- Refactor all numbers out to CSS variables
- Implement some issues raised in the design meeting
- The columns selector now only contains *hidden* columns, rather than all of them.
- Unified opacity for active (100%), selectable and hovered (75%), selectable (50%) and disabled (30%)
- Easily configurable if we want to change it in the future, so the specific values don't matter too much for now.
- Always show asset right panel if it is enabled - display placeholder text if <1 or >1 asset is selected
- Hide docs icon that was in the top right assets menubar (next to the gear icon for asset settings) (as backend functionality has yet to be implemented)
- Clicking a user in the "Shared with" column now adds them to the search as `owner:<username>`
- Add a gap between adjacent rows. This makes each row more visually distinct when many rows are selected
- Center the left column (the first column) of the context menu below the mouse, rather than centering the entire context menu.
- Fix regressions caused by CSS refactor
- Make keyboard selection indicator for asset rows rounded again
- Other misc. fixes and improvements
- Slightly modified styling of chat reaction bar
- Hide the row containing the "New Project" button in the cloud drive, when not in the "Home" drive tab
- Animate rotation of column sort arrow when clicking on a column to change the sort order
- Consistent duration of arrow rotation animation for folder arrows, column sort arrows, chat thread list arrows
- Consistent icon for sort arrow for folders and the chat thread list
- Minor adjustment of styles for optional properties in the Data Link input
Not included in this PR:
- Custom (HTML) scrollbars for consistency across all browsers and all OSes (except perhaps touchscreens)
- Potentially time-consuming to look for a library (and not quite trivial to implement ourselves)
- Columns sliding left as they expand and right as they collapse
- Also non-trivial, especially when taking into account horizontal scrolling.
- Fixing styles to closer resemble Figma design
- As (kinda) mentioned in the meeting - ideally it should be pixel perfect, *but* value consistency with other spacings, opacities etc. over being 100% pixel-perfect
- However, it has *partly* been done - mostly for the home page. It's entirely possible that changes made afterwards broke the spacing again though.
# Important Notes
None
2024-03-13 13:32:05 +03:00
|
|
|
"tailwindcss": "^3.4.1",
|
2024-05-10 15:28:49 +03:00
|
|
|
"tailwindcss-animate": "1.0.7",
|
2024-05-20 16:53:38 +03:00
|
|
|
"tailwindcss-react-aria-components": "^1.1.1",
|
2024-07-05 14:13:04 +03:00
|
|
|
"ts-plugin-namespace-auto-import": "workspace:*",
|
|
|
|
"typescript": "^5.5.3",
|
|
|
|
"vite": "^5.3.3",
|
2024-03-06 18:34:07 +03:00
|
|
|
"vitest": "^1.3.1"
|
2023-03-15 14:54:16 +03:00
|
|
|
},
|
2024-01-10 19:22:11 +03:00
|
|
|
"overrides": {
|
|
|
|
"@aws-amplify/auth": "../_IGNORED_",
|
|
|
|
"react-native-url-polyfill": "../_IGNORED_"
|
2023-03-15 14:54:16 +03:00
|
|
|
}
|
|
|
|
}
|