Repository navigation
feat(cas): add a compactMode prop for narrow host panels [JAR-10410] - #219
Open
andrewwan-uipath wants to merge 2 commits into
Open
andrewwan-uipath wants to merge 2 commits into
andrewwan-uipath wants to merge 2 commits into
Conversation
Contributor
📊 Coverage Report
|
Passes Apollo's spacing.compactMode through so debug chats (Flow and agent builder) can use the denser layout. Compact mode drops the widget's 16px text overrides so Apollo's compact tokens apply. Works on both renderers, and can be toggled at runtime through Apollo's new setSpacing. Bumps apollo-react to 7.43.0 for setSpacing, with apollo-wind 2.95.3 and apollo-core 5.15.3 to match what it pins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
andrewwan-uipath
force-pushed
the
feat/cas-compact-mode
branch
from
November 24, 2026 00:31
02a6a92 to
975b482
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
Unavailable Apollo 7.43.0 internals and mock-only tests leave compact-mode toggling, font override resets, and normal-density restoration unverified in the real Material and Wind renderers.
No open issues 🎉
What changed in this PR
Adds an opt-in compactMode prop to the conversational agent chat widget for narrow host panels, preserving the existing text sizing by default.
Changes:
- Configures compact spacing at initialization and supports runtime toggling through Apollo’s
setSpacing. - Adds a Storybook control and tests for default, compact, and runtime-toggle behavior.
- Upgrades Apollo dependencies to support spacing updates, incorporating the dependency upgrade scope of #210.
| File | Description |
|---|---|
| packages/conversational-agent-chat/src/types.ts | Declares and documents compactMode. |
| packages/conversational-agent-chat/src/ConversationalAgentChat.tsx | Applies spacing on initialization and prop changes. |
| packages/conversational-agent-chat/src/ConversationalAgentChat.stories.tsx | Adds a compact-mode control, defaulting to false. |
| packages/conversational-agent-chat/src/__tests__/ConversationalAgentChat.test.tsx | Tests spacing defaults and runtime toggling. |
| packages/conversational-agent-chat/src/__tests__/ConversationalAgentChat.surface.test.tsx | Adds setSpacing to the service mock. |
| packages/conversational-agent-chat/src/__tests__/ConversationalAgentChat.settingsRenderer.test.tsx | Adds setSpacing to the service mock. |
| packages/conversational-agent-chat/package.json | Upgrades Apollo React, Wind, and Core dependencies. |
| package-lock.json | Records updated Apollo and transitive dependencies. |
Review effort: Balanced
# Conflicts: # packages/conversational-agent-chat/src/__tests__/ConversationalAgentChat.test.tsx
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
https://uipath.atlassian.net/browse/JAR-10410
Adds a
compactModeprop that turns on Apollo'sspacing.compactMode. It gives smaller text, tighter message spacing and a shorter input, for the Flow and agent builder debug chats (Slack thread).false, so existing hosts are unchanged.spacing.compactMode, and Wind maps it todata-density="compact".setSpacing(apollo-ui#1658), the same waythemeandrendereralready update.compactModecontrol.Dependencies
Bumps
@uipath/apollo-reactfrom 7.11.4 to 7.43.0 forsetSpacing, along with@uipath/apollo-wind2.95.3 and@uipath/apollo-core5.15.3 to match what it pins. This also covers the apollo upgrade from #210, which only changed dependencies. npm also sortedpeerDependenciesalphabetically; their versions didn't change.Testing
{ compactMode: true }, and a runtime toggle callssetSpacingboth ways.Demos
Screen.Recording.2026-11-23.at.5.14.48.PM.mov
🤖 Generated with Claude Code