Skip to content

feat: search the card catalog and inspect printings - #532

Merged
Reilley64 merged 9 commits into
integration/mtgscan-273-rust-gpuifrom
feat/mtgscan-284-catalog-search
Nov 14, 2026
Merged

Reilley64 merged 9 commits into
integration/mtgscan-273-rust-gpuifrom
feat/mtgscan-284-catalog-search

Conversation

@Reilley64

@Reilley64 Reilley64 commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

Part of MTGSCAN-284.

Native catalog controls and session coordinator
  versioned catalog API
    one application::catalog::query_catalog
      canonical request/result/refusal contract
      scoped SQLx adapter and existing SQL search engine
  • Add catalog search, card queries, printing lists and Oracle-tag lookup. Keep catalog search distinct from collection search and local gallery name search.
  • Reuse native controls, artwork, card symbols, labels, generated tokens and the shared card grid. Preserve the composed collection and gallery root.
  • Refresh the visible page after foreground revalidation and Collection after returning from Catalog. Release superseded pagination without letting an obsolete completion release a newer request.
  • Extend the dedicated reader's catalog grants. Require explicit narrow Auth-owner provisioning and reject incomplete grants at startup.

Evidence

  • Before: Reviews and actual f24 root observations found stuck pagination and a stale binder after returning from Catalog.
    After: Exact 0015582a1239db58c207afedfecac51da2bf0a42 actual-root observations show usable pagination after card return, correct newer-request busy ownership, and Collection reads advancing from four to two copies. A 503 retains two; a later return recovers to three. Public controller regressions pass. Three deliberate pagination mutations fail and were restored.
  • Before: Ordinary local migration-role Auth grants warned without taking effect. Actual catalog requests failed with 503/42501.
    After: The exact committed provisioning file fails atomically without grant authority and succeeds idempotently through the existing isolated local Auth owner. The restricted API/application/SQLx path passes bounded ranking, filters, cursors, quantities, Oracle tags, telemetry and concurrent owner-isolation checks. This d9 evidence transfers across identical backend/Supabase source at 001. It is not hosted provisioning proof.
  • Fresh full production Swift/UIKit compilation and real GoogleSignIn/SPM linking pass at 001. Faithful runtime uses the unchanged default AccountPage() root and mocked external capabilities. It confirms both fixes, collection/gallery continuity, foreground refresh, printing retry, owned-only reset and account clearing. Rust GPUI uses the compatibility-verified patched f24 archive, not a fresh Rust build at 001.
  • Exact-head CI passes: Rust/native units and lint, database and migration suites, GPUI gate units, and title. App/site jobs are scope-skipped, not newly tested. Local type check and lint receipts are retained.
  • New automated coverage is unit-only with external capabilities mocked. Manual native and SQL probes are separate. Evidence and independent hash verification are under /tmp/mtgscan-273-implementation/, including 284-native-final-recheck.md, 284-sql-provisioned-acceptance.md and 284-gate-evidence-proof.json.

Merge Danger

Door: Two-way for source. Database provisioning is a separate controlled operation.

Blast Radius: Catalog

This source merge targets only integration/mtgscan-273-rust-gpui. Hosted Auth-owner capability remains unknown. MTGSCAN-277/278 must establish and separately approve that provisioning path before activation. No hosted grants, deployment, cutover, publication or release is authorized.

Native evidence is bounded to synthetic Simulator capabilities. It does not establish real providers/keychain, real-art fidelity, physical edge-back, spoken VoiceOver, OS background transfer/relaunch, distribution or release parity. Gallery and recognizer sources are unchanged from accepted integration4d3; no new replay is claimed. Main and PR527 remain outside this merge decision.

Clear incompatible printing rows and cursor when filters change. Normalize fallback artwork/finish on printing retry without overlapping presentation-state access. Share credential parsing and card-grid layout, and use sentence-case choice labels. Foreground refresh remains a separately tracked open finding.

Refs MTGSCAN-284
Resume authentication before refreshing the visible catalog. Source correction for the review finding; actual root lifecycle red/green and native runtime acceptance remain pending.

Refs MTGSCAN-284
@Reilley64
Reilley64 marked this pull request as ready for review November 14, 2026 00:04
@Reilley64
Reilley64 merged commit a2b730c into integration/mtgscan-273-rust-gpui Nov 14, 2026
10 checks passed
@Reilley64 Reilley64 mentioned this pull request Nov 14, 2026
6 of 33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant