Skip to content

Fix unlisted-share preview flicker#1020

Draft
aasandei-vsp wants to merge 1 commit into
mainfrom
PER-10352-unlisted-share-flicker
Draft

Fix unlisted-share preview flicker#1020
aasandei-vsp wants to merge 1 commit into
mainfrom
PER-10352-unlisted-share-flicker

Conversation

@aasandei-vsp
Copy link
Copy Markdown
Contributor

Resolve isUnlistedShare and ephemeralFolder before SharePreviewComponent renders so the first paint matches the share's actual type, instead of defaulting to the restricted-share UI and swapping after an async API call.

  • Add primeForToken / isUnlistedShareSync to ShareLinksService and invalidate the cache on token change and on navigation off /share/
  • Have ShareUrlResolveService prime the share-links cache in parallel with checkShareLink via Promise.all
  • Add ShareUrlEphemeralFolderResolveService so ephemeralFolder is on route data before the component constructs
  • Read isUnlistedShare synchronously in SharePreviewComponent and FileListItemComponent so blurred / real thumbnails are correct on first paint

Issue: PER-10352

Resolve isUnlistedShare and ephemeralFolder before SharePreviewComponent
renders so the first paint matches the share's actual type, instead of
defaulting to the restricted-share UI and swapping after an async API
call.

- Add primeForToken / isUnlistedShareSync to ShareLinksService and
  invalidate the cache on token change and on navigation off /share/
- Have ShareUrlResolveService prime the share-links cache in parallel
  with checkShareLink via Promise.all
- Add ShareUrlEphemeralFolderResolveService so ephemeralFolder is on
  route data before the component constructs
- Read isUnlistedShare synchronously in SharePreviewComponent and
  FileListItemComponent so blurred / real thumbnails are correct on
  first paint

Issue: PER-10352
@aasandei-vsp aasandei-vsp self-assigned this May 11, 2026
@aasandei-vsp aasandei-vsp marked this pull request as draft May 11, 2026 15:00
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

❌ Patch coverage is 90.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.00%. Comparing base (937b84b) to head (6811851).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...hare-preview/resolves/share-url-resolve.service.ts 75.00% 3 Missing ⚠️
...omponents/share-preview/share-preview.component.ts 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1020      +/-   ##
==========================================
+ Coverage   49.88%   50.00%   +0.12%     
==========================================
  Files         348      349       +1     
  Lines       11501    11533      +32     
  Branches     1974     1981       +7     
==========================================
+ Hits         5737     5767      +30     
+ Misses       5576     5573       -3     
- Partials      188      193       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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