[CSM Portal Microapp] Fix build break, text-overflow, and simplify Assigned to me - #1136
Merged
Rashmika998 merged 3 commits intoJul 13, 2026
Conversation
…resolution Two undefined-reference bugs landed on dev-app-csm-portal from an incomplete resolution of the wso2-open-operations#1134 merge conflict: - MorePage.tsx used the Settings icon but the merge dropped it from the import list. - AssignedToMeSection.tsx destructured isPending (renamed from isLoading by a partial suggestion commit) but the JSX below still referenced the old isLoading name. Both are one-line fixes; verified with eslint, tsc --noEmit, and vite build.
Contributor
📝 WalkthroughWalkthroughThe CSM portal now applies flex sizing constraints to several text rows, uses React Query’s ChangesCSM portal updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
2003dinijay
added a commit
to 2003dinijay/cs-tools
that referenced
this pull request
Jul 13, 2026
…otfix so this branch builds Duplicates the two-line fix from PR wso2-open-operations#1136 (Settings import, isLoading -> isPending) so feature/microapp-navigation isn't built on top of dev-app-csm-portal's current broken state. Will collapse away as an empty/no-op on the next rebase once wso2-open-operations#1136 merges upstream.
…arrow screens Three spots have a noWrap Typography sitting alongside a sibling in a row flex container with no minWidth: 0 guard, so the flex item's default min-width:auto stops it from shrinking below its content's natural width — on a narrow screen or with long content it overflows the card instead of ellipsizing: - AnnouncementCard.tsx: case number vs. state chip - CaseCard.tsx: assigned-engineer name vs. "Updated Xh ago" (also pins the timestamp side with flexShrink: 0 so the name is the one that truncates) - CaseDetailPage.tsx: comment author email vs. date (same fix) Matches the minWidth: 0 pattern already used correctly elsewhere in this app (AttachmentsField.tsx, CompositionDonut.tsx, TimeSheetCard.tsx).
…resh Mirrors the webapp's MyAssignedCases widget header more closely: - Removes the "View all" link (Support already covers the full list). - Adds a RefreshButton (icon + "Last refreshed X ago"), ported from the webapp's RefreshButton.tsx, reusing the app's existing fromNow helper instead of porting a second relative-time formatter. - The empty state is now a plain line of text in a bordered card instead of the shared EmptyState's icon+padding treatment, which read as too prominent for the first thing on the home page.
Rashmika998
approved these changes
Jul 13, 2026
Rashmika998
merged commit Jul 13, 2026
08fcaf8
into
wso2-open-operations:dev-app-csm-portal
1 check passed
This was referenced Jul 21, 2026
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
Three fixes bundled together:
1. Build break from an incomplete #1134 merge conflict resolution.
dev-app-csm-portal's build was broken:MorePage.tsxuses theSettingsicon inMORE_ITEMS, but the conflict resolution dropped it from the import list.AssignedToMeSection.tsxdestructuredisPending(renamed fromisLoadingby a partial CodeRabbit-suggested commit), but the JSX below still referenced the oldisLoadingname.2. Text overflow on narrow screens in three card layouts. Each has a
noWrapTypographysitting alongside a sibling in a row flex container with nominWidth: 0guard — a flex item's defaultmin-width: autostops it from shrinking below its content's natural width, so on a narrow screen or with long content it overflows the card instead of ellipsizing:AnnouncementCard.tsx: case number vs. state chipCaseCard.tsx: assigned-engineer name vs. "Updated Xh ago" (also pins the timestamp side withflexShrink: 0so the name is the one that truncates)CaseDetailPage.tsx: comment author email vs. date (same fix)Matches the
minWidth: 0pattern already used correctly elsewhere in the app (AttachmentsField.tsx,CompositionDonut.tsx,TimeSheetCard.tsx).3. Simplified the Home page's "Assigned to me" widget, mirroring the webapp's
MyAssignedCasesheader more closely:RefreshButton(icon + "Last refreshed X ago"), ported from the webapp'sRefreshButton.tsx.EmptyState's icon+padding treatment, which read as too prominent for the first thing on the home page.Test plan
eslintcleantsc --noEmitclean (worked around the pre-existing, unrelatedignoreDeprecationsTS-version mismatch to get a real type-check signal)vite buildclean