Skip to content

Commit c5de129

Browse files
committed
docs: clarify option's id requirements
1 parent 65fd1ec commit c5de129

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

stage2/tasks/decision-making-tool/README.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,20 @@ The second part of the application (`Decision Picker`) allows you to visualize t
216216

217217
> Refers to any displayed options in the list, including all created and inserted options.
218218

219+
##### `Order number`
220+
221+
1. (+1) Each option's `order number` must be displayed.
222+
2. (+1) Each option's `order number` must be in `n.` format _(`1.`, `2.`, `3.`, and so on)_.
223+
3. (+1) Each option's `order number` must reflect its current position in the list.
224+
219225
##### `id`
220226

221227
1. (+1) Each option's `id` must be displayed.
222-
2. (+2) Each option's `id` must be unique.
223-
3. (+2) Each option's `id` must be in `#n` format _(`#1`, `#2`, `#3`, and so on)_.
224-
4. (+2) Each option's `id` must be generated programmatically at creation _(user cannot change it directly in this element)_.
225-
5. (+2) When the list of options becomes completely empty, the `id` counter must be reset.
228+
2. (+1) Each option's `id` must be unique.
229+
3. (+1) Each option's `id` must be in `#n` format _(`#1`, `#2`, `#3`, and so on)_.
230+
4. (+1) Each option's `id` must be generated programmatically at creation _(user cannot change it directly in this element)_.
231+
5. (+1) Each option's `id` must be constant and not affected by deletion of other options.
232+
6. (+1) When the list of options becomes completely empty, the `id` counter must be reset.
226233

227234
##### `title`
228235

@@ -242,7 +249,7 @@ The second part of the application (`Decision Picker`) allows you to visualize t
242249

243250
##### Option columns
244251

245-
1. (+2) The width of the "columns" ([`id`](#id), [`title`](#title), [`weight`](#weight), [`delete button`](#delete-button)) should match in "rows" ([`option`](#option-22108)). _(`flex`/`grid`/`table` can be useful here. How you do it is up to you.)_
252+
1. (+2) The width of the "columns" ([`order number`](#order-number), [`id`](#id), [`title`](#title), [`weight`](#weight), [`delete button`](#delete-button)) should match in "rows" ([`option`](#option-22108)). _(`flex`/`grid`/`table` can be useful here. How you do it is up to you.)_
246253

247254
#### Buttons (34/108)
248255

0 commit comments

Comments
 (0)