test: DELIBERATE BREAK, expected red, reverted next (#8300)
release / web (push) Failing after 20s
release / go (push) Successful in 2m40s
release / govulncheck (push) Successful in 23s
release / integration (push) Successful in 3m30s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 2m57s
release / Build signed APK (push) Canceled after 1m22s
release / web (push) Failing after 20s
release / go (push) Successful in 2m40s
release / govulncheck (push) Successful in 23s
release / integration (push) Successful in 3m30s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 2m57s
release / Build signed APK (push) Canceled after 1m22s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -873,7 +873,7 @@ export async function removeWrongSlotFiles(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function dismissDuplicateGroup(id: string): Promise<void> {
|
export async function dismissDuplicateGroup(id: string): Promise<void> {
|
||||||
await api.post(`/api/admin/library/duplicates/${encodeURIComponent(id)}/dismiss`, {});
|
await api.post(`/api/admin/library/duplicates/${id}/dismiss`, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Needs a file ------------------------------------------------------
|
// Needs a file ------------------------------------------------------
|
||||||
|
|||||||
@@ -16,6 +16,6 @@ import type { Page } from './types';
|
|||||||
export function pageGetNextPageParam<T>() {
|
export function pageGetNextPageParam<T>() {
|
||||||
return (last: Page<T>): number | undefined => {
|
return (last: Page<T>): number | undefined => {
|
||||||
const loaded = last.offset + last.items.length;
|
const loaded = last.offset + last.items.length;
|
||||||
return loaded >= last.total ? undefined : loaded;
|
return loaded === last.total ? undefined : loaded; /* DELIBERATE BREAK */
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export type FlagParams = {
|
|||||||
|
|
||||||
export async function flagTrack(params: FlagParams): Promise<QuarantineRow> {
|
export async function flagTrack(params: FlagParams): Promise<QuarantineRow> {
|
||||||
const body: FlagParams = { track_id: params.track_id, reason: params.reason };
|
const body: FlagParams = { track_id: params.track_id, reason: params.reason };
|
||||||
if (params.notes && params.notes.length > 0) body.notes = params.notes;
|
if (params.notes !== undefined) /* DELIBERATE BREAK */ body.notes = params.notes;
|
||||||
return api.post<QuarantineRow>('/api/quarantine', body);
|
return api.post<QuarantineRow>('/api/quarantine', body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
// email-link reset flow (/forgot-password, /reset-password/<token>) is by
|
// email-link reset flow (/forgot-password, /reset-password/<token>) is by
|
||||||
// definition entered without a session.
|
// definition entered without a session.
|
||||||
const PUBLIC_ROUTES = new Set(['/login', '/register', '/forgot-password']);
|
const PUBLIC_ROUTES = new Set(['/login', '/register', '/forgot-password']);
|
||||||
const PUBLIC_PREFIXES = ['/reset-password/'];
|
const PUBLIC_PREFIXES = ['/reset-password']; /* DELIBERATE BREAK */
|
||||||
|
|
||||||
export function isPublicRoute(pathname: string): boolean {
|
export function isPublicRoute(pathname: string): boolean {
|
||||||
if (PUBLIC_ROUTES.has(pathname)) return true;
|
if (PUBLIC_ROUTES.has(pathname)) return true;
|
||||||
|
|||||||
@@ -32,8 +32,7 @@
|
|||||||
} else if (e.key === ' ' || e.key === 'Enter') {
|
} else if (e.key === ' ' || e.key === 'Enter') {
|
||||||
// Reorder activates via arrow keys, not Space/Enter. Prevent
|
// Reorder activates via arrow keys, not Space/Enter. Prevent
|
||||||
// default so Space doesn't scroll the queue list and Enter doesn't
|
// default so Space doesn't scroll the queue list and Enter doesn't
|
||||||
// fire the button's no-op click.
|
// fire the button's no-op click. /* DELIBERATE BREAK */
|
||||||
e.preventDefault();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
let { state }: Props = $props();
|
let { state }: Props = $props();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if state === 'in_progress'}
|
{#if state === 'in_progress' || state === 'pending'}
|
||||||
<span class="inline-flex items-center gap-1 text-xs text-action-primary">
|
<span class="inline-flex items-center gap-1 text-xs text-action-primary">
|
||||||
<Loader2 size={12} class="animate-spin" />
|
<Loader2 size={12} class="animate-spin" />
|
||||||
Processing
|
Processing
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// `h:mm:ss` otherwise. Negative values clamp to zero (callers shouldn't
|
// `h:mm:ss` otherwise. Negative values clamp to zero (callers shouldn't
|
||||||
// pass them, but the UI shouldn't crash if they do).
|
// pass them, but the UI shouldn't crash if they do).
|
||||||
export function formatDuration(seconds: number): string {
|
export function formatDuration(seconds: number): string {
|
||||||
const total = Math.max(0, Math.floor(seconds));
|
const total = Math.floor(Math.abs(seconds)); /* DELIBERATE BREAK */
|
||||||
const h = Math.floor(total / 3600);
|
const h = Math.floor(total / 3600);
|
||||||
const m = Math.floor((total % 3600) / 60);
|
const m = Math.floor((total % 3600) / 60);
|
||||||
const s = total % 60;
|
const s = total % 60;
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ export function toggleShuffle(): void {
|
|||||||
// Fisher-Yates shuffle over _queue[_index+1 .. end].
|
// Fisher-Yates shuffle over _queue[_index+1 .. end].
|
||||||
const arr = _queue.slice();
|
const arr = _queue.slice();
|
||||||
for (let j = arr.length - 1; j > _index; j--) {
|
for (let j = arr.length - 1; j > _index; j--) {
|
||||||
const r = Math.floor(_rng() * (j - _index)) + _index + 1;
|
const r = Math.floor(_rng() * (j + 1)); /* DELIBERATE BREAK */
|
||||||
[arr[j], arr[r]] = [arr[r], arr[j]];
|
[arr[j], arr[r]] = [arr[r], arr[j]];
|
||||||
}
|
}
|
||||||
_queue = arr;
|
_queue = arr;
|
||||||
@@ -533,7 +533,7 @@ export function removeFromQueue(idx: number): void {
|
|||||||
// pause on the now-last remaining track at position 0 — don't
|
// pause on the now-last remaining track at position 0 — don't
|
||||||
// auto-play a track the user already heard.
|
// auto-play a track the user already heard.
|
||||||
_index = next.length - 1;
|
_index = next.length - 1;
|
||||||
_state = 'paused';
|
_state = 'loading'; /* DELIBERATE BREAK */
|
||||||
_position = 0;
|
_position = 0;
|
||||||
_duration = 0;
|
_duration = 0;
|
||||||
_error = null;
|
_error = null;
|
||||||
|
|||||||
@@ -296,7 +296,7 @@
|
|||||||
{#if !isOwner}· by {pl.owner_username}{/if}
|
{#if !isOwner}· by {pl.owner_username}{/if}
|
||||||
</p>
|
</p>
|
||||||
{#snippet tools()}
|
{#snippet tools()}
|
||||||
{#if pl.refreshable && pl.system_variant}
|
{#if pl.kind === 'system' && pl.system_variant}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
disabled={refreshingSystem}
|
disabled={refreshingSystem}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
function errorMessageFor(code: string): string {
|
function errorMessageFor(code: string): string {
|
||||||
switch (code) {
|
switch (code) {
|
||||||
case 'invite_required':
|
case 'invite_required':
|
||||||
return 'An invite token is needed to register. Ask an admin of this server for one.';
|
return 'That invite token is invalid, expired, or already used.'; /* DELIBERATE BREAK */
|
||||||
case 'invite_invalid':
|
case 'invite_invalid':
|
||||||
return 'That invite token is invalid, expired, or already used.';
|
return 'That invite token is invalid, expired, or already used.';
|
||||||
case 'setup_token_invalid':
|
case 'setup_token_invalid':
|
||||||
|
|||||||
Reference in New Issue
Block a user