Skip to content

Removed commentsThreads & commentsPinning labs flags - #29885

Merged
kevinansfield merged 6 commits into
mainfrom
remove-comments-threads-flag
Aug 11, 2026
Merged

Removed commentsThreads & commentsPinning labs flags#29885
kevinansfield merged 6 commits into
mainfrom
remove-comments-threads-flag

Conversation

@kevinansfield

@kevinansfield kevinansfield commented Aug 11, 2026

Copy link
Copy Markdown
Member

Removes the permanently enabled commentsThreads and commentsPinning labs flags now that threaded comments and comment pinning are generally available.

Because both flags were GA (always on), everything they gated was dead code in production.

commentsThreads — the useThreading prop threaded through every comments-ui component and all of the non-threaded rendering branches are removed: the flat reply layout, the "Replied to:" reply snippets, and top-level reply collapsing were unreachable in production. FormWrapper's threadedLayout prop is replaced by layoutVariant: 'main' | 'reply' since it now distinguishes inline reply forms from the main form rather than threaded from non-threaded. Unused translation keys are pruned from all locales.

commentsPinning — pinned-first ordering and the pin moderation actions are now unconditional across the comments service, Admin, and comments-ui. The 405 "pinning not enabled" guard is removed, and since that was the comments service's only labs check, the service's labs dependency is removed entirely.

The comments-ui e2e suite previously defaulted the mocked flags off and so was exercising the non-threaded UI production users never saw; tests for removed behaviour are deleted and the threading tests move from labs.test.ts to a new threads.test.ts.

Deploy ordering — comments-ui is bumped to 1.6.0 with Ghost's default asset config pointing at ~1.6, so already-deployed backends keep pairing with 1.5.x bundles (which still read the flag) and flag-free backends only ever load flag-free bundles.

Removes the permanently enabled `commentsThreads` labs flag now that
threaded comments are generally available. Threading is the only rendering
mode, so the flag's conditionals and the unreachable non-threaded UI
(flat reply layout, reply-to snippets, top-level reply collapsing) are
removed along with their translation keys.
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 59bbb911-f132-4bcc-bd80-8321a5138a35

📥 Commits

Reviewing files that changed from the base of the PR and between 0f3a275 and 942148d.

📒 Files selected for processing (3)
  • apps/comments-ui/package.json
  • ghost/core/core/shared/config/defaults.json
  • ghost/core/core/shared/labs.js
🚧 Files skipped from review as they are similar to previous changes (3)
  • apps/comments-ui/package.json
  • ghost/core/core/shared/config/defaults.json
  • ghost/core/core/shared/labs.js

Walkthrough

Comment threading and comment pinning are always enabled. Labs flag checks and related prop branches were removed. Reply rendering, forms, focused-thread navigation, locators, pagination, permalinks, and tests were updated. Obsolete comment translations were removed. Comments UI version metadata was updated.

Possibly related PRs

Suggested labels: affects:i18n

Suggested reviewers: 9larsons

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies removal of the two labs flags, which is the primary change in the pull request.
Description check ✅ Passed The description accurately explains removal of both flags, the resulting code changes, tests, version bump, and deployment ordering.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch remove-comments-threads-flag

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌐 Automated translation review

Verdict: ⏭️ Skipped — PR is too large for automated review

Reviewed 0 translations across 61 files.

This PR touches 61 translation files, which is beyond the automated reviewer's per-PR limit (max 15 files / 500 lines). A maintainer should review the translations manually.


Advisory review by i18n-review-bot. Non-blocking — a maintainer still owns the merge decision, and the bot cannot approve PRs on its own. Translator expertise wins where there is doubt.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 85672d36bd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ghost/core/core/shared/labs.js Outdated
With threaded comments the only rendering mode, the prop no longer
distinguishes threaded from non-threaded layouts — it distinguishes inline
reply forms from the main top-of-thread form, so the name should say that.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌐 Automated translation review

Verdict: ⏭️ Skipped — PR is too large for automated review

Reviewed 0 translations across 61 files.

This PR touches 61 translation files, which is beyond the automated reviewer's per-PR limit (max 15 files / 500 lines). A maintainer should review the translations manually.


Advisory review by i18n-review-bot. Non-blocking — a maintainer still owns the merge decision, and the bot cannot approve PRs on its own. Translator expertise wins where there is doubt.

Removes the permanently enabled `commentsPinning` labs flag now that
comment pinning is generally available. Pinned-first ordering and the pin
moderation actions are unconditional, and the comments service no longer
depends on labs at all since this was its only flag check.
@kevinansfield kevinansfield changed the title Removed the commentsThreads labs flag Removed the commentsThreads and commentsPinning labs flags Aug 11, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌐 Automated translation review

Verdict: ⏭️ Skipped — PR is too large for automated review

Reviewed 0 translations across 61 files.

This PR touches 61 translation files, which is beyond the automated reviewer's per-PR limit (max 15 files / 500 lines). A maintainer should review the translations manually.


Advisory review by i18n-review-bot. Non-blocking — a maintainer still owns the merge decision, and the bot cannot approve PRs on its own. Translator expertise wins where there is doubt.

Matches the 'main' | 'reply' variant idiom already used by the comment
components, instead of a boolean.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌐 Automated translation review

Verdict: ⏭️ Skipped — PR is too large for automated review

Reviewed 0 translations across 61 files.

This PR touches 61 translation files, which is beyond the automated reviewer's per-PR limit (max 15 files / 500 lines). A maintainer should review the translations manually.


Advisory review by i18n-review-bot. Non-blocking — a maintainer still owns the merge decision, and the bot cannot approve PRs on its own. Translator expertise wins where there is doubt.

@kevinansfield kevinansfield changed the title Removed the commentsThreads and commentsPinning labs flags Removed commentsThreads & commentsPinning labs flags Aug 11, 2026
…eads-flag

# Conflicts:
#	ghost/core/core/shared/labs.js
…inor

Removing the commentsThreads GA flag from the backend would regress any
already-deployed comments-ui 1.5.x bundle, which still reads
labs.commentsThreads from the settings endpoint and falls back to the flat
layout when it is absent. Publishing the flag-free comments-ui as 1.6.0
and pointing Ghost's default asset config at ~1.6 keeps old backends
paired with old bundles and new backends with new bundles, so neither side
ever sees the mismatched combination.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌐 Automated translation review

Verdict: ⏭️ Skipped — PR is too large for automated review

Reviewed 0 translations across 61 files.

This PR touches 61 translation files, which is beyond the automated reviewer's per-PR limit (max 15 files / 500 lines). A maintainer should review the translations manually.


Advisory review by i18n-review-bot. Non-blocking — a maintainer still owns the merge decision, and the bot cannot approve PRs on its own. Translator expertise wins where there is doubt.

@nx-cloud

nx-cloud Bot commented Aug 11, 2026

Copy link
Copy Markdown

🤖 Nx Cloud AI Fix

Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci


View your CI Pipeline Execution ↗ for commit 942148d

Command Status Duration Result
nx run ghost:test:ci:integration ✅ Succeeded 3m 1s View ↗
nx run @tryghost/admin:test:acceptance ✅ Succeeded 6m 23s View ↗
nx run ghost:test:integration ✅ Succeeded 2m 2s View ↗
nx run-many -t test:unit -p @tryghost/admin,@tr... ✅ Succeeded 3m 50s View ↗
nx run ghost:test:legacy ✅ Succeeded 3m View ↗
nx run ghost:test:e2e ✅ Succeeded 1m 54s View ↗
nx run ghost-monorepo:lint:boundaries ✅ Succeeded 23s View ↗
nx run-many -t lint -p @tryghost/admin,@tryghos... ✅ Succeeded 1m 51s View ↗
Additional runs (4) ✅ Succeeded ... View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-08-11 16:03:55 UTC

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.48%. Comparing base (d53aceb) to head (942148d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #29885      +/-   ##
==========================================
- Coverage   75.49%   75.48%   -0.01%     
==========================================
  Files        1606     1606              
  Lines      140794   140778      -16     
  Branches    17464    17457       -7     
==========================================
- Hits       106291   106267      -24     
- Misses      33426    33463      +37     
+ Partials     1077     1048      -29     
Flag Coverage Δ
e2e-tests 77.63% <100.00%> (-0.01%) ⬇️

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

☔ View full report in Codecov by Harness.
📢 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.

@kevinansfield
kevinansfield merged commit b5293ba into main Aug 11, 2026
55 checks passed
@kevinansfield
kevinansfield deleted the remove-comments-threads-flag branch August 11, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant