Repository navigation
Member subdomains: sidebar link, footer link, and primary-domain-only display - #469
Conversation
…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.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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.
There was a problem hiding this comment.
💡 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".
| end, | ||
| ) | ||
| stub_const( | ||
| "DiscourseAi::Completions::Llm", | ||
| Class.new do | ||
| def self.proxy(*) |
There was a problem hiding this comment.
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 👍 / 👎.
| withPluginApi((api) => { | ||
| api.addCommunitySectionLink( |
There was a problem hiding this comment.
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 👍 / 👎.
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.