Skip to content

Member subdomains: sidebar link, footer link, and primary-domain-only display - #469

Merged
TripleU613 merged 3 commits into
mainfrom
feat/member-subdomains-links-and-primary-display
Dec 4, 2026
Merged

TripleU613 merged 3 commits into
mainfrom
feat/member-subdomains-links-and-primary-display

Conversation

@TripleU613

Copy link
Copy Markdown
Owner

Adds a sidebar link, JTech theme footer link (gated on member_subdomains_enabled), and a generic member_subdomains_only_show_primary_domain site setting so sites can mirror DNS silently across extra domains while only showing the primary domain in the UI and API.

…course CI breakages

Combines all 10 open Dependabot PRs (#456-#464, #467), including the rack 3.2.9 security fix, and resolves the lint and system-test failures blocking them:
- Rebuild themes/jtech/assets/icons-sprite.svg for lucide-static 1.83.0.
- Pass open_timeout/read_timeout to Net::HTTP.start in TelegramApi and rename the background let in jtech_theme_part4_spec.rb for rubocop-discourse 4.1.0.
- Switch SiteSetting.allow_user_locale to SiteSetting.allowed_user_locales = 'all' after Discourse #46653.
- Reorder the new aria-live wrapper around .result-count in jt-search.scss after Discourse #47061.
- Match button heights in .user-card .usercard-controls after Discourse #47261 made core buttons icon-only.
- Wait for .user-menu to settle and retry detached notification clicks in Playwright system specs.
… display option

Add a sidebar link (More -> Subdomains) and JTech theme footer link when member_subdomains_enabled is on, plus a member_subdomains_only_show_primary_domain setting so sites can mirror DNS across multiple domains while only displaying the primary domain in the UI and API.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T18:21:41.158215Z efa6ec5 New commits
🔒 Security Review ✅ Completed 2026-12-04T18:23:01.799702Z efa6ec5 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

When Discourse AI is enabled with an LLM configured, screen non-staff subdomain requests for obvious profanity, scams, or phishing impersonation before creating or updating DNS records. Fails open on LLM errors so legitimate users are never blocked.
@TripleU613
TripleU613 merged commit 22a90f6 into main Dec 4, 2026
9 of 13 checks passed
@TripleU613
TripleU613 deleted the feat/member-subdomains-links-and-primary-display branch December 4, 2026 18:19

@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: efa6ec5a9c

ℹ️ 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 on lines +49 to +54
end,
)
stub_const(
"DiscourseAi::Completions::Llm",
Class.new do
def self.proxy(*)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve the generate method on the stubbed LLM class

In all three examples under with a stubbed LLM, fake_proxy is an instance_double("DiscourseAi::Completions::Llm"), but this replacement class defines only the class method proxy and no instance method generate. RSpec therefore rejects allow(fake_proxy).to receive(:generate) because the doubled class does not implement that method, so the new allow/reject/error examples fail before exercising the reviewer. Define the instance method on the replacement class or retain the real class when stubbing the proxy.

Useful? React with 👍 / 👎.

Comment on lines +48 to +49
withPluginApi((api) => {
api.addCommunitySectionLink(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add specs for the new subdomain navigation links

The new sidebar and footer links introduce user-visible behavior with different enablement, staff-only, and trust-level conditions, but the commit adds no frontend or system specs covering either link; a repository-wide search of spec and test finds subdomain coverage only for backend behavior. Add navigation specs that assert the links' destinations and their visibility with the module disabled, staff-only mode enabled, and eligible versus ineligible users. This is required by the repository's explicit rule that new behavior gets a spec.

AGENTS.md reference: AGENTS.md:L19-L19

Useful? React with 👍 / 👎.

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