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

💄 File/Folder move UI improvements #4694

Merged
merged 2 commits into from Jan 23, 2023

Conversation

cp2004
Copy link
Member

@cp2004 cp2004 commented Dec 16, 2022

What does this PR do and why is it necessary?

Noticed a couple of small QoL things that I thought I would address with the file/folder moving & renaming.

  1. Missing styling on the name box
    image
    fixed

  2. Not obvious you can rename files until after you click the 'scissors' icon. The icon & tooltip don't imply this (see [Request] Please allow to rename jobs (gcode files) and "star" those to keep. #4693) to the average user perhaps?
    Made it more obvious.

  3. No distinction between moving files or folders. The title says 'Move file or folder', the name just says 'filename' (but applies to folder names as well) & text at the bottom says 'file/folder will be moved to'. Just got on my nerves when I looked at it 😆
    Made it show the correct name

  4. Text at the bottom 'File/Folder will be moved to' is visible even when there is no action to be performed.
    Made it disappear when nothing will happen

  5. Button says 'Move', while file moving & renaming are the same in the code, I thought it made more sense for this to be 'confirm'. Up for debate on that one I guess, just sounded better to me personally.
    Made it confirm

How was it tested? How can it be tested by the reviewer?

Locally on my development install by moving a folder or file.

Any background context you want to provide?

Inspired by #4693 being opened

@github-actions github-actions bot added targets maintenance The PR targets the maintenance branch approved Issue has been approved by the bot or manually for further processing labels Dec 16, 2022
@jneilliii
Copy link
Contributor

confirm makes sense, but you could also make the text change from move to rename when the source folder is the same as destination...

@foosel
Copy link
Member

foosel commented Jan 16, 2023

confirm makes sense, but you could also make the text change from move to rename when the source folder is the same as destination...

I actually really like that idea. "Confirm" while valid is less explicit, and a dynamic button title would make things crystal clear here. @cp2004, want to look into that?

@cp2004
Copy link
Member Author

cp2004 commented Jan 17, 2023

@cp2004, want to look into that?

Will do as soon as I get a chance.

@cp2004
Copy link
Member Author

cp2004 commented Jan 18, 2023

Done 🙂

@foosel foosel merged commit 8da9e1e into OctoPrint:maintenance Jan 23, 2023
@foosel foosel added this to the 1.9.0 milestone Jan 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Issue has been approved by the bot or manually for further processing targets maintenance The PR targets the maintenance branch
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants