Skip to content

Claude/apply pay period label improvements zs c5e#82

Merged
code-with-jov merged 3 commits intoopsx_pp_13_99from
claude/apply-pay-period-label-improvements-ZsC5e
Mar 17, 2026
Merged

Claude/apply pay period label improvements zs c5e#82
code-with-jov merged 3 commits intoopsx_pp_13_99from
claude/apply-pay-period-label-improvements-ZsC5e

Conversation

@code-with-jov
Copy link
Owner

Description

Related issue(s)

Testing

Checklist

  • Release notes added (see link above)
  • No obvious regressions in affected areas
  • Self-review has been performed - I understand what each change in the code does and why it is needed

claude added 2 commits March 8, 2026 18:28
…ate-range

- Change `getPayPeriodLabel` third parameter from `short: boolean` to
  `format: 'picker' | 'summary'` with optional `locale?: Locale`
- Picker format produces `{monthLetter}{withinMonthCount}` (e.g. J1, F2)
  using the locale-aware first char of the start month's MMM abbreviation
- Summary format produces `{startDate} - {endDate} (PP{n})` (e.g. Jan 4 - Jan 17 (PP1))
- Update `nameForMonth` in months.ts to forward locale and use new format strings
- Update both BudgetSummary components to use `format='summary'` with locale
- Update unit tests with new expected label formats and add additional coverage
- Update E2E tests to match new summary label regex

https://claude.ai/code/session_018hZh1bX4qEexFQAWDPb1xy
…facts

Includes pay-period engine, UI components, budget integration, settings,
openspec specs/design files, and opsx command updates that were already
present but unstaged.

https://claude.ai/code/session_018hZh1bX4qEexFQAWDPb1xy
import * as monthUtils from 'loot-core/shared/months';

import { usePayPeriodConfig } from '../PayPeriodContext';
import { usePayPeriodConfig } from 'packages/desktop-client/src/components/budget/PayPeriodContext';
Copy link
Owner Author

Choose a reason for hiding this comment

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

I think this breaks the build

@code-with-jov code-with-jov marked this pull request as ready for review March 17, 2026 02:22
@code-with-jov code-with-jov merged commit 82d30e0 into opsx_pp_13_99 Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants