Repository navigation
Shorten the link to a visual preview's full-size original - #3528
Conversation
A preview whose original is kept in ProPR Connect showed a sign-in and retention sentence with a full ISO timestamp, followed by a separate "View the full-resolution original in ProPR Connect" link. It is now one line: [Full-size original](…) (Connect sign-in, until YYYY-MM-DD). The published-preview reader still skips the earlier link line, so bodies published before this change parse as before. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Remove this as well - (Connect sign-in, until 2027-02-11) |
|
✅ Applied the requested follow-up changes in commit 90e1bc8 Summary of ChangesI removed "(Connect sign-in, until 2027-02-11)". A preview whose original is kept in ProPR Connect now shows just the Full-size original link under the image. What changed
Checks
I didn't make a preview image. The change is a few words of text in a PR comment, and the tests check that text directly. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…whose original is kept in ProPR Connect now shows just the **[Full-size original](…)** link under the image. I removed "(Connect sign-in, until 2027-02-11)". A preview whose original is kept in ProPR Connect now shows just the **[Full-size original](…)** link under the image. **What changed** - `packages/core/src/services/visualPreviewRendering.ts`: the link line no longer has the parenthetical. I also took out the code that built it, and the retention date that the earlier change had added to the published preview data only for that note. - `src/github/visualPreviewAttachments.ts`: updated a code comment that described the removed text. - `CHANGELOG.md`: the entry now describes the plain `Full-size original` link. - Tests: the four assertions that expected the parenthetical now expect the bare link. The core test also checks that the words "sign-in" and "retained until" no longer appear anywhere in the preview section. The check that bodies with the old "View the full-resolution original in ProPR Connect" link still read the same is unchanged and passes. **Checks** - `npm run typecheck` passes. - ESLint finds no warnings in the root and core files I changed. - All the visual preview test files I ran pass: 5 in core and 6 at the root. - `workflowPreviewPublication.test.ts` failed the first time only because I left out the `--experimental-test-module-mocks` flag. With the flag it passes. I didn't make a preview image. The change is a few words of text in a PR comment, and the tests check that text directly. PR: #3528 Comment by: @integry (ID: 6849797681) Model: Claude Opus 5.5
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR correctly implements the amended objective: publish only the Full-size original link, without the sign-in or retention note. It is merge-ready within scope, conditional on the remaining test shard passing. ✅ Consistent publication behavior — The renderer emits the shortened link, and the shared publication path removes the separate note while preserving unavailable-original messages. ✅ Backward-compatible parsing — The reader skips both link formats, with assertions confirming that each produces the same preview metadata. ✅ Validation remains intact — Trusted-origin, ownership, asset identity, and retention checks still govern which managed originals receive published links. This review is based on static inspection of the supplied diff and context; no commands or tests were run. Current checks show 19 passed, none failed, and one pending. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Assert note removal through publicationOptionally add a negative assertion for the removed sign-in and retention sentence in ScoreThe change is focused, satisfies the authorized follow-up, and preserves parsing compatibility and publication safeguards. No code blockers were identified; the final test shard remains pending. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
Summary
A visual preview whose full-size original is kept in ProPR Connect showed two lines under the image:
It is now one short line:
Changes
visualPreviewRendering.ts: the link line carries the sign-in note and the retention date (day only); the published metadata keeps the original's retention time for that.visualPreviewAttachments.ts: the separate sign-in and retention sentence is no longer added to the description.publishedVisualPreviewService.ts: the reader skips both the new link line and the earlier one, so bodies published before this change parse the same.Test plan
npm run typecheck, root and core lint at zero warnings🤖 Generated with Claude Code