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

Headers are added for the different sections, merged results, filter for songs without certain instruments #460

Merged
merged 3 commits into from
Jun 14, 2023

Conversation

SamuelPalma
Copy link
Contributor

@SamuelPalma SamuelPalma commented Jun 12, 2023

  • Headers are only shown if the song list is greater than 30 songs (arbritrary number)

    • TODO: Tweak constant MIN_SONGS_FOR_SECTION_HEADERS
  • Added filters to search for songs without a specific instrument

    • instrument:-guitar
    • instrument:-bass
    • instrument:-drums
    • instrument:-keys
    • instrument:-vocals
    • instrument:-band
  • The search results are merged

    • source:rb1dlc;source:rb2dlc
  • Fixed bug that displayed the following filter incorrectly if the back button was pressed

  • SongSelection.cs class refactored

    • SongSearching.cs created

    + Headers are only shown if the song list is greater than 30 songs (arbritrary number)
    + TODO: Tweak constant MIN_SONGS_FOR_SECTION_HEADERS

* Added filters to search for songs without a specific instrument
    + instrument:-guitar
    + instrument:-bass
    + instrument:-drums
    + instrument:-keys
    + instrument:-vocals
    + instrument:-band

* The search results are merged
    + source:rb1dlc;source:rb2dlc

* Fixed bug that displayed the following filter incorrectly if the back button was pressed

* SongSelection.cs class refactored
    + SongSearching.cs created
@SamuelPalma
Copy link
Contributor Author

Filters for songs without a specific instrument

YARG_20230611_235706

@SamuelPalma
Copy link
Contributor Author

Merged results
YARG_20230612_000213

@SamuelPalma
Copy link
Contributor Author

Section headers
YARG_20230612_000601

@kaduwaengertner
Copy link
Member

Thats awesome! Can we also add how many songs under each header?
image

Another thing that I think we can add, that I've added on the project figma is subheaders for Artists, so we can have subheadead for each album
image

@SamuelPalma
Copy link
Contributor Author

Hello, the current implementation of the headers is a button without associated functionality ButtonViewType that is inserted in the appropriate place.

Apparently the CategoryViewType class already has a section for counting, but we would have to modify the way in which the songs are added, to add them by section step by step and not globally.

Regarding the subheadings we would have to create a new class that extends ViewType that contains a list of SongViewType, but I believe that it is possible.

}
}

private readonly static List<Tuple<string, string>> troublesomeCharacters = new List<Tuple<string, string>>{
Copy link
Member

Choose a reason for hiding this comment

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

List<Tuple<string, string>> can be simplified to List<(string, string)>, or better yet, List<(string from, string to)>.

@EliteAsian123 EliteAsian123 merged commit dc2082f into YARC-Official:dev Jun 14, 2023
EliteAsian123 pushed a commit that referenced this pull request Jun 16, 2023
* * Headers are added for the different sections
    + Headers are only shown if the song list is greater than 30 songs (arbritrary number)
    + TODO: Tweak constant MIN_SONGS_FOR_SECTION_HEADERS

* Added filters to search for songs without a specific instrument
    + instrument:-guitar
    + instrument:-bass
    + instrument:-drums
    + instrument:-keys
    + instrument:-vocals
    + instrument:-band

* The search results are merged
    + source:rb1dlc;source:rb2dlc

* Fixed bug that displayed the following filter incorrectly if the back button was pressed

* SongSelection.cs class refactored
    + SongSearching.cs created

* * Changes made as a result of the discussion #460

* * Added sorting by song duration.

* The following sections are configured for sorting by duration:
-
00:00 - 02:00
02:00 - 05:00
05:00 - 10:00
10:00 - 15:00
15:00 - 20:00
20:00+

* The cursor moves one position when a section header is pressed.

* The SongSelection.cs class is slightly refactored

* * Changes made as a result of the discussion #471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants