Skip to content

Conversation

@somebody1234
Copy link
Contributor

Pull Request Description

  • Close https://github.com/enso-org/cloud-v2/issues/2068
    • Clicking a project link should open it as a project
    • If another project is already open, a confirmation dialog should be shown
    • If the project is already open, the tab should be changed to the relevant project

Important Notes

None

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.
  • If meaningful changes were made to logic or tests affecting Enso Cloud integration in the libraries,
    or the Snowflake database integration, a run of the Extra Tests has been scheduled.
    • If applicable, it is suggested to paste a link to a successful run of the Extra Tests.

@somebody1234 somebody1234 requested a review from indiv0 as a code owner October 10, 2025 08:33
@somebody1234 somebody1234 changed the title Open project by clicking on link in sidebar Support opening project by clicking on link in documentation Oct 10, 2025
@@ -1391,9 +1388,10 @@ export default class RemoteBackend extends Backend {

/** Resolve asset metadata from an enso path. */
override async resolveEnsoPath(path: backend.EnsoPath): Promise<backend.PathResolveResponse> {
const effectivePath = backend.EnsoPath(path.replace(/%20/g, ' '))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There may be more characters escaped with % shouldn't we use decodeURI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't know, actually. i think this was an intentional choice, otherwise i would have used decodeURI, but tbf i can't be 100% sure... i suppose i should try testing

Comment on lines +80 to +86
::after {
content: '';
position: absolute;
inset: 0;
border-radius: var(--radius-full);
pointer-events: none;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?

Copy link
Contributor

@farmaazon farmaazon Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file seems to duplicate logic I'm currently working on in:

Also, the logic for opening project by path is implemented when reading URL path in route guard, so the project opening from link could be implemented by just navigating to proper path. It handles "opening vs navigation" too. The only thing you would need to check yourself is if to show OpenProjectDialog

@PabloBuchu PabloBuchu requested a review from farmaazon October 15, 2025 09:36
@somebody1234 somebody1234 marked this pull request as draft October 15, 2025 09:37
@somebody1234
Copy link
Contributor Author

waiting on @farmaazon 's changes (as mentioned above) before finishing refactor:

@somebody1234
Copy link
Contributor Author

new changes look ok ✅

@somebody1234 somebody1234 marked this pull request as ready for review November 6, 2025 12:56
Copy link
Contributor

@farmaazon farmaazon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I no longer block this PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

-gui g-dashboard x-new-feature Type: new feature request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants