Skip to content

[#4708] Convert AdvancementManager to V2 app & styles#4765

Merged
Fyorl merged 3 commits into
4.2.xfrom
advancement/manager-v2
Jan 7, 2025
Merged

[#4708] Convert AdvancementManager to V2 app & styles#4765
Fyorl merged 3 commits into
4.2.xfrom
advancement/manager-v2

Conversation

@arbron

@arbron arbron commented Nov 23, 2024

Copy link
Copy Markdown
Collaborator

Converts AdvancementManager to use ApplicationV2 and V2 system styles. Because old V1 advancement flow applications are embedded within this application, there are some V1 classes added to ensure that styling of old flows aren't completely broken.

Flow V2 Manager

This also takes a number of soft-private properties and methods on the manager and makes them hard-private.

@arbron arbron added ui User interface related features or bugs system: advancement labels Nov 23, 2024
@arbron arbron added this to the D&D5E 4.2.0 milestone Nov 23, 2024
@arbron arbron self-assigned this Nov 23, 2024
@arbron
arbron force-pushed the advancement/manager-v2 branch from 28c0f91 to aadf852 Compare November 25, 2024 22:01
@arbron
arbron changed the base branch from 4.1.x to 4.2.x November 25, 2024 23:18
@arbron
arbron requested a review from Fyorl December 5, 2024 23:49

@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.

Worth re-evaluating the public and protected API for this class. For example, I imagine it's useful for a subclass to be able to read the #stepIndex or #advancing state. I'm not exactly sure what sort of use cases we have in mind for AdvancementManager subclasses though. Is it more superficial things like 're-skinning', or should a subclass be able to do things like modify how a user moves through the process entirely?

Comment thread module/applications/advancement/advancement-manager.mjs Outdated
arbron and others added 2 commits January 7, 2025 10:01
Converts `AdvancementManager` to use `ApplicationV2` and V2 system
styles. Because old V1 advancement flow applications are embedded
within this application, there are some V1 classes added to ensure
that styling of old flows aren't completely broken.

This also takes a number of soft-private properties and methods on
the manager and makes them hard-private.
@arbron
arbron force-pushed the advancement/manager-v2 branch from 6a5c6fc to 8d368d9 Compare January 7, 2025 18:01
@Fyorl
Fyorl merged commit fc8bf61 into 4.2.x Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

system: advancement ui User interface related features or bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants