Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filename input in Cloud File Browser for write component. #12228

Merged
merged 9 commits into from
Feb 13, 2025

Conversation

farmaazon
Copy link
Contributor

Pull Request Description

Fixes #12112

Screencast.From.2025-02-04.16-41-59.mp4

Important Notes

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.

@farmaazon farmaazon added the -gui label Feb 4, 2025
@farmaazon farmaazon self-assigned this Feb 4, 2025
@farmaazon farmaazon marked this pull request as draft February 4, 2025 15:43
@farmaazon
Copy link
Contributor Author

Marked draft, as it is stacked on top of #12208

@farmaazon farmaazon force-pushed the wip/farmaazon/cfb-in-write branch from 4a37a0f to 45bb3f5 Compare February 5, 2025 09:54
@farmaazon farmaazon changed the title Component File Browser Filename input in Cloud File Browser for write component. Feb 5, 2025
@farmaazon farmaazon marked this pull request as ready for review February 5, 2025 10:12
Copy link

github-actions bot commented Feb 5, 2025

🧪 Storybook is successfully deployed!

📊 Dashboard:

Comment on lines +485 to +487
* @param keepAlive - when set, the `activity` instance will be kept between drop-down closing
* and opening. The activity component must not change it type (when being a ref) and provide
* `name` option explicitly.
Copy link
Contributor

Choose a reason for hiding this comment

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

An alternative approach would be <KeepAlive v-if="..."><component ...></KeepAlive><component v-else ...> (This could be packaged into a ConditionalKeepAlive slotted utility component to avoid writing the <component ....> twice). This would avoid the name requirement and the restriction on changing types.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

when v-else is hit, the cache will be gone I'm afraid...

...unless we put this in another KeepAlive.

Copy link
Contributor

@kazcw kazcw Feb 11, 2025

Choose a reason for hiding this comment

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

I don't understand. The reason for the conditional is to disable KeepAlive when the activity hasn't requested it. In that case, losing the cache is intended.

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 imagined keepAlive be requested per activity, so for example we have FileBrowser activity which is kept alive, but same drop-down could have another activity which is not: but even when that second activity is set, the FileBrowser is still cached.

@keydown.delete.stop
@keydown.arrow-left.stop
@keydown.arrow-right.stop
@keydown.enter="acceptCurrentFile() === false || $event.stopPropagation()"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be conditional? If the filename box is focused, I don't think I would expect Enter to be handled by the parent handler if the filename is invalid (empty).

@farmaazon farmaazon added the CI: Ready to merge This PR is eligible for automatic merge label Feb 11, 2025
@mergify mergify bot merged commit 30e1031 into develop Feb 13, 2025
40 of 43 checks passed
@mergify mergify bot deleted the wip/farmaazon/cfb-in-write branch February 13, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-gui CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloud File Browser in write - File name input and OK button
2 participants