Skip to content

Fix lock icons with visibility check#489

Merged
bmquinn merged 2 commits into
deploy/stagingfrom
preview/fix-public-lock-icons
Jun 30, 2026
Merged

Fix lock icons with visibility check#489
bmquinn merged 2 commits into
deploy/stagingfrom
preview/fix-public-lock-icons

Conversation

@bmquinn

@bmquinn bmquinn commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes intermittent lock icons appearing on public search result thumbnails by checking item visibility before user scope state. Public items now render as unrestricted even if auth resolves without a user, while non-public items still respect loading state and matching read scopes.

Changes

  • Checks for visibility explicitly in grid items before user scope

Testing

@bmquinn
bmquinn requested a review from kdid June 29, 2026 20:59
@kdid

kdid commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Good catch, let's fix this in transcription results too: https://github.com/nulib/dc-nextjs/blob/deploy/staging/components/Search/TranscriptionResults.tsx#L83

@bmquinn

bmquinn commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

@kdid if you search for "chicago" in the deployed preview branch there's results with mixed visibility for testing:
SCR-20260630-jjsc

@bmquinn
bmquinn merged commit 212d45a into deploy/staging Jun 30, 2026
3 checks passed
@bmquinn
bmquinn deleted the preview/fix-public-lock-icons branch June 30, 2026 17:36
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.

2 participants