Skip to content

Add UserCalloutDismisser component

Mark Florian requested to merge dismissible-user-callout-component into master

What does this MR do?

Add UserCalloutDismisser component

This is a renderless component that encapsulates the query/mutation behaviours of working with UserCallouts.

The component is essentially a less generic combination of both the ApolloQuery and ApolloMutation components. I wanted to make the slot props API similar, but given that this didn't need to be so generic, I decided against that and chose slot props that made the most sense for this use case.

This adds the component and specs, and also moves the existing get_user_callouts.query.graphql file to a shared location.

Finally, this is based in part on the prior art in !59297 (merged) and !60024 (merged).

Part of #332691 (closed).

Screenshots (strongly suggested)

n/a

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Mark Florian

Merge request reports

Loading