Skip to content

feat(dashboard): support weekly pace working days - #901

Merged
Soju06 merged 1 commit into
mainfrom
codex-lb-702
Jun 7, 2026
Merged

Soju06 merged 1 commit into
mainfrom
codex-lb-702

Conversation

@Komzpa

@Komzpa Komzpa commented Jun 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add a dashboard setting for weekly pace working days, defaulting to all seven days.
  • Apply configured working days to backend weekly credits pace schedule math so non-working days do not advance scheduled-by-now or pace-gap calculations.
  • Expose the setting through the settings API, audit changed-fields, shared settings payloads, and the settings UI.

Closes #702.

Maintainer Update

Validation

uv run openspec validate add-weekly-pace-working-days --strict
uv run pytest tests/integration/test_settings_api.py tests/integration/test_settings_audit_changed_fields.py tests/integration/test_dashboard_overview.py -q
uv run python - <<'PY'
from alembic.script import ScriptDirectory
from app.db.migrate import _build_alembic_config
cfg = _build_alembic_config('sqlite:///tmp/alembic-head-check.db')
script = ScriptDirectory.from_config(cfg)
heads = script.get_heads()
print('heads', heads)
if len(heads) != 1:
    raise SystemExit(1)
PY
uv run ruff check app/modules/dashboard app/modules/settings app/db/models.py tests/integration/test_settings_api.py tests/integration/test_settings_audit_changed_fields.py tests/integration/test_dashboard_overview.py
uv run ty check app/modules/dashboard app/modules/settings
npm test -- src/features/settings/schemas.test.ts src/features/settings/components/routing-settings.test.tsx src/features/settings/components/session-settings.test.tsx src/features/settings/components/totp-settings.test.tsx
npm run typecheck
npm run lint
npm test

@github-actions github-actions Bot added the db migration PR changes Alembic database migrations; maintainer must coordinate merge order label Jun 3, 2026
@Soju06

Soju06 commented Jun 3, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Soju06 Soju06 added 🤖 codex: ok [@codex review] says no issues found. and removed 🤖 codex: ok [@codex review] says no issues found. labels Jun 3, 2026
@Soju06

Soju06 commented Jun 3, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Soju06 Soju06 added 🤖 codex: ok [@codex review] says no issues found. and removed 🤖 codex: ok [@codex review] says no issues found. labels Jun 3, 2026
@Soju06

Soju06 commented Jun 3, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Soju06 Soju06 added 🤖 codex: ok [@codex review] says no issues found. and removed 🤖 codex: ok [@codex review] says no issues found. labels Jun 3, 2026
@Soju06

Soju06 commented Jun 3, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0d7118ae14

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Makefile Resolved
@Soju06 Soju06 added the 🤖 codex: needs work [@codex review] raised an issue label Jun 3, 2026
@Soju06

Soju06 commented Jun 3, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Soju06 Soju06 added 🤖 codex: ok [@codex review] says no issues found. and removed 🤖 codex: needs work [@codex review] raised an issue 🤖 codex: ok [@codex review] says no issues found. labels Jun 3, 2026
@Soju06

Soju06 commented Jun 4, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Soju06 Soju06 added the 🤖 codex: ok [@codex review] says no issues found. label Jun 4, 2026
@Soju06
Soju06 merged commit 7abbcf8 into main Jun 7, 2026
29 checks passed
@Soju06
Soju06 deleted the codex-lb-702 branch June 7, 2026 08:27
@Soju06 Soju06 mentioned this pull request Jun 16, 2026
6 tasks
vitalNohj pushed a commit to vitalNohj/codex-lb that referenced this pull request Jul 17, 2026
## Summary

- Add a dashboard setting for weekly pace working days, defaulting to all seven days.
- Apply configured working days to backend weekly credits pace schedule math so non-working days do not advance scheduled-by-now or pace-gap calculations.
- Expose the setting through the settings API, audit changed-fields, shared settings payloads, and the settings UI.

Closes Soju06#702.

## Maintainer Update

- Rebased onto current `main`; current head is `6a1ccf7ddaa8fc92a9ef1d99c92cbe50288bdfe3`.
- This PR no longer carries PostgreSQL CI narrowing changes; Soju06#899 remains the dedicated CI-only PR.
- This PR no longer carries the proxy concurrent-usage-read fix; Soju06#902 now owns that usage/proxy behavior.
- This remains separate from Soju06#905 because Soju06#702 weekly pace scheduling and Soju06#433 staggered idle warm-up are independent features, but both add settings migrations. Whichever migration PR merges second should be rebased onto the first merged migration head.

## Validation

```bash
uv run openspec validate add-weekly-pace-working-days --strict
uv run pytest tests/integration/test_settings_api.py tests/integration/test_settings_audit_changed_fields.py tests/integration/test_dashboard_overview.py -q
uv run python - <<'PY'
from alembic.script import ScriptDirectory
from app.db.migrate import _build_alembic_config
cfg = _build_alembic_config('sqlite:///tmp/alembic-head-check.db')
script = ScriptDirectory.from_config(cfg)
heads = script.get_heads()
print('heads', heads)
if len(heads) != 1:
    raise SystemExit(1)
PY
uv run ruff check app/modules/dashboard app/modules/settings app/db/models.py tests/integration/test_settings_api.py tests/integration/test_settings_audit_changed_fields.py tests/integration/test_dashboard_overview.py
uv run ty check app/modules/dashboard app/modules/settings
npm test -- src/features/settings/schemas.test.ts src/features/settings/components/routing-settings.test.tsx src/features/settings/components/session-settings.test.tsx src/features/settings/components/totp-settings.test.tsx
npm run typecheck
npm run lint
npm test
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 codex: ok [@codex review] says no issues found. db migration PR changes Alembic database migrations; maintainer must coordinate merge order

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: support working days in Weekly Credits Pace

2 participants