This repository was archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 819
Initial MSC3083 + MSC3244 support #6212
Merged
Merged
Changes from 39 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
bf66a72
Move JoinRule, GuestAccess, HistoryVisibility enums into the js-sdk
t3chguy 56fe7f8
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy 18cafeb
Add ability to disable entire StyledRadioGroup
t3chguy e508ff0
Clean up typing to Security Room Settings
t3chguy 566b8af
Initial support for MSC3083 via MSC3244
t3chguy d0dc5cf
Update early MSC3083 support
t3chguy 88cd5ae
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy 4c42313
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy fb149c4
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy e8f0412
Add way to manage Restricted join rule in Room Settings
t3chguy 912e192
Tweak behaviour of setting restricted join rule
t3chguy 89949bd
Add new in the spaces beta toast & explanatory modal
t3chguy 1b25ab9
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy 44bbf60
Convert Dropdown to Typescript
t3chguy 82100df
Bring dropdown styling into closer line with rest of our styling
t3chguy 6923478
Track restricted join rule support in the SpaceStore for sync access
t3chguy c5ca98a
Iterate SecurityRoomSettingsTab and ManageRestrictedJoinRuleDialog
t3chguy eb9f4c6
Make CreateRoomDialog capable of creating restricted rooms in spaces
t3chguy 64d1d16
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy 3301763
stub getCapabilities in tests
t3chguy 0ca4a95
fix getCapabilities stub
t3chguy 9d8acd1
stub getJoinRule
t3chguy 04c923b
fix tests by including client field on the Room stub and stubbing get…
t3chguy 06284fe
Update e2e tests
t3chguy d004163
Fix 2 new NPEs
t3chguy a5cec34
Merge branch 'develop' into t3chguy/fix/17686
germain-gg 894bce7
Update lockfile
germain-gg f412fb4
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy 437d53d
Update space children (best effort) when upgrading a room
t3chguy 6fe00d1
Convert RoomUpgradeDialog to TS
t3chguy dcb9b9b
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy 5986609
i18n
t3chguy de42a00
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy f2a8859
delint
t3chguy a58edcb
tweak copy
t3chguy 390b056
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy fd64d37
Add iconography to Create Room Dialog dropdown
t3chguy d147aaa
delint and fix min-height issue
t3chguy 18bb4bc
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy cd77b9f
merge two opposing if statements
t3chguy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
150 changes: 150 additions & 0 deletions
150
res/css/views/dialogs/_ManageRestrictedJoinRuleDialog.scss
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
/* | ||
Copyright 2021 The Matrix.org Foundation C.I.C. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
.mx_ManageRestrictedJoinRuleDialog_wrapper { | ||
.mx_Dialog { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
.mx_ManageRestrictedJoinRuleDialog { | ||
width: 480px; | ||
color: $primary-fg-color; | ||
display: flex; | ||
flex-direction: column; | ||
flex-wrap: nowrap; | ||
min-height: 0; | ||
height: 60vh; | ||
|
||
.mx_SearchBox { | ||
// To match the space around the title | ||
margin: 0 0 15px 0; | ||
flex-grow: 0; | ||
} | ||
|
||
.mx_ManageRestrictedJoinRuleDialog_content { | ||
flex-grow: 1; | ||
} | ||
|
||
.mx_ManageRestrictedJoinRuleDialog_noResults { | ||
display: block; | ||
margin-top: 24px; | ||
} | ||
|
||
.mx_ManageRestrictedJoinRuleDialog_section { | ||
&:not(:first-child) { | ||
margin-top: 24px; | ||
} | ||
|
||
> h3 { | ||
margin: 0; | ||
color: $secondary-fg-color; | ||
font-size: $font-12px; | ||
font-weight: $font-semi-bold; | ||
line-height: $font-15px; | ||
} | ||
|
||
.mx_ManageRestrictedJoinRuleDialog_entry { | ||
display: flex; | ||
margin-top: 12px; | ||
|
||
> div { | ||
flex-grow: 1; | ||
} | ||
|
||
img.mx_RoomAvatar_isSpaceRoom, | ||
.mx_RoomAvatar_isSpaceRoom img { | ||
border-radius: 4px; | ||
} | ||
|
||
.mx_ManageRestrictedJoinRuleDialog_entry_name { | ||
margin: 0 8px; | ||
font-size: $font-15px; | ||
line-height: 30px; | ||
flex-grow: 1; | ||
overflow: hidden; | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.mx_ManageRestrictedJoinRuleDialog_entry_description { | ||
margin-top: 8px; | ||
font-size: $font-12px; | ||
line-height: $font-15px; | ||
color: $tertiary-fg-color; | ||
} | ||
|
||
.mx_Checkbox { | ||
align-items: center; | ||
} | ||
} | ||
} | ||
|
||
.mx_ManageRestrictedJoinRuleDialog_section_spaces { | ||
.mx_BaseAvatar { | ||
margin-right: 12px; | ||
} | ||
|
||
.mx_BaseAvatar_image { | ||
border-radius: 8px; | ||
} | ||
} | ||
|
||
.mx_ManageRestrictedJoinRuleDialog_section_info { | ||
position: relative; | ||
border-radius: 8px; | ||
margin: 12px 0; | ||
padding: 8px 8px 8px 42px; | ||
background-color: $header-panel-bg-color; | ||
|
||
font-size: $font-12px; | ||
line-height: $font-15px; | ||
color: $secondary-fg-color; | ||
|
||
&::before { | ||
content: ''; | ||
position: absolute; | ||
left: 10px; | ||
top: calc(50% - 8px); // vertical centering | ||
height: 16px; | ||
width: 16px; | ||
background-color: $secondary-fg-color; | ||
mask-repeat: no-repeat; | ||
mask-size: contain; | ||
mask-image: url('$(res)/img/element-icons/room/room-summary.svg'); | ||
mask-position: center; | ||
} | ||
} | ||
|
||
.mx_ManageRestrictedJoinRuleDialog_footer { | ||
margin-top: 20px; | ||
|
||
.mx_ManageRestrictedJoinRuleDialog_footer_buttons { | ||
display: flex; | ||
width: max-content; | ||
margin-left: auto; | ||
|
||
.mx_AccessibleButton { | ||
display: inline-block; | ||
|
||
& + .mx_AccessibleButton { | ||
margin-left: 24px; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.