Skip to content

Allow merging a PDF by dropping it onto the thumbnail viewer#21306

Merged
timvandermeij merged 1 commit into
mozilla:masterfrom
calixteman:dnd_pdf_merging
May 21, 2026
Merged

Allow merging a PDF by dropping it onto the thumbnail viewer#21306
timvandermeij merged 1 commit into
mozilla:masterfrom
calixteman:dnd_pdf_merging

Conversation

@calixteman
Copy link
Copy Markdown
Contributor

Drop an external PDF anywhere in the views-manager thumbnail sidebar to merge it at the cursor, rather than always inserting after the current page via the "Add file" button.

The drop reuses the blue separator from page-move drag so the user can see exactly where the inserted pages will land, and the merge path is shared with the existing picker so post-merge selection/current-page behavior stays consistent.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 20, 2026

Codecov Report

❌ Patch coverage is 84.84848% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.34%. Comparing base (b13ec1f) to head (d79043b).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
web/pdf_thumbnail_viewer.js 84.84% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21306      +/-   ##
==========================================
+ Coverage   81.27%   81.34%   +0.06%     
==========================================
  Files         256      256              
  Lines       64873    65207     +334     
==========================================
+ Hits        52728    53040     +312     
- Misses      12145    12167      +22     
Flag Coverage Δ
integrationtest 66.93% <84.84%> (+0.15%) ⬆️
unittest 56.85% <ø> (-0.25%) ⬇️
unittestcli 56.05% <ø> (-0.26%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

Comment thread test/integration/reorganize_pages_spec.mjs Outdated
Drop an external PDF anywhere in the views-manager thumbnail
sidebar to merge it at the cursor, rather than always inserting
after the current page via the "Add file" button.

The drop reuses the blue separator from page-move drag so the
user can see exactly where the inserted pages will land, and the
merge path is shared with the existing picker so post-merge
selection/current-page behavior stays consistent.
@timvandermeij
Copy link
Copy Markdown
Contributor

/botio-linux preview

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/4f2a2c55d0351cd/output.txt

@moz-tools-bot
Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/4f2a2c55d0351cd/output.txt

Total script time: 1.21 mins

Published

@timvandermeij timvandermeij merged commit 52d574c into mozilla:master May 21, 2026
18 checks passed
@timvandermeij
Copy link
Copy Markdown
Contributor

This seems to work just fine, and splitting the logic into smaller methods helps for readability of the code. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants