chore(format): run prettier over src/ and scripts/

Formatting was configured but never enforced: `bun run format:check`
reported 199 unformatted files and ran in no workflow and in no git hook,
so .prettierrc (printWidth 100, trailing commas) described an intention
rather than the tree.

This is the one-time sweep that makes the check gateable. Whitespace and
token-reflow only -- no behavioural change: `bun run check` reports 0
errors and all 1053 frontend tests pass before and after.

Kept out of every other commit on purpose. A 199-file diff mixed with
real changes is unreviewable, and the next commit turns format:check
into a hard CI gate so this cannot silently accumulate again.
This commit is contained in:
2026-08-21 17:41:44 +02:00
parent d095e1f410
commit ad48d89dfe
199 changed files with 4698 additions and 3453 deletions
+14 -5
View File
@@ -30,7 +30,7 @@ export async function reportPlaybackStart(
itemId: string,
positionSeconds: number,
contextType: "container" | "single" = "single",
contextId: string | null = null
contextId: string | null = null,
): Promise<void> {
const positionMs = Math.floor(positionSeconds * 1000);
const userId = auth.getUserId();
@@ -42,13 +42,19 @@ export async function reportPlaybackStart(
positionSeconds,
"context:",
contextType,
contextId
contextId,
);
// Update local DB with context (always works, even offline)
if (userId) {
try {
await commands.storageUpdatePlaybackContext(userId, itemId, positionMs, contextType, contextId);
await commands.storageUpdatePlaybackContext(
userId,
itemId,
positionMs,
contextType,
contextId,
);
} catch (e) {
log.error("Failed to update playback context:", e);
}
@@ -72,7 +78,7 @@ export async function reportPlaybackStart(
export async function reportPlaybackProgress(
itemId: string,
positionSeconds: number,
_isPaused = false
_isPaused = false,
): Promise<void> {
const positionMs = Math.floor(positionSeconds * 1000);
const userId = auth.getUserId();
@@ -100,7 +106,10 @@ export async function reportPlaybackProgress(
*
* TRACES: UR-005, UR-025 | DR-028
*/
export async function reportPlaybackStopped(itemId: string, positionSeconds: number): Promise<void> {
export async function reportPlaybackStopped(
itemId: string,
positionSeconds: number,
): Promise<void> {
const positionMs = Math.floor(positionSeconds * 1000);
const userId = auth.getUserId();