Skip to content

お知らせ欄の特別シフトの日付と時間帯の間隔を詰める - #75

Merged
champierre merged 2 commits into
mainfrom
fix/announcement-date-time-spacing
Oct 5, 2026
Merged

champierre merged 2 commits into
mainfrom
fix/announcement-date-time-spacing

Conversation

@champierre

Copy link
Copy Markdown
Contributor

概要

お知らせ欄の特別シフト募集表示で、日付と時間帯を全角スペースで区切っていたため、間が空きすぎて見えていました。半角スペース 1 つで区切るように修正します。

表示
修正前 「〇〇」の特別シフトを募集中(2026-10-08 12:30-15:30)
修正後 「〇〇」の特別シフトを募集中(2026-10-08 12:30-15:30)

変更内容

  • 日時文字列の組み立てを formatSpecialShiftSchedule() に切り出し、区切りを半角スペースに変更
  • js/modules/specialShifts.js にエクスポートガードを追加し、テストから実コードを直接 import して検証(docs/refactoring/phase-1-test-foundation.md の方針。ブラウザでは module が未定義のため no-op)
  • 回帰防止テスト test/special-shift-announcement-spacing.test.js を追加

テスト

  • npm test: 424 passed (32 suites)
  • ブラウザでの表示確認は未実施です(スクリーンショットなし。上の表は文字列での比較)

破壊的変更・DB マイグレーションはありません。

🤖 Generated with Claude Code

お知らせ欄の特別シフト募集表示で、日付と時間帯を全角スペースで区切っていたため
「2026-10-08 12:30-15:30」のように間が空きすぎて見えていた。
半角スペース 1 つで区切るようにした。

  旧: (2026-10-08 12:30-15:30)
  新: (2026-10-08 12:30-15:30)

日時文字列の組み立てを formatSpecialShiftSchedule() に切り出し、
js/modules/specialShifts.js にエクスポートガードを追加して、テストから実コードを
直接 import して検証している(docs/refactoring/phase-1-test-foundation.md の方針)。
ブラウザでは module が未定義のため no-op。

テスト: 424 passed (32 suites)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@champierre
champierre merged commit 06e86e3 into main Oct 5, 2026
2 checks passed
@champierre
champierre deleted the fix/announcement-date-time-spacing branch October 5, 2026 05:06
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.

1 participant