Skip to content

Add overtime pay calculator - #28

Draft
rrih wants to merge 33 commits into
mainfrom
codex/overtime-pay-calculator
Draft

Add overtime pay calculator#28
rrih wants to merge 33 commits into
mainfrom
codex/overtime-pay-calculator

Conversation

@rrih

@rrih rrih commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds /tools/overtime-pay-calculator/ for Japan overtime pay estimates.
  • Supports direct hourly wage or monthly base pay / scheduled hours to derive base hourly wage.
  • Separates statutory overtime up to 60h, overtime over 60h, night overtime, legal-holiday work, and night legal-holiday work so combined premiums are explicit.
  • Marks overtime-pay-calculator as in_progress in the growth opportunity backlog and regenerates accelerator output so the same tool is not repeatedly selected while this draft is open.

Selected action

  • Type: new-high-cpc-tool
  • Target: /tools/overtime-pay-calculator/
  • Automation mode: draft-pr
  • Data rationale: latest accelerator snapshot selected Overtime Pay Calculator as the top remaining high-CPC planned tool after Take-Home Pay Calculator was classified as launched.

Source checks

Expected KPI impact

  • Adds a Japanese labor/salary utility in a higher-CPC topic cluster.
  • Creates an internal path between overtime pay and take-home pay workflows without changing ad density.
  • Advances the revenue backlog while keeping labor-law assumptions behind human review.

Verification

  • bash /Users/rrih/.codex/skills/rrih-github-io-revenue-accelerator/scripts/github_preflight.sh rrih/rrih.github.io
  • bun scripts/growth/revenue-accelerator.ts
  • bun test test/overtime-pay.test.ts
  • bun test
  • bun --bun tsc --noEmit
  • bun run lint (passes with existing 9 warnings)
  • bun run build
  • bun run dev-check
  • git diff --check
  • Browser check at http://localhost:3333/tools/overtime-pay-calculator/: desktop recalculation showed total ¥60,700, premium ¥16,700, average multiplier 1.38x, exact segment multipliers; mobile 390px had no horizontal overflow and no console errors.

Human review focus

  • Confirm the default premium assumptions are appropriate for the first public draft.
  • Confirm the UI wording around legal holiday vs non-statutory holiday is clear enough.
  • Decide whether excluded allowances, rounding rules, and company-specific rates should be a follow-up before merge.

Refs #15

@rrih rrih added growth AdSense growth program revenue-accelerator High-impact rrih.github.io revenue acceleration labels Jun 12, 2026
@rrih rrih mentioned this pull request Jun 12, 2026
@rrih rrih mentioned this pull request Jun 13, 2026
rrih added 2 commits June 14, 2026 23:47
@rrih

rrih commented Jun 22, 2026

Copy link
Copy Markdown
Owner Author

Revenue accelerator repair update (2026-06-22 JST)

Local verification:

  • bun test -> 31 pass / 0 fail
  • bun --bun tsc --noEmit -> pass
  • bun run lint -> pass with existing 9 warnings
  • bun run build -> pass
  • bun run dev-check -> pass through dev server Ready

This remains a draft PR and was not merged.

@rrih

rrih commented Jun 23, 2026

Copy link
Copy Markdown
Owner Author

Revenue accelerator repair update (2026-06-23 JST)

Local verification:

  • bun test -> 31 pass / 0 fail
  • bun --bun tsc --noEmit -> pass
  • bun run lint -> pass with existing 9 warnings
  • bun run build -> pass
  • Pre-commit hook also reran TypeScript, Biome, tests, and build successfully.

This remains a draft PR and was not merged.

@rrih

rrih commented Jun 24, 2026

Copy link
Copy Markdown
Owner Author

Revenue accelerator repair update (2026-06-24 JST)

Local verification:

  • bun test -> 31 pass / 0 fail
  • bun --bun tsc --noEmit -> pass
  • bun run lint -> pass with existing 9 warnings
  • bun run build -> pass
  • bun run dev-check -> pass through dev server Ready
  • Pre-commit hook also reran TypeScript, Biome, tests, and build successfully.

This remains a draft PR and was not merged.

@rrih

rrih commented Jun 25, 2026

Copy link
Copy Markdown
Owner Author

Revenue accelerator repair update (2026-06-25 JST)

Local verification:

  • bun test -> 31 pass / 0 fail
  • bun --bun tsc --noEmit -> pass
  • bun run lint -> pass with existing 9 warnings
  • bun run build -> pass
  • CI=1 bun run dev-check -> pass through dev server Ready
  • git diff --check -> pass
  • Pre-commit hook also reran TypeScript, Biome, tests, and build successfully.

This remains a draft PR and was not merged.

@rrih

rrih commented Jun 26, 2026

Copy link
Copy Markdown
Owner Author

Revenue accelerator repair update (2026-06-26 JST)

Local verification:

  • bun test -> 31 pass / 0 fail
  • bun --bun tsc --noEmit -> pass
  • bun run lint -> pass with existing 9 warnings
  • bun run build -> pass
  • CI=1 bun run dev-check -> pass through dev server Ready
  • git diff --check -> pass
  • Pre-commit hook also reran TypeScript, Biome, tests, and build successfully.
  • Production smoke: curl -I -L --max-time 20 https://rrih.github.io/ -> HTTP 200

