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

Feature: Disable warning when a new name is empty #12150

Merged

Conversation

ferrariofilippo
Copy link
Contributor

@ferrariofilippo ferrariofilippo commented Apr 21, 2023

Resolved / Related Issues

  • Were these changes approved in an issue or discussion with the project maintainers? In order to prevent extra work, feature requests and changes to the codebase must be approved before the pull request will be reviewed. This prevents extra work for the contributors and maintainers.
    Closes Feature: Disable warning when a new name is empty #12140

Removed from

  • New Item Dialog
  • New Archive Dialog
  • New Shortcut Dialog

Validation
How did you test these changes?

  • Did you build the app and test your changes?
  • Did you check for accessibility? You can use Accessibility Insights for this.
  • Did you remove any strings from the en-us resource file?
    • Did you search the solution to see if the string is still being used?
  • Did you implement any design changes to an existing feature?
    • Was this change approved?
  • Are there any other steps that were used to validate these changes?
    1. Open app
    2. Open the menu to create a new file
    3. See that the warning is not displayed when the name is empty

@yaira2
Copy link
Member

yaira2 commented Apr 21, 2023

Should we target the servicing branch?

@ferrariofilippo
Copy link
Contributor Author

ferrariofilippo commented Apr 21, 2023

I don't think this issue is that urgent. I mean, it's not fixing a breaking bug

yaira2
yaira2 previously approved these changes Apr 21, 2023
Copy link
Member

@yaira2 yaira2 left a comment

Choose a reason for hiding this comment

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

LGTM

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Apr 21, 2023
@ferrariofilippo
Copy link
Contributor Author

LGTM

What do you think about the two questions in the description?

@yaira2
Copy link
Member

yaira2 commented Apr 21, 2023

Should we disable the tip also when the shortcut path is invalid?
I believe we shouldn't remove that from tags. What do you think?

Is there any reason to handle it differently?

@ferrariofilippo
Copy link
Contributor Author

Is there any reason to handle it differently?

For the first one (shortcuts) I agree, we should not show the tip. It was not mentioned in the issue and I wanted to wait on some feedback to avoid wasting work
For tags, I don't think the warning is disturbing there, I mean it's not covering anything else (as the tip does)

@yaira2
Copy link
Member

yaira2 commented Apr 21, 2023

We can try without it then 👍

@hishitetsu
Copy link
Member

hishitetsu commented Apr 21, 2023

I think this should be merged into the servicing brunch.
It is certainly not a breaking bug, but I think it is making the UX much worse.

@hishitetsu
Copy link
Member

And I think the tag warning should be removed. The problem is not that something is hidden, but that the warnings are just unnecessary and offensive to the user.

@ferrariofilippo
Copy link
Contributor Author

And I think the tag warning should be removed. The problem is not that something is hidden, but that the warnings are just unnecessary and offensive to the user.

I removed it for empty names but not for whitespaces

@ferrariofilippo ferrariofilippo changed the base branch from main to service/2.4.67 April 22, 2023 06:39
@ferrariofilippo
Copy link
Contributor Author

I think this should be merged into the servicing brunch. It is certainly not a breaking bug, but I think it is making the UX much worse.

I swapped it to servicing but the changes are like 3k lines (instead of something like 20). I think I should change back to main

@ferrariofilippo ferrariofilippo changed the base branch from service/2.4.67 to main April 22, 2023 07:09
@hishitetsu
Copy link
Member

hishitetsu commented Apr 22, 2023

I swapped it to servicing but the changes are like 3k lines (instead of something like 20). I think I should change back to main

Perhaps you have to create another branch based on the servicing branch and cherry-pick your commits into it.
Or maybe rebase would work.
git rebase --onto service/2.4.67 main Remove_Invalid_Warning_On_Empty

@yaira2 yaira2 merged commit 7ed84ac into files-community:main Apr 24, 2023
hishitetsu pushed a commit to hishitetsu/Files that referenced this pull request Apr 24, 2023
@ferrariofilippo ferrariofilippo deleted the Remove_Invalid_Warning_On_Empty branch April 25, 2023 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Disable warning when a new name is empty
4 participants