MM-69160: Fix capitalization and text size in agent mention reminder - #917
Conversation
The ephemeral "To respond to an agent" reminder rendered its loop-in link as lowercase "click here" and forced a 13px font that was smaller than regular post text. Capitalize the link copy and drop the font-size override so the reminder inherits the standard post text size. Co-authored-by: mattermost-code <mattermost-code@users.noreply.github.com>
Co-authored-by: mattermost-code <mattermost-code@users.noreply.github.com>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe agent mention reminder link text is capitalized, hint typography overrides are removed, and a test suite covers display-name fallback, loop-in interaction, confirmation rendering, and the no-username state. ChangesAgent mention reminder
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
🤖 LLM Evaluation ResultsOpenAI
❌ Failed EvaluationsShow 7 failuresOPENAI1. TestReactEval/[openai]_react_cat_message
2. TestConversationMentionHandling/[openai]_conversation_from_attribution_long_thread.json
3. TestConversationMentionHandling/[openai]_conversation_from_attribution_long_thread.json
4. TestConversationMentionHandling/[openai]_conversation_from_attribution_long_thread.json
5. TestConversationMentionHandling/[openai]_conversation_from_attribution_long_thread.json
6. TestConversationMentionHandling/[openai]_conversation_from_attribution_long_thread.json
7. TestDirectMessageConversations/[openai]_bot_dm_tool_introspection
Anthropic
❌ Failed EvaluationsShow 7 failuresANTHROPIC1. TestReactEval/[anthropic]_react_cat_message
2. TestConversationMentionHandling/[anthropic]_conversation_from_attribution_long_thread.json
3. TestConversationMentionHandling/[anthropic]_conversation_from_attribution_long_thread.json
4. TestConversationMentionHandling/[anthropic]_conversation_from_attribution_long_thread.json
5. TestConversationMentionHandling/[anthropic]_conversation_from_attribution_long_thread.json
6. TestConversationMentionHandling/[anthropic]_conversation_from_attribution_long_thread.json
7. TestDirectMessageConversations/[anthropic]_bot_dm_tool_introspection
This comment was automatically generated by the eval CI pipeline. |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Looking! Follow along here: https://cursor.com/agents/bc-bfecf8f1-38d7-45ee-bff8-8efa7e7201ce |
|
Test server destroyed |
|
Looking! ⟪factory:970990f3-c5ed-4f79-8c89-4c45dfdc3412:looking:mattermost_2f_mattermost-plugin-agents:917:4766495185:looking-comment⟫ |
Addresses review feedback: the dedicated capitalized "Click here" test is redundant since the fallback test already asserts the capitalized link label. Drop it to keep the suite focused. Co-authored-by: mattermost-code <mattermost-code@users.noreply.github.com>
|
Thanks for the review! Addressed the feedback:
Other feedback reviewed and no action needed:
⟪factory:970990f3-c5ed-4f79-8c89-4c45dfdc3412:fe09142b-b44d-4eea-b509-cbd4a2c56e4d:summary-comment⟫ |
Summary
The ephemeral "To respond to an agent you must @mention them" reminder (custom post type
custom_agent_mention_reminder, rendered byAgentMentionReminderPost) had two small UI defects reported in MM-69160:font-size: 13px(withline-height: 18px), making it visibly smaller than regular post text.This PR:
agent_mention_reminder_post.tsxand re-extracts the webapp i18n string.font-size/line-heightoverride on theHintstyled-component so the reminder inherits the standard post text size.Verified end-to-end in a real Mattermost 11.9 container with the plugin deployed (Testcontainers). Before the fix the reminder rendered at
13px; after the fix it renders at14px, matching the sibling regular post (14px), and the link is capitalized.QA test steps
Ticket Link
Jira https://mattermost.atlassian.net/browse/MM-69160
Screenshots
Release Note
Summary by CodeRabbit
Improvements
Quality