Allow the Invitations table to show invitations for all shops #331
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Loan Laux [email protected]
Impact: minor
Type: feature
Issue
I need to re-use the
Invitations
table in a custom plugin and show pending admin invitations for all shops at the same time. TheInvitations
table currently doesn't allow that.Solution
Make
Invitations
take theshopId
as a prop and allow for anull
shop name value in the table.Breaking changes
The
Invitations
table component now requires ashopId
prop to show invitations for a given shop. If noshopId
is provided, the table will show invitations for all shops combined.Testing
Invitations
with ashopId
, confirm that invitations are shown for this specific shop.Invitations
without ashopId
, confirm that invitations are shown for all combined shops.