Skip to content

hotfix(condo): DOMA-13023 reduce space in hint#7316

Merged
sitozzz merged 2 commits intomainfrom
hotfix/condo/DOMA-13023/reduce-space-in-hint
Mar 5, 2026
Merged

hotfix(condo): DOMA-13023 reduce space in hint#7316
sitozzz merged 2 commits intomainfrom
hotfix/condo/DOMA-13023/reduce-space-in-hint

Conversation

@tolmachev21
Copy link
Contributor

@tolmachev21 tolmachev21 commented Mar 5, 2026

Summary by CodeRabbit

  • Style

    • Adjusted height and sizing constraints for ticket property hint cards and their content for more consistent display
    • Reduced vertical spacing in rich content blocks for tighter layouts
  • Improvements

    • Ensures ticket property hints refresh/invalidate cached data after related form submissions for up-to-date information
  • Chores

    • Updated repository submodule state

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 5, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4de16fa4-bd2a-47b6-8bd3-4213b4aeb8f3

📥 Commits

Reviewing files that changed from the base of the PR and between e921087 and debb93d.

📒 Files selected for processing (3)
  • apps/callcenter
  • apps/condo/domains/ticket/components/BaseTicketForm/index.module.css
  • apps/condo/domains/ticket/hooks/useTicketPropertyHintTableColumns.module.css
🚧 Files skipped from review as they are similar to previous changes (3)
  • apps/condo/domains/ticket/components/BaseTicketForm/index.module.css
  • apps/callcenter
  • apps/condo/domains/ticket/hooks/useTicketPropertyHintTableColumns.module.css

📝 Walkthrough

Walkthrough

Refactors inline hint styles to CSS modules across ticket components, removes per-component style props, adds Apollo Client cache eviction on TicketPropertyHint form submission, updates a callcenter submodule pointer, and reduces paragraph spacing in rich-content styling.

Changes

Cohort / File(s) Summary
Submodule Update
apps/callcenter
Submodule updated to a new commit state; no behavioral changes reported.
CSS Module Migration — Ticket Hint UI
apps/condo/domains/ticket/components/BaseTicketForm/index.module.css, apps/condo/domains/ticket/components/BaseTicketForm/index.tsx, apps/condo/domains/ticket/components/ClientCard/TabContent.module.css, apps/condo/domains/ticket/hooks/useTicketPropertyHintTableColumns.module.css, apps/condo/domains/ticket/hooks/useTicketPropertyHintTableColumns.tsx, apps/condo/pages/ticket/[id]/index.module.css, apps/condo/pages/ticket/[id]/index.tsx
Replaced inline styles with CSS module classes (.ticket-property-hint-card, .ticket-property-hint-content); updated components to pass className instead of style props; adjusted max-height/width constraints.
Component Prop Simplification
apps/condo/domains/ticket/components/TicketPropertyHint/TicketPropertyHintCard.tsx, apps/condo/domains/ticket/components/TicketPropertyHint/TicketPropertyHintContent.tsx
Removed hintContentStyle / style props, eliminated lodash/get usage in favor of optional chaining, simplified JSX and memo deps. Review prop signature changes.
Apollo Cache Management — Hint Form
apps/condo/domains/ticket/components/TicketPropertyHint/BaseTicketPropertyHintForm.tsx
Added useApolloClient and explicit cache.evictions (multiple root queries and meta fields) plus cache.gc on form submit to invalidate TicketPropertyHint-related queries.
Rich Content Spacing
packages/ui/src/components/style/mixins/rich-content.less
Reduced paragraph bottom margin from @condo-global-spacing-20 to @condo-global-spacing-8.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant Form as BaseTicketPropertyHintForm
  participant Apollo as ApolloClient.cache
  participant Queries as QueryLayer

  User->>Form: submit()
  Form->>Apollo: evict(id: 'ROOT_QUERY', fieldNames: [...TicketPropertyHint, meta...])
  Apollo->>Apollo: garbageCollect()
  Apollo->>Queries: mark queries stale / trigger refetch on next access
  Queries->>User: provide updated data (on refetch)
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐇 I nibbled at inline styles tonight,

swapped them for modules, tidy and light.
With Apollo I cleared the cache with a hop,
props fell away — no more inline slop.
Code blooms anew, a rabbit’s small delight.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 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: reducing space in a hint component, with a specific ticket reference (DOMA-13023) and appropriate hotfix prefix.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch hotfix/condo/DOMA-13023/reduce-space-in-hint

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 Stylelint (17.3.0)
apps/condo/domains/ticket/components/BaseTicketForm/index.module.css

