[Customer Portal][Web] feat: cases export and WSO2 case ID in partner global search - #982
Conversation
…ner search dropdown - Add casesExport.ts utility with fetchAllCasesForExport (paginated via POST /search), downloadCaseListCsv, and downloadCaseListPdf - Add Export button to cases section in PartnerGlobalSearch (CSV + PDF, respects active search query filter) - Add Export button to PartnerCasesPage header (same pattern, respects ?q= search query) - Update search dropdown case items to show WSO2 case ID (formatCasesTableCaseIdentifier) as a second caption line below the title, matching the format used in the cases table - Also pass debouncedSearchQuery to fetchAllProjectsForExport so project export respects the active filter Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 50 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds CSV/PDF export capability for cases in the Project Hub. A new ChangesCases Export Feature
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 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 |
… search dropdown Replace the plain-text case type caption with a coloured chip (same alpha-bg/border pattern as the cases table) placed inline beside the WSO2 case ID, so the two fields are visually distinct in the dropdown. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/customer-portal/webapp/src/features/project-hub/utils/casesExport.ts`:
- Around line 107-110: The export search query handling in
fetchAllCasesForExport is not aligned with the visible search flow, since it
trims searchQuery while PartnerCasesPage and PartnerGlobalSearch pass the raw
debouncedSearchQuery into useGetGlobalSearch. Update the shared search
normalization so both the export path and the visible results path use the exact
same query value, or normalize once before both call sites; use
fetchAllCasesForExport, PartnerCasesPage, and PartnerGlobalSearch as the key
symbols to locate the related logic.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 80b5db35-53e1-403a-95ad-bf211da92e76
📒 Files selected for processing (3)
apps/customer-portal/webapp/src/features/project-hub/components/PartnerGlobalSearch.tsxapps/customer-portal/webapp/src/features/project-hub/pages/PartnerCasesPage.tsxapps/customer-portal/webapp/src/features/project-hub/utils/casesExport.ts
…y functions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The two pre-merge warnings have been addressed in the latest commits:
Comment added by Claude on behalf of @Rashmika998. |
Purpose
Extends the partner global search with cases export (CSV/PDF) and improves the live search dropdown by surfacing the WSO2 case ID alongside a coloured case type chip for each case result.
Goals
Approach
casesExport.tsutility mirrors the existingprojectsExport.tspattern: paginatedfetchAllCasesForExportviaPOST /searchwithtypes: ["cases"], plusdownloadCaseListCsv/downloadCaseListPdfPartnerGlobalSearchand to thePartnerCasesPageheader; both pass the active debounced search query to the fetch so exported data matches what the user seesformatCasesTableCaseIdentifier(the WSO2 case ID) as a secondary caption and the case type as a small coloured chip inlineRelease note
Partner users can now export their cases list (CSV/PDF) from the global search page and the cases view-more page. The live search dropdown now shows the WSO2 case reference ID and a coloured case type chip for each case result.
Documentation
No public-facing documentation changes required.
Security checks
authFetchclient; no credentials or tokens are included in exported filesPOST /searchAPITest plan
/partner/cases— Export button appears in the page header, respects?q=filterID: CS-xxxx | INT-xxxxwith a coloured case type chip inline🤖 Generated with Claude Code