-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Experimental Module API Additions #30863
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
base: develop
Are you sure you want to change the base?
Conversation
so we don't have to pass it into RoomView
A bit less flexible but probably simpler and will help keep things actually consistent rather than just allowing modules to stick any JSX into the space panel (which means they also have to worry about styling if they *do* want it to be consistent).
and manage which one is selected, allowing module "spaces" to be considered spaces
which didn't really seem to have any point as it was only called from one place
Since it's passed through context
This is now accessed through class field
| @@ -0,0 +1,50 @@ | |||
| /* | |||
| Copyright 2025 New Vector Ltd. | |||
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.
Element Creations Ltd?
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.
Well, the code was written while we were NVL... I would guess it should be this rather than when it's merged.
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.
From chat I saw in the room around the time of the change it is retroactive and we need to add Element Creations Ltd to all existing files at some point too
| @@ -0,0 +1,33 @@ | |||
| /* | |||
| Copyright 2025 New Vector Ltd. | |||
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.
Element Creations Ltd?
| }; | ||
|
|
||
| export type SpaceKey = MetaSpace | Room["roomId"]; | ||
| export type SpaceKey = string; |
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.
Can we have comments now that the semantics are lost from the type
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.
Done
and fix else block
Needs element-hq/element-modules#79
This will pass type checks once Midhun's stack of PRs is merged into it, but please review first so we can review the chunks in isolation.
Checklist
public/exportedsymbols have accurate TSDoc documentation.