fix(browse): format filter + sentry AbortError filtering

- Preserve 'all' value in format filter URL param so "All Formats"
  selection persists correctly
- Filter AbortError from client-side Sentry error reporting

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
airano
2026-02-19 15:52:45 +03:30
parent c8216dfcd2
commit c531db31db
2 changed files with 8 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ export function BrowseFilters({
const params = new URLSearchParams(searchParams.toString()); const params = new URLSearchParams(searchParams.toString());
Object.entries(updates).forEach(([key, value]) => { Object.entries(updates).forEach(([key, value]) => {
if (value === null || value === '' || value === 'all' || value === 'false') { if (value === null || value === '' || value === 'false') {
params.delete(key); params.delete(key);
} else { } else {
params.set(key, value); params.set(key, value);

View File

@@ -30,6 +30,13 @@ Sentry.init({
replaysOnErrorSampleRate: 1.0, // 100% of sessions with errors replaysOnErrorSampleRate: 1.0, // 100% of sessions with errors
// Filter out common non-actionable errors // Filter out common non-actionable errors
ignoreErrors: [
// AbortError during navigation is expected browser behavior when
// Next.js RSC prefetch/streaming requests get cancelled mid-flight
"AbortError: BodyStreamBuffer was aborted",
"AbortError",
],
beforeSend(event, hint) { beforeSend(event, hint) {
// Ignore ResizeObserver errors (browser quirk, not actionable) // Ignore ResizeObserver errors (browser quirk, not actionable)
if (event.exception?.values?.[0]?.value?.includes("ResizeObserver")) { if (event.exception?.values?.[0]?.value?.includes("ResizeObserver")) {