This remains a draft PR and was not merged.

@rrih

rrih commented Jun 27, 2026

Copy link
Copy Markdown
Owner Author

Revenue accelerator repair update (2026-06-28 JST)

Local verification:

  • bun --bun tsc --noEmit -> pass
  • bun run lint -> pass with existing 9 warnings
  • bun test -> 31 pass / 0 fail
  • bun run build -> pass
  • bun run dev-check -> pass through dev server Ready
  • git diff --check -> pass

This remains a draft PR and was not merged.

…lculator

# Conflicts:
#	data/growth/metrics/latest.json
@rrih

rrih commented Jun 28, 2026

Copy link
Copy Markdown
Owner Author

Revenue accelerator repair update (2026-06-28 JST)\n\n- Selected one unit: repair existing draft PR #28 because current triage showed it was DIRTY / CONFLICTING after the 2026-06-28 main growth snapshots.\n- Merged latest origin/main into codex/overtime-pay-calculator and resolved data/growth/metrics/latest.json by keeping the 2026-06-28 main growth snapshot.\n- Pushed repair commit 1d567d7.\n- Current PR state: draft, mergeStateStatus=CLEAN, mergeable=MERGEABLE.\n- GitHub CI: test succeeded: https://github.com/rrih/rrih.github.io/actions/runs/28308549595/job/83869056569\n\nLocal verification:\n- Pre-commit hook ran TypeScript, Biome, tests, and build successfully.\n- bun test -> 31 pass / 0 fail\n- bun --bun tsc --noEmit -> pass\n- bun run lint / Biome -> pass with existing 9 warnings\n- bun run build -> pass\n- bun run dev-check -> pass through dev server Ready\n- git diff --check -> pass\n- Production smoke: curl -I -L --max-time 20 https://rrih.github.io/ -> HTTP 200\n\nThis remains a draft PR and was not merged.

@rrih

rrih commented Jun 29, 2026

Copy link
Copy Markdown
Owner Author

Revenue accelerator repair attempt (2026-06-29 JST)

  • Selected one unit: repair existing draft PR Add overtime pay calculator #28 because retrying preflight showed it is DIRTY / CONFLICTING after the 2026-06-29 main growth snapshots.
  • Fetched and attempted to merge latest origin/main; the only content conflict was data/growth/metrics/latest.json, and the intended resolution was to keep the 2026-06-29 main snapshot.
  • Local verification before commit:
    • bun test -> 31 pass / 0 fail
    • bun --bun tsc --noEmit -> pass
    • bun run lint -> pass with existing 9 warnings
    • bun run build -> blocked locally by repeated SIGTERM during Next static generation / build after compile reached at least Generating static pages (0/192) in one run
    • Retried after cleaning .next, out, and tsconfig.tsbuildinfo with NODE_OPTIONS=--max-old-space-size=4096 NEXT_TELEMETRY_DISABLED=1; it still terminated with SIGTERM
  • No repair commit was created or pushed because the mandatory build gate did not pass locally.
  • Local merge state was cleaned up afterward; the pre-existing public/sw.js generated diff was preserved as an unstaged local change.

This remains a draft PR and still needs the main-refresh repair once the local build gate can complete or CI is used as the verification surface.

@rrih

rrih commented Jun 29, 2026

Copy link
Copy Markdown
Owner Author

Revenue accelerator repair update (2026-06-29 JST)

Local verification:

  • Pre-commit hook ran TypeScript, Biome, tests, and build successfully.
  • bun test -> 31 pass / 0 fail
  • bun --bun tsc --noEmit -> pass
  • bun run lint / Biome -> pass with existing 9 warnings
  • bun run build -> pass
  • CI=1 bun run dev-check -> pass through dev server Ready
  • git diff --check -> pass
  • Production smoke: curl -I -L --max-time 20 https://rrih.github.io/ -> HTTP 200

This remains a draft PR and was not merged.

@rrih

rrih commented Jun 30, 2026

Copy link
Copy Markdown
Owner Author

Revenue accelerator repair update (2026-06-30 JST)

Local verification:

  • Pre-commit hook ran TypeScript, Biome, tests, and build successfully.
  • bun test -> 31 pass / 0 fail
  • bun --bun tsc --noEmit -> pass
  • bun run lint / Biome -> pass with existing 9 warnings
  • bun run build -> pass
  • bun run dev-check -> pass through dev server Ready
  • git diff --check -> pass
  • Production smoke: curl -I -L --max-time 20 https://rrih.github.io/ -> HTTP 200

This remains a draft PR and was not merged.

@rrih

rrih commented Jul 1, 2026

Copy link
Copy Markdown
Owner Author

Revenue accelerator repair update (2026-07-01 JST)

Local verification:

  • bun test -> 31 pass / 0 fail
  • bun --bun tsc --noEmit -> pass
  • bun run lint / Biome -> pass with existing 9 warnings
  • bun run build -> pass
  • bun run dev-check -> pass through dev server Ready
  • git diff --check --cached -> pass
  • Production smoke: curl -I -L --max-time 20 https://rrih.github.io/ -> HTTP 200

This remains a draft PR and was not merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

growth AdSense growth program revenue-accelerator High-impact rrih.github.io revenue acceleration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant