Fully custom titlebar, search status/sort filters, and import by link

- Replace Window Controls Overlay with a fully frameless window and
  custom minimize/maximize/close buttons, since even the native
  overlay always paints a flat rect that can't blend into this app's
  gradient/glass backgrounds. Sidebar and content now reach the true
  top of the window instead of leaving a reserved gap.
- Add ranked-status filter chips (ranked/qualified/loved/pending/wip/
  graveyard/approved) and a sort dropdown (favourites, plays,
  difficulty, newest/oldest) to Find maps, backed by real Favourites/
  Playcount fields confirmed present on catboy.best's API.
- Add "Import by link": paste an osu! beatmapset URL or bare numeric
  ID to fetch and install it directly, without a text search.
This commit is contained in:
pvrzz
2026-09-17 21:26:12 -04:00
parent 211025f840
commit 902e59f974
14 changed files with 406 additions and 31 deletions
+12
View File
@@ -48,6 +48,8 @@ export interface BeatmapSet {
source: string;
/** Present for beatmapsets found on disk; the Songs subfolder name, used for file operations. */
folderName?: string;
favouriteCount?: number;
playCount?: number;
}
/** osu!'s own genre enum (matches the IDs osu!/mirrors report; "any" omitted since it means "no filter"). */
@@ -85,6 +87,15 @@ export const LANGUAGES: Record<number, string> = {
14: "Other",
};
export type BeatmapSortOption =
| "relevance"
| "favourites"
| "plays"
| "difficulty-asc"
| "difficulty-desc"
| "newest"
| "oldest";
export interface BeatmapSearchQuery {
query?: string;
mode?: OsuMode;
@@ -97,6 +108,7 @@ export interface BeatmapSearchQuery {
language?: number;
/** Mania key count (4, 7, ...) — matched against difficulty CS. Ignored unless mode is "mania". */
keys?: number;
sort?: BeatmapSortOption;
page?: number;
pageSize?: number;
}