Skip to content

fix: restore Issue Tracker Links feature#40449

Open
TasfinMahmud wants to merge 3 commits into
RocketChat:developfrom
TasfinMahmud:fix/issue-tracker-links
Open

fix: restore Issue Tracker Links feature#40449
TasfinMahmud wants to merge 3 commits into
RocketChat:developfrom
TasfinMahmud:fix/issue-tracker-links

Conversation

@TasfinMahmud
Copy link
Copy Markdown

@TasfinMahmud TasfinMahmud commented May 8, 2026

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

Summary by CodeRabbit

  • New Features
    • Issue Tracker Links setting added — admins can configure a link template so numeric channel mentions render as clickable external issue links when enabled.
    • When a valid link template is provided, plain numeric mentions become external links (http/https); invalid or missing templates keep the standard plain mention rendering.

@TasfinMahmud TasfinMahmud requested review from a team as code owners May 8, 2026 04:32
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 8, 2026

🦋 Changeset detected

Latest commit: 95635ca

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dionisio-bot
Copy link
Copy Markdown
Contributor

dionisio-bot Bot commented May 8, 2026

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label
  • This PR is missing the required milestone or project

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 8, 2026

Review Change Stack
No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ae67aaef-f120-4a10-a889-e40dd2164bf5

📥 Commits

Reviewing files that changed from the base of the PR and between 05b7890 and 95635ca.

📒 Files selected for processing (1)
  • packages/gazzodown/src/mentions/ChannelMentionElement.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/gazzodown/src/mentions/ChannelMentionElement.tsx

Walkthrough

This PR restores the Issue Tracker Links feature by adding an IssueLinks_LinkTemplate server setting, exposing it through the client MarkupInteractionContext, and rendering numeric unresolved channel mentions as external links when the template produces an http(s) URL.

Changes

Issue Tracker Links Restoration

Layer / File(s) Summary
Type Contract
packages/gazzodown/src/MarkupInteractionContext.ts
MarkupInteractionContextValue type gains optional issueLinksTemplate?: string field.
Settings Registration
apps/meteor/server/settings/message.ts
New Issue_Links section registers IssueLinks_LinkTemplate as a public string setting with default empty value and i18n descriptions.
Client-side Wiring
apps/meteor/client/components/GazzodownText.tsx
GazzodownText imports useSetting, reads IssueLinks_LinkTemplate, and passes issueLinksTemplate into MarkupInteractionContext.Provider value.
Mention Rendering Logic
packages/gazzodown/src/mentions/ChannelMentionElement.tsx
ChannelMentionElement destructures issueLinksTemplate from context and renders numeric unresolved mentions as external anchor links when template is configured and yields an http(s) URL; otherwise falls back to plain rendering.
Release Notes
.changeset/fix-issue-tracker-links.md
Changeset documents patch-level updates for gazzodown and meteor packages.

Sequence Diagram(s)

sequenceDiagram
  participant GazzodownText
  participant Settings
  participant MarkupInteractionContext
  participant ChannelMentionElement
  GazzodownText->>Settings: useSetting("IssueLinks_LinkTemplate")
  Settings-->>GazzodownText: issueLinksTemplate
  GazzodownText->>MarkupInteractionContext: Provider value {issueLinksTemplate}
  ChannelMentionElement->>MarkupInteractionContext: consume issueLinksTemplate
  ChannelMentionElement->>ChannelMentionElement: if unresolved && numeric && template -> build href -> render <a href>
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested labels

type: bug

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: restoring the Issue Tracker Links feature by re-adding the IssueLinks_LinkTemplate setting and enabling numeric channel mention rendering as external links.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@coderabbitai coderabbitai Bot added the type: feature Pull requests that introduces new feature label May 8, 2026
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: dac51783-479c-488a-ae73-be1b1512c1a6

📥 Commits

Reviewing files that changed from the base of the PR and between 2a927fa and 2f2b65f.

📒 Files selected for processing (5)
  • .changeset/fix-issue-tracker-links.md
  • apps/meteor/client/components/GazzodownText.tsx
  • apps/meteor/server/settings/message.ts
  • packages/gazzodown/src/MarkupInteractionContext.ts
  • packages/gazzodown/src/mentions/ChannelMentionElement.tsx
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: cubic · AI code reviewer
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation

Files:

  • packages/gazzodown/src/MarkupInteractionContext.ts
  • apps/meteor/client/components/GazzodownText.tsx
  • packages/gazzodown/src/mentions/ChannelMentionElement.tsx
  • apps/meteor/server/settings/message.ts
🧠 Learnings (5)
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.

Applied to files:

  • packages/gazzodown/src/MarkupInteractionContext.ts
  • apps/meteor/server/settings/message.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.

