feat: add collapsible header and groups, card size slider and Crowdin translations
- Add a button that collapses a collection page's header to its title, game count and dynamic badge. The choice is remembered for all collections. - Make each group on a collection page collapsible, with a Collapse all / Expand all button next to Group by. Games hidden by a collapse leave the selection. - Add a card size slider to the collection page toolbar, remembered for all collections. - Match the search box and sort button height to the dropdowns. - Add Crowdin configuration and a workflow that uploads the English strings and opens pull requests with new translations. - Add CONTRIBUTING.md and a Translations section to the README. - Run the build workflow on master instead of main. - Bump the version to 1.3.0 and update the docs, changelog and manifest.
This commit is contained in:
1 parent
b9a6bf891d
commit
089f3e0f23
17 files changed
+494
-30
No files matched your search
+18
-1
@@ -286,7 +286,24 @@ Before a release, check these by hand in Playnite:
|
||||
|
||||
- `ApplicationMode` other than Desktop is untested, and the views need Desktop theme styles.
|
||||
- A search of the library in the rule preview runs on the UI thread. Very large libraries could feel it while editing.
|
||||
- Only `en_US` strings exist so far.
|
||||
- Translations come from Crowdin, so a release only includes the languages that were merged before it was built.
|
||||
|
||||
## Translations
|
||||
|
||||
`Localization/en_US.xaml` is the only file edited by hand. Everything else in `Localization/` comes from
|
||||
[Crowdin](https://crowdin.com/project/game-collections) and is overwritten on every sync, so never edit it here.
|
||||
|
||||
- [`crowdin.yml`](../crowdin.yml) maps `en_US.xaml` to `Localization/<locale>.xaml`, using Crowdin's
|
||||
`%locale_with_underscore%` names (`de_DE`, `pt_BR`, `zh_CN`). These are the names Playnite looks for.
|
||||
- Playnite loads `en_US.xaml` first, then the file for the user's language on top of it, so a missing string falls
|
||||
back to English. The plugin needs no code for this; the files only have to be copied to the output folder, which
|
||||
`GameCollections.csproj` does for every `Localization\*.xaml`.
|
||||
- The [Crowdin workflow](../.github/workflows/crowdin.yml) uploads `en_US.xaml` whenever it changes on `master`, and
|
||||
every Monday (or when run by hand from the Actions tab) opens a pull request from `l10n_crowdin` with the latest
|
||||
translations. Merge it before building a release.
|
||||
- It needs the `CROWDIN_PROJECT_ID` and `CROWDIN_PERSONAL_TOKEN` repository secrets.
|
||||
- When you add or change a key, change only `en_US.xaml`. Crowdin marks changed strings for re-translation, and
|
||||
removed keys disappear from the translations on the next sync.
|
||||
|
||||
## Releasing
|
||||
|
||||
|
||||
@@ -103,12 +103,19 @@ not show it. List view has no details panel, so it doesn't appear there. Theme a
|
||||
|
||||
- Header with poster, title, rating, game count and description, plus **Edit**, **Select in library** and **Delete**.
|
||||
Dynamic collections also show their rules and a **Refresh now** button.
|
||||
- The arrow button at the header's top right **collapses the header** to just the title, game count and Dynamic badge,
|
||||
leaving more room for games. Press it again to expand it. This is remembered for all collections.
|
||||
- **Search** the collection's games by name.
|
||||
- **Sort** by collection order (the order you arranged, or the order games were added), name, release date,
|
||||
last played, time played or date added, ascending or descending.
|
||||
- **Group by** shows the games in labelled groups, such as by platform, series, genre or release year. Each collection
|
||||
remembers its own choice. A game with several values, such as two genres, appears in each group. Games with no
|
||||
value go in a **Not set** group at the end.
|
||||
- Click a group's header to collapse or expand it, or use **Collapse all** / **Expand all** next to Group by.
|
||||
Collapsed groups reset when you leave the page or change the grouping.
|
||||
- Collapsing a group deselects its games, unless they also appear in a group that's still open.
|
||||
- **Card size**, the slider at the right of the toolbar, makes the game cards bigger or smaller. It's remembered for
|
||||
all collections.
|
||||
- **Installed only** hides games that aren't installed (uninstalled games are dimmed otherwise).
|
||||
- For each game (right-click, or keyboard):
|
||||
- **Play** / **Install** – double-click or **Enter**.
|
||||
|
||||
Reference in new issue
Block a user