Commit Graph

1493 Commits

Author SHA1 Message Date
marthasharkey
ff45b85f9c Full white space rendering and links fix (#11238)
(cherry picked from commit 37621a9f90)
2024-10-07 11:57:37 +01:00
somebody1234
b504db2329 Use color Google and GitHub icons in Login screen (#11194)
- Make Google and GitHub icons full color again

# Important Notes
None

(cherry picked from commit 5afcb15ff2)
2024-10-07 11:53:50 +01:00
somebody1234
0479381629 Do not show loading spinner for created projects (#11164)
- Fix https://github.com/enso-org/cloud-v2/issues/1501
- The `Created` project state does not mean the project is opening, so the loading spinner should not appear.
- Regression accidentally introduced by myself in 609d5abbc0 (diff-79e1f8800be680c64a41e2c428927c1f176b728a6a24d5f8c4d02cfc2a3922f9)

# Important Notes
None

(cherry picked from commit f6c262c062)
2024-10-07 11:53:48 +01:00
somebody1234
c2903de68d Fix rest of user/team permissions checks and "new label" dialog (#11126)
- Fix remaining permissions checks to check for team permissions as well, not just user permissions
- Fix https://github.com/enso-org/cloud-v2/issues/1498
- Switch "new label" dialog from `Modal` (old) to `Popover` (new)
- Fix https://github.com/enso-org/cloud-v2/issues/1500
- Show correct project state even for projects not opened as tabs
- Unconditionally show project play icon instead of network (graph) icon, even when user lacks access (no exec permissions, or in the trash category)
- Disable (attempting to) open project in trash via double click

# Important Notes
None

(cherry picked from commit c18d581c3e)
2024-10-07 11:53:46 +01:00
Paweł Grabarz
a63a61602a Fix application start when YDOC_SERVER_URL is undefined (#11160)
(cherry picked from commit e2cf20af5f)
2024-09-25 09:45:59 +01:00
Sergei Garin
b6939afc4b Fix focusing after clicking "Rename" in context menu (#11130)
This PR fixes a behavior when we try to focus an editable span after clicking on "Rename" in the  Context menu

(cherry picked from commit e6c038513b)
2024-09-25 09:44:53 +01:00
Sergei Garin
408fcbc4c8 Fix selecting directory after creating (#11109)
This PR fixes a bug, when directories after creation were not toggled into editing mode

(cherry picked from commit 7baca4d2a1)
2024-09-25 09:44:51 +01:00
James Dunkerley
f881872a05 Change new project text (#11152)
Following feedback from @NedHarding and @AdRiley
![image](https://github.com/user-attachments/assets/820f53e6-70ef-4355-a8a3-52dda1fce6ab)

![image](https://github.com/user-attachments/assets/aa474c2c-73d3-4355-a4aa-ef3990ff6207)

(cherry picked from commit 3f748fdf5c)
2024-09-25 09:44:47 +01:00
Kaz Wesley
8cced3326c Component comment fixes (#11144)
<img width="315" alt="Screenshot 2024-09-20 at 10 07 36" src="https://github.com/user-attachments/assets/8886feb7-99f3-4c44-bd2a-c7795f951f8e">

- Comment position when menu is hidden does not obscure input arrow (fixes #11114)
- Comment is not inside a larger invisible bounding box (fixes #11140)

(cherry picked from commit 3481d20dc6)
2024-09-25 09:44:46 +01:00
somebody1234
367ec6285f Fix width of settings sections when only a single column is visible (#11138)
- Fix settings columns having zero width when only a single column is visible

# Important Notes
None

(cherry picked from commit 1fc4fe6b6e)
2024-09-25 09:43:38 +01:00
marthasharkey
9a4baaf264 scatterplot- time series support (#11085)
(cherry picked from commit b53d7b0521)
2024-09-25 09:43:09 +01:00
somebody1234
d4582bafa8 Decode URL pathname for opened file (#11118)
- Attempt to fix an issue where a project opened by double clicking does not URL decode the path to be opened.
- Unable to properly test as I don't normally use Windows (file associations do not work on Linux as we use an AppImage for that platform.)

# Important Notes
None

(cherry picked from commit 9126ab23e4)
2024-09-25 09:42:42 +01:00
Sergei Garin
7249221114 Fix JsonSchema input sizing (#11097)
* Fix closing delete dialog

* FIx json schema input

* Fix input

* Remove test line

(cherry picked from commit 38685dafa9)
2024-09-25 09:42:33 +01:00
Sergei Garin
4228a5cd78 Wip/sergeigarin/fix-focus (#11112)
* Fix selecting directory after creating

* Fix focusing

(cherry picked from commit 55869327d9)
2024-09-25 09:42:22 +01:00
Adam Obuchowicz
5c4fe1b07a Allow numbers starting with dot in WidgetNumber (#11108)
[Screencast from 2024-09-17 13-20-40.webm](https://github.com/user-attachments/assets/561adebb-7d93-4939-9dde-5453d5f304be)

(cherry picked from commit 5725e2427d)
2024-09-17 14:37:47 +01:00
Adam Obuchowicz
0857604f8e Renaming project: fix invalid state when the name does not change (#11103)
Fixes #11101

I did not add tests for it, because I think we'll remove this rename feature in the future.

(cherry picked from commit dfc04f4222)
2024-09-17 14:37:45 +01:00
Adam Obuchowicz
42277b5335 Fix node removing bug, caused by spurious watchEffect effect. (#11099)
Fixes [#11062](https://github.com/enso-org/enso/issues/11062)

Modified watchEffect to be consistent with Vue behavior + tests. Before the scheduled effects were run even if stopped.

Why it fixes nodes removal? See [this comment](https://github.com/enso-org/enso/issues/11062#issuecomment-2352975474)

(cherry picked from commit 667ce038e7)
2024-09-17 14:37:42 +01:00
Sergei Garin
2ca6496f23 Fix table dissapear after switching tabs (#11096)
(cherry picked from commit b14f19f8f7)
2024-09-16 20:16:46 +01:00
James Dunkerley
0518d1b94d Widget work for AWS (#11095)
- Added `to_display_text` for `S3_File` and `Enso_File`.
- Improved widget for `AWS_Credential` allowing use of Enso secrets.
- Adjust `S3.list_objects` to return `S3_File` objects, allowing easier drill down.
- Fix for merging inherited config with direct config in widgets.
- Add missing constant types to Date.Diff widget.

![image](https://github.com/user-attachments/assets/ea125a09-5067-4dee-bef2-3d7c8d551260)

(cherry picked from commit 0e9821519d)
2024-09-16 20:16:45 +01:00
Sergei Garin
d46fb09848 Fix importing conflicting files (#11087)
Closes: enso-org/cloud-v2#1484

(cherry picked from commit 0b91002933)
2024-09-16 20:16:43 +01:00
James Dunkerley
9a9430f839 Disable Invite button for solo/free. (#11089)
Currently shows up in solo mode, enough to just have the Upgrade button.

(cherry picked from commit 6ca2c337d0)
2024-09-16 20:16:42 +01:00
Adam Obuchowicz
729ea72591 Fix Numeric Input cooperation with Drop Down (#11091)
Fixes #11063

The blur on Numeric Input was removed in https://github.com/enso-org/enso/pull/10337 and then reintroduced in https://github.com/enso-org/enso/pull/10512. I guess it was to handle `tab` properly, so I added another way of handling `tab` and removed blur again (with explanation).

(cherry picked from commit 53e101566a)
2024-09-16 20:16:41 +01:00
Sergei Garin
d337bc2b9f Follow-up for Remote backend fixes PR (#11080)
This PR is a follow-up for https://github.com/enso-org/enso/pull/11067 that addresses the issues raised in the PR

(cherry picked from commit bea9d3670a)
2024-09-16 20:16:40 +01:00
somebody1234
573bae6ed5 Dashboard fixes (#11059)
- Fix https://github.com/enso-org/cloud-v2/issues/1482
- Fix "clear trash" not doing anything
- Show "shared with" column as "root folder", but only owners (TODO: actually it should only show the first item in the permissions list)
- Fix https://github.com/enso-org/cloud-v2/issues/1480
- Fix importing .enso-projects not doing anything
- Could not repro crash. Also note that we do want to be able to upload files
- Partly address https://github.com/enso-org/cloud-v2/issues/1479
- Remove "invite" and "share" buttons on top right
- Hide "upgrade" button on top right if on Team or Enterprise plan
- Warn when deleting folder (for now warns for all folders otherwise we may need to expand the folder to know whether it is empty)
- Fix importing projects via upload button
- Fix importing projects via drag
- Hide cut on running projects
- Partly address https://github.com/enso-org/cloud-v2/issues/1481
- Fix "edit secret" not showing dialog
- Fix multiple selection context menu in Team space

# Important Notes
None

(cherry picked from commit cad50a5b63)
2024-09-16 12:16:21 +01:00
Hubert Plociniczak
570cb8a942 Workaround for Electron sanbox issues on Ubuntu (#11038)
* Workaround for Electron sanbox issues on Ubuntu

Disabling sanbox, while a non-secure option, appears to be currently the
only option to workaround Electron issues on latest Ubuntu (24.04).
When passed to Enso it is treated as a regular argument, preventing the
start of the product.
This change treats `--no-sandbox` specially by ignoring all arguments
that precede it (and including itself).

* address review

(cherry picked from commit 8fab4f5ea6)
2024-09-14 12:43:17 +01:00
somebody1234
cf25ad1d84 Local dashboard fixes (#11066)
- Fix https://github.com/enso-org/cloud-v2/issues/1479
- See #11059 for rest of fixes.
- When you add a new folder it is now selected and in rename mode
- Double click opening no longer adds (2) to the name when there are no duplicates
- When dragging a file to upload, the "Drop here to upload box" now properly disappears after dropping
- Fix removing folder from favorites list

Other changes:
- Switch "delete user" modal to new "Dialog" and "Form" components instead of old "Modal" and HTML "form" components

# Important Notes
None

(cherry picked from commit 066d4ea609)
2024-09-14 12:43:15 +01:00
Sergei Garin
05de1a2440 Cloud backend issues (#11067)
Closes: enso-org/cloud-v2#1481

(cherry picked from commit bdadedbde5)
2024-09-14 12:43:14 +01:00
Sergei Garin
751551e18c MFA (#10875)
* Draft checkbox component

* Fixes in Setup Page

* Invite Users

* Add usergroup setup after subscription

* Fix comments

* Refetch Interval + Feature Toggles

* Fix lint

* Address issues

* Fix Dialog

* Assign users to the user group

* Use transitions to navigate between steps

* Small fixes

* Improve styling for scrollbars

* Fix typescript

* OTP input

* Fix setup logic

* Show Setup dialog only for admins

* Add otp

* OTP input

* 2FA settings section

* Small improvements

* Fixes

* Small fixes

* Remove w-full

* TOTP at login

* Fixes in 2FA

* Fixes in types

* Fix totp

* Merge fixes

* Merge fixes x2

* Merge fixes x2

* Fix types

* Fix types

* Fix cancel button

* Fix reset button

* Fix types

* Fix prettier

* Fix prettier

* Fix lint

* Fix lint

* Fix control

* Address prettier

* Fix MFA mock

* Fix sign in message

* Fix tests

* Address CR

* Fix types

(cherry picked from commit b5122348da)
2024-09-13 15:20:35 +01:00
Sergei Garin
3e43d62eaa Remove edit name on mod+click (#11058)
Closes: enso-org/cloud-v2#1476

(cherry picked from commit 3c1db7dbc1)
2024-09-13 15:20:33 +01:00
Sergei Garin
9d581d039b Handle 403 for listGroups and getOrganization (#11044)
Closes: enso-org/cloud-v2#1470

This PR handles 403 responses for certain RemoteBackend endpoints

(cherry picked from commit 16a4466156)
2024-09-13 15:20:31 +01:00
James Dunkerley
3a8802b9d7 Updated feature list (#11061)
Update the list of what is in what...
![image](https://github.com/user-attachments/assets/65abca35-9e39-4a7c-a001-230923ff04d3)

(cherry picked from commit 8eb9e21e40)
2024-09-13 15:20:28 +01:00
Adam Obuchowicz
478789e0ef Fix Vector Drag (#11057)
(cherry picked from commit 8908a73f6a)
2024-09-13 15:20:27 +01:00
Sergei Garin
cc06b9301e Open a welcome dialog after user signed up (#11029)
Closes: enso-org/cloud-v2#1475

(cherry picked from commit ea0f5a1962)
2024-09-11 16:32:45 +01:00
marthasharkey
131e380c5f Scatterplot fixes (#11041)
(cherry picked from commit 4ac59827df)
2024-09-11 16:32:41 +01:00
James Dunkerley
d2c4508638 Better workaround for missing root folder. (#11046)
With the changes for asset directory the auto-creation condition was failing.

This should make it work again.

(cherry picked from commit a33376c8d7)
2024-09-11 16:32:40 +01:00
Adam Obuchowicz
d0e211be26 Fix file associations on Windows + opening project bug (#11030)
* Fixes [#10983](https://github.com/enso-org/enso/issues/10983) The `ext` field was not set according to the documentation in rust
* Also discovered a regression in opening project by passing argument/clicking the file: we store the file location as `file://` URL, but without caution, it made a havoc with windows paths.

# Important Notes
- [x] **Need to confirm that everything works on macOS** (installation with file associations + opening project when process is running and when not)

(cherry picked from commit 497da82b10)
2024-09-11 16:32:38 +01:00
Kaz Wesley
b7fb8c28f0 Update Vue (#11016)
See: https://blog.vuejs.org/posts/vue-3-5
(cherry picked from commit 1bcbc00004)
2024-09-11 16:32:35 +01:00
somebody1234
06dac3f156 Fix Datalinks (#11003)
- Fix https://github.com/enso-org/enso/pull/10929#issuecomment-2333467567
- Fix incorrect requests being sent for newly created Datalinks
- Fix Datalinks being created in the root folder instead of the current folder due to clicks on the dialog deselecting the currently selected folder
- Fix auto-scroll caused by Assets Table refreshing

# Important Notes
None

(cherry picked from commit 097f5b231d)
2024-09-11 16:32:35 +01:00
Adam Obuchowicz
0b6aaeeb51 Use enso paths in cloud browser (#11001)
Fixes #10947

(cherry picked from commit 32f10a55f4)
2024-09-10 08:34:30 +01:00
Sergei Garin
3cef86548b Fix skipping creating a user if we don't change the default name (#11013)
Closes: enso-org/cloud-v2#1473

This PR fixes a bug introduced in #10946

(cherry picked from commit 1fdaf37add)
2024-09-10 08:34:30 +01:00
James Dunkerley
4cf0036d20 Add Row Number starts at 0 and other tweaks. (#11017)
- Change default to be from 0.
- Alter widgets so always shown.
- Tweaks to the Welcome screen following review with Product Team.
- Use 0 for default seed option in `Index_Sub_Range.Sample`.
- Add ALIASES for aggregate and running.
- Add more imports for `Widgets.enso` to fix extension methods not working.

(cherry picked from commit 7b4b635fa8)
2024-09-10 08:34:30 +01:00
Adam Obuchowicz
b222ad326a Fix initialization after reconnecting (#11014)
Fixes #10948

The problem was in the binary reconnecting: we sent the first "initProtocol" message, but the connection was reset, and then we try to initialize again. While looking good, the problem was that the party websocket we use queued the first initProtocol message and re-send it by itself on reconnect. Our initProtocol was also sent, but it did not get any response, blocking any further request like `writeBytes`.

(cherry picked from commit 414eee0b48)
2024-09-10 08:34:30 +01:00
James Dunkerley
f0879de3b4 Add file to be signed. (#11010)
(cherry picked from commit 7556d8f794)
2024-09-10 08:34:30 +01:00
James Dunkerley
ddbdb20567 Expand Templates (#10994)
- Update all the templates to the newest versions.
- Fix any defects in the templates.
- Update the rust and scala code to package and download the templates.
- Update the front end to have images for every template (with some Gemini assists).

https://github.com/user-attachments/assets/59a1f845-f409-45bb-9c77-fe3a2d1262b1

(cherry picked from commit a86e37b36f)
2024-09-10 08:34:30 +01:00
Ilya Bogdanov
cf6f62c757 Fix CB visualization buttons (#11005)
Fixes #10472

Remove fullscreen button, fix Show/hide button, remove resize handles.

https://github.com/user-attachments/assets/7108bf7e-2f45-4c24-a8c3-d0b3c0135a20

(cherry picked from commit 7431f1c1b9)
2024-09-10 08:34:30 +01:00
Sergei Garin
b6bd4f8c05 Fix edge cut off in plan select at first (#11007)
- Closes: enso-org/cloud-v2#1454

This PR fixes the Plan selector grid. Also it aligns cards vertically

(cherry picked from commit f418f49ea5)
2024-09-10 08:34:29 +01:00
somebody1234
e2835ce104 Move some Drive state to zustand (#10913)
- Move Asset Panel open state to zustand
- This avoids re-rendering the entire Data Catalog view every time an asset is clicked
- Move Asset Panel props to zustand
- Move search suggestions to zustand
- Memoize `AssetRow` to avoid re-rendering every row when unnecessary

# Important Notes
It's not a perfect solution to the performance issues, however selection performance seems to have improved quite nicely.

(cherry picked from commit 51733ee876)
2024-09-10 08:34:29 +01:00
somebody1234
29eb9378fe Local Dashboard fixes (#10958)
- Fix most of https://github.com/enso-org/cloud-v2/issues/1459
- Prevent click + click from triggering rename on Windows and Linux. Behavior is preserved on macOS.
- Fix text in Drive when root folder is empty
- Properly remove the "Drop here to upload box" after a file is dropped
- "Copy as path" now unconditionally uses `/` for path delimiters, even on Windows
- Duplicating a project in the root folder on Windows no longer errors
- Extra folders in the sidebar now (correctly) show folder name, rather than path, on Windows
- Mouse pointer when dragging to a folder is now move, not copy

Not addressed:
- [no-repro] Tooltips should have some latency before showing up
- This should already be the case, although it may work weirdly (once the tooltip opens, there is no delay on subsequent tooltips opening until the last tooltip closes.)
- [no-repro] Ctrl-click should add to selection
- Column width should be resizable
- This requires a refactor and therefore is considered out of scope for this PR
- [no-repro] Choosing root folder needs a file browser
- [no-repro] Choosing root folder doesn't do anything get the same list as we had before
- [no-repro] Open in explorer didn't work in a file but did on project - possibly fixed by path changes.
- [no-repro] Opening an enso-project by double clicking resulted on it being renamed with a (2)

Related changes:
- Make "root directory" picker's file browser default to the current root directory

# Important Notes
None

(cherry picked from commit 9ec60299e4)
2024-09-10 08:34:29 +01:00
AdRiley
f2ea866da6 Add Not Paragraph icon (#11006)
![image](https://github.com/user-attachments/assets/d597b972-d154-4669-8f9b-fb9fa162e4cf)

(cherry picked from commit 60ea64e799)
2024-09-10 08:34:29 +01:00
Paweł Grabarz
dbc09c7c82 Do not crash on empty main function body. (#10990)
Fixes #10976

https://github.com/user-attachments/assets/00b2279d-2acf-468b-8c3c-aa6885cba23d

Addressed issue of empty body block being incorrectly "repaired" into an empty group, geneating invalid `()` syntax. Appending nodes to an empty function now actually replaces its body block, instead of creating a temporary orphan body block node.

Note that empty main function is still considered an error on the engine side, but it doesn't impact the IDE in negative way. Things work again as soon as a node is inserted.

Also fixed a few issues causing hot-reloading to break. Now edited AST code properly hot-reloads all affected modules without breaking the app.

(cherry picked from commit 6bfdda33a9)
2024-09-10 08:34:29 +01:00