-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add support for rendering a custom wrapper around Element #13
Conversation
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
c88a814
to
9bc0a8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution @maheichyk .
- There should be another PR in React-SDK to actually display the banner. Can you link it here?
- The banner feature should be mentioned in the README.
Co-authored-by: Michael Weimann <mail@michael-weimann.eu>
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
This reverts commit f3be6ac.
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
@weeman1337 thanks for your comments, I have provided the changes. Here is a PR in matrix-react-sdk matrix-org/matrix-react-sdk#10321 that is linked. Is it fine just to keep this link just in a comment or should I move it to the description? |
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
@maheichyk sorry this issue got out of sight. Usually the workflow here is to re-request a review one changes are done. This way it will be on my review list :)
For a better discoverability add it to the description please. |
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
This blocks on element-hq/element-web#25537 (comment). |
@germain-gg we discussed this PR last Wednesday, it seems to be okay. Could we move this forward? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The banner use case makes a lot of sense, but after discussing with other team members internally we believe we would like to make this module a bit more generic.
Rather than a banner, we would like to suggest defining a wrapper
.
Similarly to the banner
, you should be able to define a React Component that will take on a children prop.
From an implementation point of view it would wrap the MatrixChat
component, and let any consumer add a banner, a footer.
This brings the flexibility of a pseudo-iframe without the constraints.
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
c64c430
to
743a391
Compare
@germain-gg thanks a lot for the suggestion, sounds a good idea. I have added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the updates, couple of changes in the test and that should be ready to be merged.
Co-authored-by: Germain <germain@souquet.com>
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you for updating everything.
That should be good to go 🎉
All review comments have been addressed, and PR has been changed significantly since initial review
@maheichyk could you update your branch with the base branch? It's preventing me from merging that pull request otherwise. And I do not have permissions as maintainer to push to your branch. |
@germain-gg it is updated, thanks for the message |
@germain-gg thanks for the review and merge! Could you please create a release of the module api, then I could finish: element-hq/element-web#25537 |
@maheichyk It's been released as part of |
@maheichyk Thank you very much for your work on this! Do you by any chance have a public project that's going to make use of this new feature that you could link? I'd be curious to read up on it, as we might be interested in using this as well. |
@fnwbr yes, it is used in our opendesk-module that is public since some time now. |
This PR suggests to extend module API with possibility to provide a wrapper component to be rendered arounnd Element.
PR in element web element-hq/element-web#25537 that is linked.