feat(slint): pre-launch dev panel, queue controls, appearance persistence, reco cache settings
Sleep timer (queue footer): tokio monotonic deadline + 1Hz countdown that fires core().pause() at expiry; presets + custom minutes via a popover. Stop after this song: 4 QbzCore passthroughs + playback consume-before-advance seam and the load-bearing gapless-prefetch gate, plus the queue marker/menu so the Queue persists when playback halts. qbz-log crate: TeeLogger wrapping env_logger (stderr + 5000-line ring + ~/.local/share/qbz/logs/qbz.log) with write-time secret redaction (regex + live-secret registry) and a diagnostics bundle builder. Dev panel logs: in-app viewer that shows content the moment it opens, advanced controls behind a discreet [+], "Copy all" as the sole footer button, a copy button on the upload URL, and a redacted public paste upload. Diagnostics: qbz-app::diagnostics (extracted, src-tauri untouched) feeding a 7-section panel with the live active output device + sample rate/format (pactl) and a complete redacted report for the upload. Report an Issue: wires the header menu item to a 1:1 Tauri modal that opens the GitHub bug-report template. Appearance persistence: 6 toggles that were live-only now persist via ui_prefs + handler arm + startup seed (window-title-show, show-volume-steppers, sidebar-playlist-collage, local-library-track-artwork, in-app-toasts, theme-filter). Recommendations cache (per-tab only): TTL select 24/36/48/72h + Refresh now in ExternalRecoView; no change to the other Discover tabs. Bump workspace version 0.1.0 -> 1.2.15 so app_version is correct in the diagnostics report and the QConnect About string. i18n es/de/fr/pt for all new strings. cc
This commit is contained in:
44 files changed
+5092
-71
No files matched your search
@@ -11,11 +11,13 @@
|
||||
|
||||
import { Theme } from "../foundation/semantic-colors.slint";
|
||||
import { Typography } from "../foundation/typography.slint";
|
||||
import { ExternalRecoState } from "../state.slint";
|
||||
import { ExternalRecoState, ExternalRecoActions } from "../state.slint";
|
||||
import { Carousel } from "Carousel.slint";
|
||||
import { SlimCarousel } from "SlimCarousel.slint";
|
||||
import { ArtistCarousel } from "ArtistCarousel.slint";
|
||||
import { HomeSkeleton, SkeletonCarouselRow, SkeletonSlimRow } from "HomeSkeleton.slint";
|
||||
import { QbzSelect } from "../primitives/QbzSelect.slint";
|
||||
import { SecondaryButton } from "../primitives/SecondaryButton.slint";
|
||||
|
||||
export component ExternalRecoView inherits VerticalLayout {
|
||||
callback open-album(string);
|
||||
@@ -50,6 +52,34 @@ export component ExternalRecoView inherits VerticalLayout {
|
||||
spacing: 40px;
|
||||
alignment: start;
|
||||
|
||||
// Cache-window controls — pick how long the built recommendations are served
|
||||
// from cache before a rebuild, and force an immediate rebuild ("Refresh now").
|
||||
HorizontalLayout {
|
||||
alignment: end;
|
||||
spacing: 8px;
|
||||
Text {
|
||||
text: @tr("Cache window");
|
||||
color: Theme.text-muted;
|
||||
font-size: 13px;
|
||||
vertical-alignment: center;
|
||||
}
|
||||
QbzSelect {
|
||||
sm: true;
|
||||
menu-width: 140px;
|
||||
options: [@tr("24 hours"), @tr("36 hours"), @tr("48 hours"), @tr("72 hours")];
|
||||
current-index: ExternalRecoState.cache-ttl-index;
|
||||
selected(i) => {
|
||||
ExternalRecoActions.set-cache-ttl(i);
|
||||
}
|
||||
}
|
||||
SecondaryButton {
|
||||
label: @tr("Refresh now");
|
||||
clicked => {
|
||||
ExternalRecoActions.refresh-now();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Initial full-page skeleton — only until the per-row pending flags are set
|
||||
// (or content arrives), after which the individual row skeletons take over.
|
||||
if ExternalRecoState.loading && !root.any-content && !root.any-pending: HomeSkeleton { }
|
||||
|
||||
Reference in new issue
Block a user