MuckRock / documentcloud-frontend

DocumentCloud's front end source code - Please report bugs, issues and feature requests to info@documentcloud.org
https://www.documentcloud.org
GNU Affero General Public License v3.0
15 stars 5 forks source link

Embed-aware Viewer links #727

Closed allanlasser closed 1 week ago

allanlasser commented 1 week ago

Closes #724

When you're using the Viewer on the document page, everything should work as before.

When you're using the Viewer on an embed route, you should stay within the embed view.

github-actions[bot] commented 1 week ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 21.48% 6381 / 29696
🔵 Statements 21.48% 6381 / 29696
🔵 Functions 39.19% 136 / 347
🔵 Branches 57% 346 / 607
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/lib/components/documents/DocumentListItem.svelte 100% 71.42% 100% 100%
src/lib/components/embeds/DocumentEmbed.svelte 0% 0% 0% 0% 1-64
src/lib/components/forms/ConfirmRedaction.svelte 0% 0% 0% 0% 1-88
src/lib/components/layouts/DocumentLayout.svelte 0% 0% 0% 0% 1-117
src/lib/utils/viewer.ts 92.1% 100% 50% 92.1% 15-17
Generated in workflow #505
netlify[bot] commented 1 week ago

Deploy Preview for documentcloud-frontend ready!

Name Link
Latest commit 543591f106794f951f6536b116a8e0625fa11695
Latest deploy log https://app.netlify.com/sites/documentcloud-frontend/deploys/66f6c9fcfcdfc90008aeec2f
Deploy Preview https://deploy-preview-727.muckcloud.com
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.