ConfigurationError: Could not find "stylelint-config-rational-order". Do you need to install the package or use the "configBasedir" option?
at getModulePath (file:///usr/local/lib/node_modules/stylelint/lib/utils/getModulePath.mjs:29:9)
at loadExtendedConfig (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:241:21)
at extendConfig (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:208:25)
at async augmentConfigBasic (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:73:20)
at async augmentConfigFull (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:126:24)
at async getConfigForFile (file:///usr/local/lib/node_modules/stylelint/lib/getConfigForFile.mjs:102:26)
at async resolveOptionValue (file:///usr/local/lib/node_modules/stylelint/lib/utils/resolveOptionValue.mjs:27:24)
at async standalone (file:///usr/local/lib/node_modules/stylelint/lib/standalone.mjs:202:19)

apps/condo/domains/ticket/hooks/useTicketPropertyHintTableColumns.module.css

ConfigurationError: Could not find "stylelint-config-rational-order". Do you need to install the package or use the "configBasedir" option?
at getModulePath (file:///usr/local/lib/node_modules/stylelint/lib/utils/getModulePath.mjs:29:9)
at loadExtendedConfig (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:241:21)
at extendConfig (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:208:25)
at async augmentConfigBasic (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:73:20)
at async augmentConfigFull (file:///usr/local/lib/node_modules/stylelint/lib/augmentConfig.mjs:126:24)
at async getConfigForFile (file:///usr/local/lib/node_modules/stylelint/lib/getConfigForFile.mjs:102:26)
at async resolveOptionValue (file:///usr/local/lib/node_modules/stylelint/lib/utils/resolveOptionValue.mjs:27:24)
at async standalone (file:///usr/local/lib/node_modules/stylelint/lib/standalone.mjs:202:19)


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.

Copy link
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: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In
`@apps/condo/domains/ticket/hooks/useTicketPropertyHintTableColumns.module.css`:
- Around line 1-8: The .ticket-property-hint-content CSS rule contains a
duplicate property "white-space: inherit"; remove the redundant occurrence so
the block only declares white-space once (keep a single "white-space: inherit"
in the .ticket-property-hint-content rule) to satisfy stylelint
duplicate-property checks and maintain the same layout behavior.

In `@packages/ui/src/components/style/mixins/rich-content.less`:
- Around line 24-26: Revert the global paragraph spacing change inside the
.condo-rich-content() mixin (so Markdown/style.less and Input/style.less keep
their original spacing) and instead apply the tighter margin only within the
ticket-specific selector introduced in this PR (e.g., add a rule like
.ticket-hint .condo-rich-content() { p { margin: 0 0 `@condo-global-spacing-8`; }
} or the appropriate ticket-hint class used in your ticket CSS module); update
the mixin usage so .condo-rich-content() remains generic and the reduced spacing
is confined to the ticket-hint CSS module/class.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4f02327d-e1e9-4b86-aa10-8cfe2781b595

📥 Commits

Reviewing files that changed from the base of the PR and between 3f10778 and e921087.

📒 Files selected for processing (12)
  • apps/callcenter
  • apps/condo/domains/ticket/components/BaseTicketForm/index.module.css
  • apps/condo/domains/ticket/components/BaseTicketForm/index.tsx
  • apps/condo/domains/ticket/components/ClientCard/TabContent.module.css
  • apps/condo/domains/ticket/components/TicketPropertyHint/BaseTicketPropertyHintForm.tsx
  • apps/condo/domains/ticket/components/TicketPropertyHint/TicketPropertyHintCard.tsx
  • apps/condo/domains/ticket/components/TicketPropertyHint/TicketPropertyHintContent.tsx
  • apps/condo/domains/ticket/hooks/useTicketPropertyHintTableColumns.module.css
  • apps/condo/domains/ticket/hooks/useTicketPropertyHintTableColumns.tsx
  • apps/condo/pages/ticket/[id]/index.module.css
  • apps/condo/pages/ticket/[id]/index.tsx
  • packages/ui/src/components/style/mixins/rich-content.less

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2026

@sitozzz sitozzz merged commit d9318d9 into main Mar 5, 2026
159 of 167 checks passed
@sitozzz sitozzz deleted the hotfix/condo/DOMA-13023/reduce-space-in-hint branch March 5, 2026 16:36
SavelevMatthew pushed a commit that referenced this pull request Mar 5, 2026
* hotfix(condo): DOMA-12023 reduce space in hint

* hotfix(condo): DOMA-13023 update subproject commit and adjust CSS styles for ticket property hints

(cherry picked from commit d9318d9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants