Skip to content

feat(ui): mention-count fix, server-switch clear, topic links,#185

Merged
ValwareIRC merged 1 commit into
mainfrom
feat/ui-fixes-and-cmdslist
May 7, 2026
Merged

feat(ui): mention-count fix, server-switch clear, topic links,#185
ValwareIRC merged 1 commit into
mainfrom
feat/ui-fixes-and-cmdslist

Conversation

@ValwareIRC
Copy link
Copy Markdown
Contributor

multiline-concat space preservation, slash-command popover

Five UI/protocol fixes plus the obsidianirc/cmdslist client side:

  • Highlight badge counts mentions, not messages. Channel and PrivateChat gain an optional mentionCount field that ticks per actual highlight; the badge in ChannelList now renders this instead of unreadCount (which still drives the dot indicator for non-mention unread). mentionCount is reset alongside unreadCount on every existing read site.

  • Switching back to a server now clears the (already-active) target's notification. Without this, opening a server where the selected channel/PM had been highlighted required clicking off and back to clear the badge. selectServer zeroes unread+ mention+isMentioned on the channel/PM that restores into focus.

  • URLs in the topic modal are clickable in read-only mode. Replaces the disabled <textarea> (which can't render markup) with a

    + linkified renderer; links carry the "external-link-security" / "irc-link" classes so EnhancedLinkWrapper routes them through the existing ExternalLinkWarningModal flow.

  • Outgoing messages no longer drop spaces at split boundaries when sent as draft/multiline-concat. splitLongMessage gains a preserveBoundarySpace option that re-attaches the boundary space to the trailing edge of every non-final chunk, so the receiver's concat reconstructs "AAA BBB CCC" instead of "AAA BBBCCC". useMessageSending opts in for the multiline paths.

  • Slash-command suggestion popover above the chat input. Appears when the input begins with "/" and the command name is still being typed; cycles with arrows, accepts on Tab/Enter, closes on Esc. Drives off the new server.cmdsAvailable set populated by the obsidianirc/cmdslist cap (added to ourCaps). IRC plumbing: handleCmdslist parses "+cmd"/"-cmd" tokens (multiple per line) into a typed CMDSLIST event; the auth store handler maintains the per-server set as a sorted, lowercase Array.

  • slashInputValue is updated only when the input looks like a slash-command (leading "/" and no space yet), so non-slash typing doesn't trigger ChatArea re-renders -- consistent with the existing autocomplete-state design.

  multiline-concat space preservation, slash-command popover

Five UI/protocol fixes plus the obsidianirc/cmdslist client side:

  * Highlight badge counts mentions, not messages.  Channel and
    PrivateChat gain an optional `mentionCount` field that ticks per
    actual highlight; the badge in ChannelList now renders this
    instead of `unreadCount` (which still drives the dot indicator
    for non-mention unread).  `mentionCount` is reset alongside
    `unreadCount` on every existing read site.

  * Switching back to a server now clears the (already-active)
    target's notification.  Without this, opening a server where the
    selected channel/PM had been highlighted required clicking off
    and back to clear the badge.  selectServer zeroes unread+
    mention+isMentioned on the channel/PM that restores into focus.

  * URLs in the topic modal are clickable in read-only mode.
    Replaces the disabled <textarea> (which can't render markup)
    with a <section> + linkified renderer; links carry the
    "external-link-security" / "irc-link" classes so
    EnhancedLinkWrapper routes them through the existing
    ExternalLinkWarningModal flow.

  * Outgoing messages no longer drop spaces at split boundaries
    when sent as draft/multiline-concat.  splitLongMessage gains a
    `preserveBoundarySpace` option that re-attaches the boundary
    space to the trailing edge of every non-final chunk, so the
    receiver's concat reconstructs "AAA BBB CCC" instead of
    "AAA BBBCCC".  useMessageSending opts in for the multiline
    paths.

  * Slash-command suggestion popover above the chat input.  Appears
    when the input begins with "/" and the command name is still
    being typed; cycles with arrows, accepts on Tab/Enter, closes
    on Esc.  Drives off the new server.cmdsAvailable set populated
    by the obsidianirc/cmdslist cap (added to ourCaps).  IRC
    plumbing: handleCmdslist parses "+cmd"/"-cmd" tokens (multiple
    per line) into a typed CMDSLIST event; the auth store handler
    maintains the per-server set as a sorted, lowercase Array.

  * slashInputValue is updated only when the input *looks like* a
    slash-command (leading "/" and no space yet), so non-slash
    typing doesn't trigger ChatArea re-renders -- consistent with
    the existing autocomplete-state design.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 3, 2026

Warning

Rate limit exceeded

@ValwareIRC has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 55 minutes and 36 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e6575978-6ab8-45c8-bf6e-803e2f56e8ba

📥 Commits

Reviewing files that changed from the base of the PR and between e7d7899 and 2357022.

📒 Files selected for processing (13)
  • src/components/layout/ChannelList.tsx
  • src/components/layout/ChatArea.tsx
  • src/components/ui/SlashCommandPopover.tsx
  • src/components/ui/TopicModal.tsx
  • src/hooks/useMessageSending.ts
  • src/lib/irc/IRCClient.ts
  • src/lib/irc/handlers/cmdslist.ts
  • src/lib/irc/handlers/index.ts
  • src/lib/messageProtocol.ts
  • src/store/handlers/auth.ts
  • src/store/handlers/messages.ts
  • src/store/index.ts
  • src/types/index.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/ui-fixes-and-cmdslist

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
Review rate limit: 0/1 reviews remaining, refill in 55 minutes and 36 seconds.

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

Pages Preview
Preview URL: https://feat-ui-fixes-and-cmdslist.obsidianirc.pages.dev

Automated deployment preview for the PR in the Cloudflare Pages.

@matheusfillipe
Copy link
Copy Markdown
Contributor

Slash-command suggestion popover above the chat input. Appears when the input begins with "/" and the command name is still being typed; cycles with arrows, accepts on Tab/Enter, closes on Esc. Drives off the new server.cmdsAvailable set populated by the obsidianirc/cmdslist cap (added to ourCaps). IRC plumbing: handleCmdslist parses "+cmd"/"-cmd" tokens (multiple per line) into a typed CMDSLIST event; the auth store handler maintains the per-server set as a sorted, lowercase Array.

I dont see it at all.

Copy link
Copy Markdown
Contributor

@matheusfillipe matheusfillipe left a comment

Choose a reason for hiding this comment

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

Cannot test slash, dont see anything

@ValwareIRC ValwareIRC merged commit 5afb18e into main May 7, 2026
4 checks passed
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.

2 participants