@dcrackel/hematournamentui 1.0.713 → 1.0.714
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/README.md +12 -0
- package/dist/HemaTournamentUI-lib.es.js +6856 -6243
- package/dist/HemaTournamentUI-lib.umd.js +27 -27
- package/dist/hematournamentui-tailwind.css +79 -9
- package/package.json +1 -1
- package/src/index.js +43 -42
- package/src/stories/Molecules/Modals/BracketDirectorsModal/BracketDirectorsModal.stories.js +49 -0
- package/src/stories/Molecules/Modals/BracketDirectorsModal/BracketDirectorsModal.test.js +129 -0
- package/src/stories/Molecules/Modals/BracketDirectorsModal/BracketDirectorsModal.vue +165 -0
- package/src/stories/Organisms/Cards/BracketDirectorAssignmentCard/BracketDirectorAssignmentCard.stories.js +10 -1
- package/src/stories/Organisms/Cards/BracketDirectorAssignmentCard/BracketDirectorAssignmentCard.test.js +31 -0
- package/src/stories/Organisms/Cards/BracketDirectorAssignmentCard/BracketDirectorAssignmentCard.vue +20 -1
- package/src/stories/Organisms/Containers/Tableau/components/BracketDirectorAssignmentPanel.test.js +22 -0
- package/src/stories/Organisms/Containers/Tableau/components/BracketDirectorAssignmentPanel.vue +27 -10
- package/src/stories/Templates/EventManagement/Bracket/Bracket.stories.js +33 -4
- package/src/stories/Templates/EventManagement/Bracket/Bracket.test.js +218 -178
- package/src/stories/Templates/EventManagement/Bracket/Bracket.vue +42 -1
- package/src/stories/Templates/EventManagement/Bracket/BracketPlannedSuggestions.js +8 -0
- package/src/stories/Templates/EventManagement/Bracket/BracketStories.test.js +121 -0
- package/src/stories/Util/bracketDirectors.js +86 -0
package/README.md
CHANGED
|
@@ -50,6 +50,18 @@ Three, five, and six directors use near-equal contiguous groups within each roun
|
|
|
50
50
|
|
|
51
51
|
The ThreeDirectors, FourDirectors, FiveDirectors, and SixDirectors stories demonstrate the counts. Distribution lives in the story parent simulation; reusable components still receive explicit `plannedDirectingStations` and `plannedBoutAssignments` from the consuming app.
|
|
52
52
|
|
|
53
|
+
The right-column director cards include a remove control. `Bracket` emits `request:remove-planned-director` with the selected station, including its `RingId` and `Director`. The consuming app removes that station from planned coverage, redistributes scheduled work as needed, and supplies the updated props. Removing planned coverage does not clear saved referee fields or change active/completed bouts. The story demonstrates removal, redistribution, removing the last director, and adding a removed director again.
|
|
54
|
+
|
|
55
|
+
## DE director roster contract
|
|
56
|
+
|
|
57
|
+
Supply `availableDirectors` and `rings` to `Bracket` to enable the roster modal. Add director and Manage open a list with selection checkboxes and a ring dropdown per person. The parent prepares eligible staff and optional default rings from Staff and pool assignments; staff who only help in DE need no pool assignment. This package does not read or change the Staff screen or pool data.
|
|
58
|
+
|
|
59
|
+
`availableDirectors` contains `{ PersonId, DisplayName, Color, PortraitUrl?, DefaultRingId? }`. `rings` contains `{ RingId, RingName, Color?, Disabled? }`. Saved `plannedDirectingStations` keep the existing `{ RingId, RingName, Color, Director: { PersonId, DisplayName, PortraitUrl? } }` shape. Director IDs identify people; ring IDs identify coverage stations. One selected director per ring matches the current station and bout-assignment contract. The modal permits changing both draft rows before saving a ring swap and reports duplicate or missing rings.
|
|
60
|
+
|
|
61
|
+
Saving emits `update:planned-directing-stations` with a detached full station list. Unchecking a person removes them from DE coverage. Ring changes are made in the modal; right-column cards display the selected ring as plain text. The parent saves the intent, redistributes scheduled coverage as appropriate, and returns authoritative props. Existing active/completed bout fields and pool assignments remain parent-owned. Each director keeps their supplied color when changing rings.
|
|
62
|
+
|
|
63
|
+
If those new data props are omitted, the existing `request:add-planned-director` callback remains available for parent-owned add UI. `BracketDirectorsModal` is also exported for standalone use with `show`, `availableDirectors`, `rings`, and `stations`; it emits `update:show` and `submit:stations`.
|
|
64
|
+
|
|
53
65
|
## Phone directing view
|
|
54
66
|
|
|
55
67
|
Below 768px, the bracket shows the bout list with connection status and planned ring suggestions. The organising panel and assignment actions are unavailable on phones, even when their props are enabled. Completed bouts sit in a collapsed section for score corrections. Returning to desktop restores the selected List View or Tableau.
|