This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 831
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rename refire params
and DEVICE setting
comment out deprecated actions
- Also fixes some missing state updates for the right panel
toger5
force-pushed
the
toger5/RightPanelStore_refactor
branch
from
December 9, 2021 13:09
006e588
to
3bad57f
Compare
- A list of conversion function is intruduced for the panel history that just stores the eventId's (instead of the full event) - loading is only done when the client is ready to have acces to the getRoom function
toger5
commented
Dec 9, 2021
Tested the community panel and it seems to also work great. The right panel is shown by community. |
toger5
force-pushed
the
toger5/RightPanelStore_refactor
branch
from
December 9, 2021 17:45
6a6b223
to
66bdb8e
Compare
toger5
force-pushed
the
toger5/RightPanelStore_refactor
branch
from
December 10, 2021 12:17
66bdb8e
to
8e23f2e
Compare
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
jryans
approved these changes
Dec 17, 2021
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, this part looks good code wise! 😄
Now we just need to get a Design review, and then this should be ready to merge.
toger5
added
the
T-Task
Refactoring, enabling or disabling functionality, other engineering tasks
label
Dec 17, 2021
jryans
suggested changes
Jan 4, 2022
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.
A few new issues to resolve here as discussed.
jryans
suggested changes
Jan 5, 2022
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
jryans
approved these changes
Jan 5, 2022
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.
Great, this side looks ready to go! 😄
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This refactors the right panel to behave as proposed in this hackmd
What actually changes:
I tired to keep the changes in this PR really minimal. The actual navigation (in particular the back button) of the right panel should not change! The only difference should be that everything is now per room.
What is planned (in another PR)
There will be a follow up PR that uses push and pop methods to handle the right panel stack. This should then behave as following:
(^ this does not work yet!)
Things to test:
Copied Section from the hack MD:
Store phase history and associated data per room
The store gets extended by a room dictionary storing an array of
RightPanelPhaseState
's per room.The room dictionary contains the history of per room with the history of
RightPanelPhaseState
objects in an array.A
RightPanelPhaseState
consists of the phase of the right panel. And the associated state (like the member which is shown, the ID of the shown thread or the parameters of the verification request.)Optionally a global
RightPanelPhaseState
can be stored, if it is present the right panel is always visible.Pros:
RoomMemberPanel
(showing Member1) ... some other phases ...RoomMemberPanel
(showing Member2)Cons:
refireParams
and thelastRoomPhaseParams
used to get access to the last phase. And maybe even tackle other issues like, How the state of the RightPanel is calculated (This could well be a pro argument, but it would most definitely increase the time it takes for it to be done)This change is marked as an internal change (Task), so will not be included in the changelog.
Preview: https://61d58eb1fe1fba3968062921--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.