休みの形の編集をスタッフ詳細バブルに統一する

Open
#256 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 12 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
frontend

Research direction

Start by reading StaffDetail and WorkingStaffListView, then trace how DayOffStyle defaults and schedule-specific overrides are displayed and saved. Move schedule-scoped editing into StaffDetail, show the effective value and a way to restore the default, and make the list view read-only; done when the table in the issue is satisfied while store-scoped editing remains intact.

Written by the indexing model from the issue text.

Description

enhancement Shiftonton

背景

#236(人に印を付ける)で絵文字タグの編集をスタッフ詳細バブル(StaffDetail)に統一した。
しかし休みの形(DayOffStyle)の編集は以前のまま WorkingStaffListView の独立列に残っており、
編集口が分散している。

現状の問題
  • 編集口がバラバラ: 既定値は StaffDetail(店舗スコープ)、勤務表ごとの上書きは WorkingStaffListView の列
  • 勤務表から開いた StaffDetail では休みの形が見えない・直せない
  • 絵文字タグは StaffDetail で統一されたのに、休みの形だけパターンが違う
あるべき姿

「編集は StaffDetail、閲覧はどこでも」に統一する。

スコープ 表示 編集
店舗スコープ(StaffDetail) 既定値を表示 既定値を変更
勤務表スコープ(StaffDetail) その勤務表での値(上書き or 既定)を表示 上書きを編集。「既定値に戻す」も出す
WorkingStaffListView 休みの形を閲覧のみ表示 編集は StaffDetail に委ねる
勤務表グリッド ProfileMarks のアイコンで閲覧 —

関連 Issue

  • #225 制約を「店舗 → 勤務表 → 個人」の階層にし、下の層で上書きできるようにする
  • #226 休みの取り方(連休型・分散型)を制約として扱う
  • #236 人に印を付けられるようにする(絵文字タグ)

やること

  1. StaffDetail(勤務表スコープ)に休みの形の表示・編集を追加する
    • 既定値と上書き値を見分けられるようにする(「既定値に戻す」ボタン)
  2. WorkingStaffListView の休みの形の列を閲覧のみにする(DayOffStyleSelect → ラベル表示)
  3. StaffDetail(店舗スコープ)の既定値編集は既存のまま維持
Dominant language
TypeScript
Stars
1
Forks
0
Avg merge
9d 13h
Merged PRs (30d)
10

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fumicode/bublys-org

All issues in fumicode/bublys-org

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.