@vellym/wbs 0.0.0-stage → 0.2.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 tasclub
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,143 @@
1
- # Temporary Holding Version
1
+ # @vellym/wbs
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [English](#english) | [日本語](#日本語)
4
+
5
+ ## English
6
+
7
+ A Vellym plugin that displays `TicketTracker` tickets as a parent-child hierarchy with dates. It works without `@vellym/tickets` and creates no WBS-specific resources, tasks, or placement records.
8
+
9
+ English user guide: <https://vellym.tasclub.com/en/pages/wbs/>
10
+
11
+ ```yaml
12
+ plugins:
13
+ - "@vellym/wbs"
14
+ ```
15
+
16
+ Open a ticket tracker (`TicketTracker`) to see the WBS. If `@vellym/tickets` or `@vellym/kanban` is also installed, you can switch views from the same entry point.
17
+
18
+ Configure `spec.summary`, for example `[{ field: sequence, method: sum }]`, to show totals for all WBS tickets, including collapsed and attention-needed rows, in both live and static views. Invalid values are reported as excluded; there are no per-parent subtotals.
19
+
20
+ ```yaml
21
+ apiVersion: vellym.tasclub.com/v1
22
+ kind: TicketTracker
23
+ metadata: { name: project-tickets, title: Development plan }
24
+ spec:
25
+ statuses:
26
+ - { id: todo, label: To do, category: open }
27
+ - { id: done, label: Done, category: closed }
28
+ fields:
29
+ - { id: parent, label: Parent ticket, type: reference }
30
+ - { id: start, label: Start date, type: date }
31
+ - { id: due, label: End date, type: date }
32
+ - { id: sequence, label: Order, type: number }
33
+ hierarchy:
34
+ parentField: parent
35
+ wbs:
36
+ startField: start
37
+ endField: due
38
+ orderField: sequence
39
+ ```
40
+
41
+ | Setting | Field type | Meaning |
42
+ | --- | --- | --- |
43
+ | `hierarchy.parentField` (or `wbs.parentField`) | `reference` | Holds the parent ticket's `metadata.name` |
44
+ | `wbs.startField` | `date` | Start date (`YYYY-MM-DD`) |
45
+ | `wbs.endField` | `date` | End date (`YYYY-MM-DD`) |
46
+ | `wbs.orderField` | `number` | Order among tickets at the same level |
47
+
48
+ Field types a tracker can declare: `text`, `multiline`, `number`, `boolean`, `date`, `select`, `multiselect`, and `reference`.
49
+
50
+ `metadata.name` must be lowercase letters and digits separated by single hyphens (`^[a-z0-9]+(?:-[a-z0-9]+)*$`), unique in the project, and should not change once other tickets refer to it. A ticket with a parent and dates looks like this:
51
+
52
+ ```yaml
53
+ apiVersion: vellym.tasclub.com/v1
54
+ kind: Ticket
55
+ metadata: { name: ticket-write-notes, title: Write the release notes }
56
+ spec:
57
+ status: todo
58
+ fields:
59
+ parent: ticket-plan-release
60
+ start: "2026-11-02"
61
+ due: "2026-11-10"
62
+ sequence: 2
63
+ ```
64
+
65
+ Set `spec.fields.parent` on each ticket to its parent's `metadata.name`. You can also specify the parent reference field in `spec.wbs.parentField`. Choose fields for dates and ordering from the types declared in the ticket tracker. Changing a parent or an order saves only the ticket you changed.
66
+
67
+ Start creating a ticket from the shared **New ticket** action above the list or Kanban, or from **Add child task** on a row. The host's normal ticket-creation flow opens the editor; no source file is created until the first save.
68
+
69
+ Reorder tickets at the same hierarchy level with the drag handle (`Alt` + `↑` / `↓` on the keyboard). There are no up/down buttons.
70
+
71
+ The date timeline on the right calculates its default range from the start and end dates of all visible tickets. Change the start and end dates and switch between day and week scales. Rows outside the range show which direction they are in. To prevent tick labels from overlapping, day view is limited to 31 days and week view to 182 days; advance the start date to see further ahead.
72
+
73
+ Tickets without dates remain visible. Change a parent from **Change parent** on its row. **Reassign order** reports the number of affected tickets, asks for confirmation, then saves each ticket in sequence. Static output is read-only. Tickets without a parent or dates are still shown.
74
+
75
+ ## 日本語
76
+
77
+ `TicketTracker`のチケットを親子階層と日程で表示するVellymプラグインです。`@vellym/tickets`なしでも使えます。WBS専用のリソース・自前タスク・配置レコードは作りません。
78
+
79
+ 日本語の利用ガイド: <https://vellym.tasclub.com/pages/wbs/>
80
+
81
+ ```yaml
82
+ plugins:
83
+ - "@vellym/wbs"
84
+ ```
85
+
86
+ チケット管理(`TicketTracker`)を開くとWBSが表示されます。`@vellym/tickets`や`@vellym/kanban`も導入すると、同じ入口からビューを切り替えられます。
87
+
88
+ `spec.summary`(例: `[{ field: sequence, method: sum }]`)を指定すると、折りたたみ中や要確認の行を含むWBSの全チケットの集計を、通常画面と静的出力に表示します。型が合わない値は除外件数を示します。親ごとの小計はありません。
89
+
90
+ ```yaml
91
+ apiVersion: vellym.tasclub.com/v1
92
+ kind: TicketTracker
93
+ metadata: { name: project-tickets, title: 開発計画 }
94
+ spec:
95
+ statuses:
96
+ - { id: todo, label: 未着手, category: open }
97
+ - { id: done, label: 完了, category: closed }
98
+ fields:
99
+ - { id: parent, label: 親チケット, type: reference }
100
+ - { id: start, label: 開始, type: date }
101
+ - { id: due, label: 終了, type: date }
102
+ - { id: sequence, label: 順序, type: number }
103
+ hierarchy:
104
+ parentField: parent
105
+ wbs:
106
+ startField: start
107
+ endField: due
108
+ orderField: sequence
109
+ ```
110
+
111
+ | 設定 | 項目の型 | 意味 |
112
+ | --- | --- | --- |
113
+ | `hierarchy.parentField`(または`wbs.parentField`) | `reference` | 親のチケットの`metadata.name`を入れる項目 |
114
+ | `wbs.startField` | `date` | 開始日(`YYYY-MM-DD`) |
115
+ | `wbs.endField` | `date` | 終了日(`YYYY-MM-DD`) |
116
+ | `wbs.orderField` | `number` | 同じ階層の中の並び順 |
117
+
118
+ チケット管理で宣言できる項目の型は`text`・`multiline`・`number`・`boolean`・`date`・`select`・`multiselect`・`reference`です。
119
+
120
+ `metadata.name`は、小文字の英数字をハイフン1つで区切った形(`^[a-z0-9]+(?:-[a-z0-9]+)*$`)で、プロジェクトの中で一意にします。ほかのチケットから参照された後は変えません。親と日程を持つチケットの例です。
121
+
122
+ ```yaml
123
+ apiVersion: vellym.tasclub.com/v1
124
+ kind: Ticket
125
+ metadata: { name: ticket-write-notes, title: リリースノートを書く }
126
+ spec:
127
+ status: todo
128
+ fields:
129
+ parent: ticket-plan-release
130
+ start: "2026-11-02"
131
+ due: "2026-11-10"
132
+ sequence: 2
133
+ ```
134
+
135
+ チケットは`spec.fields.parent`に親の`metadata.name`を入れます。`spec.wbs.parentField`で親の参照項目を指定することもできます。日程・順序に使う項目はチケット管理の定義にある型から選びます。親の変更や順序の変更は操作したチケットだけを保存します。
136
+
137
+ 一覧・カンバンと同じ上部の「チケットを作成」または各行の「子タスクを追加」から、ホストのチケット作成経路で新規チケットの編集を始められます。最初の保存まで正本ファイルを作りません。
138
+
139
+ 同じ階層の順序はドラッグハンドルで変更します(キーボードではハンドルにフォーカスし`Alt + ↑ / ↓`)。上下のボタンは表示しません。
140
+
141
+ 右側の日付タイムラインは表示対象全件の開始・終了から既定範囲を決めます。表示開始・終了と日/週の目盛りを変更でき、範囲外の行は方向を示します。目盛りが重ならないよう、日表示は最大31日、週表示は最大182日で区切り、より先を見る場合は表示開始日を進めます。
142
+
143
+ 日程の無い行も残します。親の変更は各行の「親を変更」から開けます。「順序を振り直す」は対象件数を示して確認後に1件ずつ順次保存します。静的出力は閲覧のみです。親・日程が未設定のチケットも表示されます。