Commit 95d0f69
Report preview availability from the verification state, not the render path
Every preview-mode tile reported into the shared store, but the verdict
was derived from what the tile happened to draw: a compact tile for a
non-image type and a document or model tile show a type icon without
opening the iframe, so a file that failed to download still counted as
available there, while the gallery card for the same NFT hit
prepareError and reported it unavailable. Whichever tile mounted last
won, and an autocomplete row could flip the gallery's verdict.
The verdict now follows the verification state all of these tiles
share: the preview is available when the selected source is verified and
could be served from the cache, unavailable when there is no file, a
settled mismatch, or a download failure — the same outcome the hash
badge reports, whatever the tile draws. It stays undecided while
verification is in flight and, for a failed data file, while the
metadata has not settled, since a thumbnail may still verify.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YKEGodEgVdEuvUM8dza52q1 parent b332522 commit 95d0f69
1 file changed
Lines changed: 20 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
521 | | - | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
522 | 526 | | |
523 | | - | |
| 527 | + | |
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
527 | | - | |
528 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
529 | 535 | | |
530 | 536 | | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
535 | 541 | | |
536 | | - | |
537 | | - | |
538 | | - | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
539 | 545 | | |
540 | 546 | | |
541 | 547 | | |
542 | | - | |
| 548 | + | |
543 | 549 | | |
544 | 550 | | |
545 | 551 | | |
| |||
0 commit comments