Repository navigation
fix(content): Export's link row as Before you publish reads it, its checks memoized, and the team named in the page's language (#1427 follow-up) - #1445
Merged
Conversation
…hecks memoized, and the team named in the page's language (ansvisor#1427 follow-up) - Export's links row no longer calls every unread link "still being read" while a read is pending: the reads coming count for the unread links at most, the rest couldn't be read (as Before you publish since ansvisor#1426), with a message for both at once - Export's paste checks are read again only when Export opens or a link read lands, not on every editor render - the brand's team, which goes to a CMS's author field when the page has no author, is named in the page's language (teamName: "Acme Ekibi", "Acme-Team"…), in Export's page fields and in Before you publish and Quality's lines that say how the page goes out Co-Authored-By: Claude Opus 5.5 <[email protected]>
gkhngyk
approved these changes
Oct 24, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good.
Checked
-
Links row: it counts the way Before you publish's
readyRowdoes. Reads still coming cover the unread links at most, and the rest couldn't be read. Broken links still take precedence, as before. The tests cover both splits. -
Memo:
linkChecksisuseLinkChecks' state Map, so its identity changes only when a read lands.exportOpenchanges only when Export opens. The hook sits before the component's onlyreturn. -
Team name:
teamNamereads the page's language the same way the byline line does: the Language rule, else the brand's.- A code or a language name resolves through
languageCode, as it does for the byline line. A language not in the table gets the brand alone. QualityRead.teamis set at the one place aQualityReadis built.- Neither the stack nor main uses the old
checks.links.readingform anywhere else.
-
Follow-up from the body: with #1438–#1440 merged, three places still pass the English "{brand} Team":
- the Send dialog's
teamBylinein_draft-editor.tsx; library/page.tsx;library/_bulk-send-dialog.tsx.
cmsSource'steamByline(brand)callback will need the page's language forteamName. - the Send dialog's
7 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-ups noted in my reply on #1427. Web only.
pasteChecks(exportOpen.html, linkChecks)ran on every editor render while Export was open. It is now auseMemoon the open page and the link reads.teamName(language, brand)reads the sameBYLINEStable as the byline line, giving "Acme Ekibi", "Acme-Team", "Équipe Acme" and so on;QualityRead.team;A pre-push review agent checked the diff. Its four low findings are in:
Follow-up: the Send to CMS dialog (#1438) and the Library's
cmsSource(#1439) still pass the English team name. I'll switch them toteamNameonce this and they are on main.Related issue
Follow-up to #1427 and #1426.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
cd web && npx vitest run src/lib/content/ready-to-publish.test.ts "src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_export-dialog.test.tsx". The tests cover the links row's four states andteamNameper language.NEXT_PUBLIC_CONTENT_QUALITY_PHASE=1, open Export on a page with links while their reads are pending. The row splits "still being read" from "couldn't be read".I didn't open it in the browser this time: the Mac had just run out of memory and rebooted during the checks. The change is copy and counting, covered by the tests above.
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): 0 errors, 6 existing warnings in files this PR doesn't touchyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
yarn test(362 files / 3282 tests) andyarn buildwith CI's placeholder env.🤖 Generated with Claude Code