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 829
Redesign room search interface #12677
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
6238863
Extract SearchInfo interface and SearchScope enum
t3chguy 8b36baa
Fix in-progress and update behaviour of RoomSearchView
t3chguy be6665d
Remove search button from legacy header
t3chguy b56fd5a
Move search from aux panel to room summary card
t3chguy a705b97
Wire up Cmd/Ctrl F for moved search field
t3chguy bc0b777
Use cpd space tokens
t3chguy 7540d2b
Remove stale props
t3chguy 7c99eb4
Fix ctrl/cmd f search shortcut
t3chguy c73f1aa
Tests
t3chguy 1af2376
Tests
t3chguy e708e33
Update Compound
t3chguy f733386
Revert the back button for now
t3chguy 55d7e88
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy d7adb29
i18n
t3chguy 1cc908e
Iterate
t3chguy e55301a
Iterate
t3chguy 3fe4578
Iterate
t3chguy 7c3c017
Iterate
t3chguy 3b9b904
Cancel search on escape
t3chguy 40f1583
Fix missing X
t3chguy 78e7e88
Improve coverage
t3chguy f9992d9
Extract SearchScope and SearchInfo into Searching
t3chguy a62daf0
delint
t3chguy b545979
delint
t3chguy 9950fb2
Fix test
t3chguy 61d2593
Merge branch 't3chguy/extract-searching' of github.com:matrix-org/mat…
t3chguy b4dfa4f
Switch to icon button for cancel search
t3chguy d27b464
Iterate
t3chguy ecbfff6
yarn.lock
t3chguy f6926fd
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy 92fcbf1
Iterate
t3chguy 5cd59bd
lint
t3chguy 8446009
Iterate
t3chguy f925d30
Iterate
t3chguy 351e206
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy f60c443
Update screenshots
t3chguy 6842bc9
i18n
t3chguy c5fd194
Update screenshots
t3chguy 3d7baef
Update screenshots
t3chguy 25e38f5
Update locators
t3chguy 4466f2f
Revert screenshots
t3chguy 52cdced
Update screenshots
t3chguy 4985300
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy 39d2674
Update snapshots
t3chguy fb5fe4d
Discard changes to package.json
t3chguy 667da26
i18n
t3chguy 3a5aad0
Snapshots
t3chguy 773d891
Handle narrow viewports
t3chguy a028426
Iterate
t3chguy 5313665
Improve coverage
t3chguy aa7caeb
Improve coverage
t3chguy ba758b5
Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into…
t3chguy 7ef6f10
Iterate
t3chguy ec6d77e
Revert copy
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 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
Binary file modified
BIN
+2 KB
(110%)
...ht/snapshots/crypto/crypto.spec.ts/RoomSummaryCard-with-verified-e2ee-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.03 KB
(91%)
...pshots/invite/invite-dialog.spec.ts/invite-dialog-room-with-user-pill-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.56 KB
(91%)
...napshots/invite/invite-dialog.spec.ts/invite-dialog-room-without-user-linux.png
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the bg in the corners changes =( |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.72 KB
(110%)
...right/snapshots/right-panel/right-panel.spec.ts/with-name-and-address-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-828 Bytes
(95%)
...wright/snapshots/timeline/timeline.spec.ts/highlighted-search-results-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.56 KB
playwright/snapshots/timeline/timeline.spec.ts/search-aux-panel-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-5 KB
playwright/snapshots/timeline/timeline.spec.ts/search-bar-on-timeline-linux.png
Binary file not shown.
Binary file modified
BIN
-3.44 KB
(85%)
.../snapshots/timeline/timeline.spec.ts/search-results-with-TextualEvent-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
Copyright 2024 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_RoomSearchAuxPanel { | ||
/* use `min-height` rather than height, to allow room for the text to wrap if the window is narrow */ | ||
min-height: 84px; | ||
display: flex; | ||
align-items: center; | ||
border-color: var(--cpd-color-bg-canvas-default); | ||
border-style: solid; | ||
border-width: 1px 0; | ||
padding: var(--cpd-space-3x); | ||
box-sizing: border-box; | ||
gap: var(--cpd-space-2x); | ||
|
||
.mx_RoomSearchAuxPanel_summary { | ||
flex-grow: 1; | ||
display: inherit; /* flex */ | ||
gap: var(--cpd-space-2x); | ||
align-items: center; | ||
overflow: hidden; | ||
|
||
> svg { | ||
padding: var(--cpd-space-2x); | ||
border-radius: var(--cpd-space-2x); | ||
background-color: var(--cpd-color-bg-subtle-secondary); | ||
color: var(--cpd-color-icon-secondary); | ||
flex-shrink: 0; | ||
} | ||
|
||
.mx_RoomSearchAuxPanel_summary_text { | ||
display: flex; | ||
flex-direction: column; | ||
font-size: $font-15px; | ||
line-height: $font-22px; | ||
overflow: hidden; | ||
|
||
span { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
} | ||
|
||
.mx_SearchWarning { | ||
display: contents; | ||
font-size: $font-13px; | ||
line-height: $font-20px; | ||
color: var(--cpd-color-text-secondary); | ||
} | ||
} | ||
|
||
.mx_RoomSearchAuxPanel_buttons { | ||
display: inherit; /* flex */ | ||
gap: var(--cpd-space-6x); | ||
align-items: center; | ||
flex-shrink: 0; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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.
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 bg in the corners changes =(