Skip to content

Shorten the link to a visual preview's full-size original - #3528

Merged
integry merged 2 commits into
mainfrom
fix/shorter-preview-original-link
Nov 13, 2026
Merged

integry merged 2 commits into
mainfrom
fix/shorter-preview-original-link

Conversation

@integry

@integry integry commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Summary

A visual preview whose full-size original is kept in ProPR Connect showed two lines under the image:

Connect sign-in required. Original retained until 2027-02-11T09:30:04.103Z.

View the full-resolution original in ProPR Connect

It is now one short line:

Full-size original (Connect sign-in, until 2027-02-11)

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
  • All 11 visual preview test files pass, including a new assertion that a body with the earlier link line still parses to the same preview

🤖 Generated with Claude Code

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]>
@integry integry added the AI label Nov 13, 2026
@integry

integry commented Nov 13, 2026

Copy link
Copy Markdown
Owner Author

Remove this as well - (Connect sign-in, until 2027-02-11)

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ Applied the requested follow-up changes in commit 90e1bc8

Summary of Changes

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.


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 6m 8s
  • Tokens: 542,070 (537,697 in / 4,373 out)
  • Cost: $0.40
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6849797681✓

…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
@integry

integry commented Nov 13, 2026

Copy link
Copy Markdown
Owner Author

/review

@propr-dev

propr-dev Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The 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 blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Assert note removal through publication

Optionally add a negative assertion for the removed sign-in and retention sentence in test/visualPreviewAttachments.test.ts. The core renderer test checks its absence, but the removed sentence originated in the attachment publisher. Its updated positive link assertion would still pass if that separate sentence returned. This would strengthen regression coverage; the current implementation correctly removes it.

Score

The 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

  • Model: GPT-6 Astra
  • Time: 22s
  • Tokens: 47,706 (47,325 in / 381 out)
  • Cost: $0.38

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1

🤖 Review by ProPR

@integry
integry merged commit db3de5c into main Nov 13, 2026
42 checks passed
@integry
integry deleted the fix/shorter-preview-original-link branch November 13, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants