Skip to content

Conversation

@erikdstock
Copy link
Contributor

@erikdstock erikdstock commented Dec 22, 2025

The type of this PR is: chore

This PR relates to EMI-3018

Description

This PR removes our usage of unstated with injectDialog() to put all error modals in one place. There are still confirmation dialogs associated with deleting saved addresses.

This does not complete the linked ticket because we cannot remove unstated until the legacy checkout is fully retired.

@erikdstock erikdstock self-assigned this Dec 22, 2025
Comment on lines 5 to 11
export enum CheckoutModalError {
LOADING_TIMEOUT = "loading_timeout",
ARTWORK_VERSION_MISMATCH = "artwork_version_mismatch",
ARTWORK_NOT_FOR_SALE = "artwork_not_for_sale",
SUBMIT_ERROR = "submit_error",
UNHANDLED = "UNHANDLED",
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unhandled was intended as a fallback but it isn't necessary yet.

@erikdstock erikdstock force-pushed the erik.chore-consolidate-checkout-modals branch from bf33fb3 to deabca3 Compare December 29, 2025 16:28
@relativeci
Copy link

relativeci bot commented Dec 29, 2025

#5737 Bundle Size — 9.53MiB (+0.07%).

d61cc70(current) vs 9d5b88f main#5729(baseline)

Warning

Bundle contains 34 duplicate packages – View duplicate packages

Bundle metrics  Change 5 changes Regression 1 regression Improvement 1 improvement
                 Current
#5737
     Baseline
#5729
Improvement  Initial JS 3.7MiB(~-0.01%) 3.7MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 47.06% 37.44%
No change  Chunks 102 102
No change  Assets 105 105
Change  Modules 5958(+0.25%) 5943
Regression  Duplicate Modules 601(+2.21%) 588
Change  Duplicate Code 4.49%(+1.13%) 4.44%
No change  Packages 297 297
No change  Duplicate Packages 33 33
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#5737
     Baseline
#5729
Regression  JS 9.39MiB (+0.07%) 9.38MiB
Improvement  Other 144.17KiB (-0.07%) 144.28KiB

Bundle analysis reportBranch erik.chore-consolidate-checkout-...Project dashboard


Generated by RelativeCIDocumentationReport issue

@erikdstock erikdstock enabled auto-merge (squash) December 29, 2025 16:59
@erikdstock erikdstock requested review from oxaudo and removed request for starsirius December 29, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants