Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure widget permissions using ModuleRunner.instance.invoke #11

Merged
merged 3 commits into from
Feb 16, 2023

Conversation

maheichyk
Copy link
Contributor

This PR suggests changes to module API to support customization of widget permissions using ModuleRunner.instance.invoke as discussed here: #9 (comment)

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
@richvdh
Copy link
Member

richvdh commented Feb 9, 2023

@andybalaam it looks like you've already done a bunch of thinking about this, so I'm afraid I'm going to throw it over the wall in your direction!

@richvdh richvdh requested review from andybalaam and removed request for richvdh February 9, 2023 10:08
@maheichyk
Copy link
Contributor Author

Hi @andybalaam could you please provide feedback on this PR?

@andybalaam
Copy link
Contributor

Hi @andybalaam could you please provide feedback on this PR?

@maheichyk I'm sorry for the delay on this. I will take a look today.

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
@andybalaam
Copy link
Contributor

@maheichyk this looks great. Please could we have a small test similar to what you did in #9 and then we'll be ready to merge this.

Thanks again for your work on this and your patience.

Copy link
Contributor

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

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

Looks good - requesting a test that validates the flow.

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
@maheichyk
Copy link
Contributor Author

@andybalaam thanks for the feedback! Test was added, please have a look.

@maheichyk
Copy link
Contributor Author

If test is fine, would be great maybe to have a new version of matrix-react-sdk-module-api that can be used to build this PR matrix-org/matrix-react-sdk#10121

Copy link
Contributor

@andybalaam andybalaam left a comment

Choose a reason for hiding this comment

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

This looks great, thank you!

@andybalaam andybalaam merged commit d9b2ec0 into matrix-org:main Feb 16, 2023
@andybalaam
Copy link
Contributor

@maheichyk new release 0.0.4 published at https://www.npmjs.com/package/@matrix-org/react-sdk-module-api

@dhenneke dhenneke deleted the module_widget_permissions_event branch August 18, 2023 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants