Skip to content

[CSM Portal][FE] feat(csm-timecards): page and case-detail integration (6/6) - #998

Merged
rksk merged 1 commit into
wso2-open-operations:v2from
Hesara2003:feature/timecards-p6-integration
Jul 2, 2026
Merged

rksk merged 1 commit into
wso2-open-operations:v2from
Hesara2003:feature/timecards-p6-integration

Conversation

@Hesara2003

Copy link
Copy Markdown
Contributor

Purpose

Wires the time-cards feature end-to-end: replaces the coming-soon placeholder with the real page, enables the Log time action in the case action bar, and integrates the time-cards panel into the case detail. Requires PR 5/6 (#997) to be merged first. Merge this last.

Goals

  • CsmTimeCardsPage.tsx — full time-cards workspace (My time sheets, Approvals tabs with filters, delegation, notices)
  • CaseTimeCardsPanel.tsx — per-case time-card list with inline log/edit/review actions
  • App.tsx — replace CsmComingSoonPage with CsmTimeCardsPage on the time-cards route
  • CaseActionBar.tsx — enable the "Log time…" action (remove disabled: true)
  • CsmCaseDetailPage.tsx — wire CaseTimeCardsPanel + LogTimeCardDialog into the Time tracking tab

Approach

Lazy-loaded page via React.lazy. Closed cases are read-only (gate checked before opening LogTimeCardDialog). All state goes through the React Query hooks from PR 3/6.

User stories

ISSU-009 — Time Management (Epic: Issue Management, Priority: Must have)

As a CS Engineer, I want to log time spent on an issue so that effort is tracked for operational reporting and billing purposes.

Acceptance criteria addressed here:

  • Log time entries against a case ✓
  • Multiple entries per case ✓
  • Team Leads view aggregated time ✓ (Approvals tab)
  • Full approval flow visible end-to-end ✓

Release note

Time-cards feature is now live in the CSM Portal. Engineers can log time against cases; team leads can approve, reject and recall submissions from the Time cards workspace.

Documentation

N/A

Training

N/A

Certification

N/A

Marketing

N/A

Automation tests

  • Unit tests: all 122 tests pass across the full branch
  • Integration tests: manual — log a card from a case, submit, approve as a team lead

Security checks

Samples

N/A

Related PRs

6-PR series for ISSU-009 — merge into v2 in order:

  1. [CSM Portal][FE] feat(csm-timecards): foundation types, constants and config keys (1/6) #992 — Foundation
  2. [CSM Portal][FE] feat(csm-timecards): core utility functions and tests (2/6) #994 — Core utility functions and tests
  3. [CSM Portal][FE] feat(csm-timecards): API data layer — store, hooks and tests (3/6) #995 — API data layer
  4. [CSM Portal][FE] feat(csm-timecards): notification util, role hooks and remaining tests (4/6) #996 — Notification util, role hooks and remaining tests
  5. [CSM Portal][FE] feat(csm-timecards): UI components (5/6) #997 — UI components
  6. This PR — Page and case-detail integration ← merge last

Migrations

N/A

Test environment

macOS 14, Node 20, Chrome 126

Learning

N/A

@coderabbitai

coderabbitai Bot commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@rksk, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 42 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5f79a71f-0bc6-4b31-aa24-a6e85d82a037

📥 Commits

Reviewing files that changed from the base of the PR and between 7aa785e and 128d2b3.

📒 Files selected for processing (5)
  • apps/csm-portal/webapp/src/App.tsx
  • apps/csm-portal/webapp/src/features/csm-cases/components/CaseActionBar.tsx
  • apps/csm-portal/webapp/src/features/csm-cases/pages/CsmCaseDetailPage.tsx
  • apps/csm-portal/webapp/src/features/csm-timecards/components/CaseTimeCardsPanel.tsx
  • apps/csm-portal/webapp/src/features/csm-timecards/pages/CsmTimeCardsPage.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@Hesara2003 Hesara2003 self-assigned this Jul 1, 2026
@Hesara2003 Hesara2003 added Type/New Feature Represents a request or task for a new feature Area/Frontend App/Customer Portal Platform/Web Priority/High High-priority tasks to be completed soon and removed Priority/High High-priority tasks to be completed soon labels Jul 1, 2026
@Hesara2003
Hesara2003 force-pushed the feature/timecards-p6-integration branch 5 times, most recently from 76c64ac to 605eeca Compare July 1, 2026 06:29
@Hesara2003
Hesara2003 force-pushed the feature/timecards-p6-integration branch 2 times, most recently from 991f2d5 to 0344c6c Compare July 2, 2026 08:58
@Hesara2003
Hesara2003 requested a review from rksk July 2, 2026 17:07
@rksk
rksk force-pushed the feature/timecards-p6-integration branch from 0344c6c to 27b9f0c Compare July 2, 2026 17:55
Replaces the coming-soon placeholder with CsmTimeCardsPage, enables
the Log time action in CaseActionBar, and wires CaseTimeCardsPanel
plus LogTimeCardDialog into CsmCaseDetailPage.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rksk
rksk force-pushed the feature/timecards-p6-integration branch from 27b9f0c to 128d2b3 Compare July 2, 2026 18:12
@rksk
rksk merged commit 03d06b4 into wso2-open-operations:v2 Jul 2, 2026
1 check passed
@Hesara2003
Hesara2003 deleted the feature/timecards-p6-integration branch July 3, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

App/CSM Portal Area/Frontend Platform/Web Type/New Feature Represents a request or task for a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants