You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two fixes to the Wave D modal bridge that previously left several modals
unable to open:
1. The bridge saga (`niceModalBridgeSagas`) was defined in `common` but
never spawned by web or mobile rootSagas, so even the existing
`setVisibility(id, true) → showNiceModal(id)` translation was dead
code. Add it to both rootSagas and re-export from
`@audius/common/services` so consumers can import it directly.
2. createModal-driven modals (LeavingAudiusModal, ArtistPickModal, etc.)
open via `useFooModal().onOpen()` which dispatches
`modals/{id}/open` — not the parent `setVisibility`. The bridge only
listened for `setVisibility`, so these modals never reached
`showNiceModal`. Add `watchOpenViaCreateModal` that matches the
generic `modals/{id}/(open|close|closed)` action shape and bridges to
`showNiceModal` / `hideNiceModal` when the id is in the registry.
Together this restores Wave D's NiceModal-managed modals and unblocks
migrating the remaining createModal-based modals in subsequent waves.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments