-
-
Notifications
You must be signed in to change notification settings - Fork 827
Add persistence of collapsed state of space panel #9245
Conversation
Signed-off-by: gefgu <[email protected]>
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.
Thanks for the contribution! It looks pretty straightforward, though I think a simple cypress test or similar would be a great addition to this.
3f5290c
to
50f1a55
Compare
I've added the cypress test and would be delighted if you could review it - It is the first time I work with cypress :). Also, I've removed the try/catch block. It does not seems to be necessary. |
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.
generally this looks good to me - thanks!
I've merged develop in hopes of kicking the CI into working properly - apologies if this interferes with your workflow.
…ix-react-sdk into persist-minimised-space-panel
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.
still looks good to me overall - the CI is very unhappy for some reason though.
cy.get(".mx_SpacePanel_toggleCollapse").click(); | ||
cy.get(".mx_SpacePanel").should("not.have.class", "collapsed"); | ||
cy.reload(true); | ||
cy.get(".mx_SpacePanel").should("not.have.class", "collapsed"); |
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.
we should also probably check to see if clicking it again and reloading causes it to un-collapse
…ix-react-sdk into persist-minimised-space-panel
Signed-off-by: gefgu [email protected]
Checklist
Notes: Add persistence of collapsed state of space panel. It fixes element-hq/element-web#23172
Type: enhancement
Behavior: (Hard reload was made by
ctrl + shift + r
)space-panel-demonstration_2xspeed.mp4
This change was made using LocalStorage implemented inside of the component. I'm not sure it's the best solution because of most of the other LocalStorage values are implemented using stores. In this way, I want feedback about my approach and I'm willing to keep working on this issue until it is resolved.
Here's what your changelog entry will look like:
✨ Features