Applied to files:

  • packages/gazzodown/src/MarkupInteractionContext.ts
  • apps/meteor/server/settings/message.ts
📚 Learning: 2026-05-06T12:21:44.083Z
Learnt from: juliajforesti
Repo: RocketChat/Rocket.Chat PR: 40256
File: apps/meteor/client/components/CreateDiscussion/CreateDiscussion.tsx:121-149
Timestamp: 2026-05-06T12:21:44.083Z
Learning: Field wrappers in rocket.chat/fuselage-forms (Field, FieldLabel, FieldRow, FieldError, FieldHint) auto-create htmlFor/id associations, aria-describedby, and role="alert" for errors. Do not manually set htmlFor, id, aria-describedby, or role attributes when using these wrappers. This automatic wiring does not apply to plain rocket.chat/fuselage components, which require explicit ID wiring per the accessibility docs. In code reviews, prefer using fuselage-forms wrappers for form fields and verify there is no unnecessary manual ID/aria wiring in files that use these wrappers. If a component uses plain fuselage components, ensure proper id wiring as per docs.

Applied to files:

  • packages/gazzodown/src/MarkupInteractionContext.ts
  • apps/meteor/client/components/GazzodownText.tsx
  • packages/gazzodown/src/mentions/ChannelMentionElement.tsx
  • apps/meteor/server/settings/message.ts
📚 Learning: 2026-03-16T21:50:37.589Z
Learnt from: amitb0ra
Repo: RocketChat/Rocket.Chat PR: 39676
File: .changeset/migrate-users-register-openapi.md:3-3
Timestamp: 2026-03-16T21:50:37.589Z
Learning: For changes related to OpenAPI migrations in Rocket.Chat/OpenAPI, when removing endpoint types and validators from rocket.chat/rest-typings (e.g., UserRegisterParamsPOST, /v1/users.register) document this as a minor changeset (not breaking) per RocketChat/Rocket.Chat-Open-API#150 Rule 7. Note that the endpoint type is re-exposed via a module augmentation .d.ts in the consuming package (e.g., packages/web-ui-registration/src/users-register.d.ts). In reviews, ensure the changeset clearly states: this is a non-breaking change, the major version should not be bumped, and the changeset reflects a minor version bump. Do not treat this as a breaking change during OpenAPI migrations.

Applied to files:

  • .changeset/fix-issue-tracker-links.md
📚 Learning: 2026-03-27T14:52:56.865Z
Learnt from: dougfabris
Repo: RocketChat/Rocket.Chat PR: 39892
File: apps/meteor/client/views/room/contextualBar/Threads/Thread.tsx:150-155
Timestamp: 2026-03-27T14:52:56.865Z
Learning: In Rocket.Chat, there are two different `ModalBackdrop` components with different prop APIs. During review, confirm the import source: (1) `rocket.chat/fuselage` `ModalBackdrop` uses `ModalBackdropProps` based on `BoxProps` (so it supports `onClick` and other Box/DOM props) and does not have an `onDismiss` prop; (2) `rocket.chat/ui-client` `ModalBackdrop` uses a narrower props interface like `{ children?: ReactNode; onDismiss?: () => void }` and handles Escape keypress and outside mouse-up, and it does not forward arbitrary DOM props such as `onClick`. Flag mismatched props (e.g., `onDismiss` passed to the fuselage component or `onClick` passed to the ui-client component) and ensure the usage matches the correct component being imported.

Applied to files:

  • apps/meteor/client/components/GazzodownText.tsx
  • packages/gazzodown/src/mentions/ChannelMentionElement.tsx
🔇 Additional comments (4)
.changeset/fix-issue-tracker-links.md (1)

1-8: Changeset scope/versioning looks good.

Patch bumps and user-facing summary match the feature restoration described in this PR.

apps/meteor/server/settings/message.ts (1)

386-393: Setting registration is clean and consistent.

The new IssueLinks_LinkTemplate section/setting is added with the expected metadata for client-side consumption.

packages/gazzodown/src/MarkupInteractionContext.ts (1)

27-27: Context shape change is correct.

Adding issueLinksTemplate as optional keeps the context backward-compatible while enabling the new behavior.

apps/meteor/client/components/GazzodownText.tsx (1)

60-60: Client wiring for the new setting is complete.

Fetching IssueLinks_LinkTemplate and injecting it into MarkupInteractionContext is implemented cleanly.

Also applies to: 121-139

Comment thread packages/gazzodown/src/mentions/ChannelMentionElement.tsx Outdated
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 5 files

@coderabbitai coderabbitai Bot added type: bug and removed type: feature Pull requests that introduces new feature labels May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant