Repository navigation
[Customer Portal][FE][Web] Implement Case Details Content Orchestrator and Modular Tabbed UI - #148
Conversation
Introduce CaseDetailsContent.tsx: a new React component for the customer-portal that renders the case header, action row, tabs and tab panels in a template-aligned layout. Handles loading/error states (shows skeleton), focus mode toggle, active tab state, and computes status/severity visuals (chip styling, icon) using theme helpers. Fetches attachment count via useGetCaseAttachments and derives engineer initials for display. Composes existing CaseDetails* subcomponents and ensures correct scroll/overflow behavior for activity vs other tabs.
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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. ✨ 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 |
Update CaseDetailsContent.tsx to import CaseDetailsSkeleton from the new module alias '@case-details-details/CaseDetailsSkeleton' instead of '@case-details/CaseDetailsSkeleton'. This ensures the component resolves from its updated location/alias.
25c055f
into
wso2-open-operations:customer-portal-milestone-1
There was a problem hiding this comment.
Pull request overview
Adds a new CaseDetailsContent container component that composes the Case Details page layout (header, action row, tabs, and tab panels) and handles loading vs. content rendering.
Changes:
- Introduces
CaseDetailsContentcomponent to render case details header/action row and tabbed content. - Adds focus mode support to hide header/action row while keeping the tab bar visible.
- Fetches attachment count to display in the “Attachments” tab label.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
###. Description
This pull request introduces a new
CaseDetailsContentcomponent to the customer portal webapp, which consolidates the display logic for case details, including loading and error states, header, tabs, and content panels. The component improves code organization and maintainability by encapsulating the case details UI in a single, well-structured React function component.Key additions in this pull request:
New Component Implementation:
CaseDetailsContentReact component inCaseDetailsContent.tsxto handle the rendering of case details, including header, action row, tabs, and content panels, as well as loading and error states.CaseDetailsHeader,CaseDetailsActionRow,CaseDetailsTabs, andCaseDetailsTabPanelsfor modular UI composition.CaseDetailsSkeletonfor improved user experience during data fetches.