Skip to content

[#4708] Rebuild ItemGrantFlow for V2#6241

Merged
arbron merged 4 commits into
5.3.xfrom
advancement/item-grant-v2
Feb 6, 2026
Merged

[#4708] Rebuild ItemGrantFlow for V2#6241
arbron merged 4 commits into
5.3.xfrom
advancement/item-grant-v2

Conversation

@arbron

@arbron arbron commented Sep 25, 2025

Copy link
Copy Markdown
Collaborator

Rework ItemGrantFlow for application V2, leaving the original application around so that ItemChoiceFlow and module-provided advancement types that also extend it won't immediately break.

Item Grant V2 Tweaks

The interface has been reworked to show each item added in a pill and surround the ability select, if required, in a fieldset.

@arbron

arbron commented Sep 26, 2025

Copy link
Copy Markdown
Collaborator Author

More compact layout:

Item Grant V2 Compact

@arbron arbron added this to the D&D5E 5.3.0 milestone Oct 7, 2025
@arbron
arbron force-pushed the advancement/flow-v2 branch from 5afe465 to ab9c58a Compare October 15, 2025 22:14
@arbron
arbron force-pushed the advancement/item-grant-v2 branch from 202fefa to 4586b93 Compare October 15, 2025 22:17
@arbron
arbron force-pushed the advancement/flow-v2 branch from ab9c58a to d9fa863 Compare February 3, 2026 01:13
@arbron
arbron force-pushed the advancement/item-grant-v2 branch from 4586b93 to db8e9d2 Compare February 3, 2026 01:20
@Fyorl
Fyorl force-pushed the advancement/flow-v2 branch from d9fa863 to b89ae52 Compare February 4, 2026 01:12
Base automatically changed from advancement/flow-v2 to 5.3.x February 5, 2026 20:43
Rework `ItemGrantFlow` for application V2, leaving the original
application around so that `ItemChoiceFlow` and module-provided
advancement types that also extend it won't immediately break.

The interface has been reworked to show each item added in a pill
and surround the ability select, if required, in a fieldset.
@arbron
arbron force-pushed the advancement/item-grant-v2 branch from db8e9d2 to 193dd6d Compare February 5, 2026 20:46
@arbron
arbron requested a review from Fyorl February 5, 2026 20:48

@Fyorl Fyorl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; there was one issue I found in testing. Repro steps are:

  1. Create or modify an existing Item Grant to grant one optional and one non-optional feature.
  2. Complete that level of advancement on a character, opting-out of the optional feature.
  3. Modify choices for that level and attempt to select the optional feature this time.

For me, the box would not become checked, and it resulted in an error thrown when attempting to complete the advancement.

Comment thread module/applications/advancement/item-grant-flow-v2.mjs Outdated
this.updateSource({[keyPath.replace(/\.([\w\d]+)$/, ".-=$1")]: null});

if ( options.uuid ) this.updateSource({ [keyPath]: added });
else this.updateSource({ [keyPath.replace(/\.([\w\d]+)$/, ".-=$1")]: null });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be a lot easier to do this with ForcedDeletion in v14

Comment thread templates/advancement/item-grant-flow-v2.hbs Outdated
Comment thread less/v2/advancement.less Outdated
@arbron
arbron requested a review from Fyorl February 6, 2026 18:29
@arbron
arbron merged commit e687b30 into 5.3.x Feb 6, 2026
@arbron
arbron deleted the advancement/item-grant-v2 branch February 6, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in progress priority: high system: advancement ui User interface related features or bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants