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: Added support for grouping items by month #12288

Merged
merged 8 commits into from
May 9, 2023

Conversation

hishitetsu
Copy link
Member

@hishitetsu hishitetsu commented May 6, 2023

Also fixed a minor bug where checkmarks for sort direction were not shown in the flyout.

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: Add support to group by month #12244

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?

Screenshots
image

Copy link
Member

@0x5bfa 0x5bfa left a comment

Choose a reason for hiding this comment

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

In terms of codebase. Otherwise LGTM!

@hishitetsu hishitetsu requested a review from 0x5bfa May 6, 2023 09:41
Copy link
Member

@0x5bfa 0x5bfa left a comment

Choose a reason for hiding this comment

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

Last thing.

src/Files.App/Helpers/ContextFlyoutItemHelper.cs Outdated Show resolved Hide resolved
@0x5bfa
Copy link
Member

0x5bfa commented May 6, 2023

Can you not collapse by the reviewee-self other than 'Suggested changes'? Reviewers cannot see what you say or how you respond.

0x5bfa
0x5bfa previously approved these changes May 6, 2023
Copy link
Member

@0x5bfa 0x5bfa left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@hecksmosis hecksmosis left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM

src/Files.App/BaseLayout.cs Outdated Show resolved Hide resolved
@yaira2 yaira2 changed the title Feature: Added support to group by month Feature: Added support for grouping items by month May 7, 2023
@yaira2
Copy link
Member

yaira2 commented May 7, 2023

Would it be better to have "Group by month" be its own option instead of making it a sub option of "Group by date"?

@hishitetsu
Copy link
Member Author

hishitetsu commented May 7, 2023

Would it be better to have "Group by month" be its own option instead of making it a sub option of "Group by date"?

I think so. There are several "Group by date" options, so it would be cleaner to add one sub option than to add monthly groupings to all of them.

@yaira2
Copy link
Member

yaira2 commented May 7, 2023

That's true, but it's still confusing to have the sub options the way they are. While I dislike nesting multiple sub menus, I think it's the best option here.

@hishitetsu
Copy link
Member Author

While I dislike nesting multiple sub menus, I think it's the best option here.

If the submenus are nested, we have to open the nested submenus to see what they are grouped by. I think it is inconvenient.
image

@yaira2
Copy link
Member

yaira2 commented May 7, 2023

If the submenus are nested, we have to open the nested submenus to see what they are grouped by. I think it is inconvenient.

True, you don't see which one is selected without opening the menu but at least the options are grouped together. It's not apparent that the options go together if they aren't next to each other.

@hishitetsu
Copy link
Member Author

I changed "Group by year" and "Group by month" to sub options of "Group by date".

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 May 9, 2023
@yaira2 yaira2 merged commit ddd5171 into files-community:main May 9, 2023
@hishitetsu hishitetsu deleted the GroupByMonth branch May 9, 2023 14:11
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: Add support to group by month
4 participants