New left pane search design

This commit is contained in:
Josh Perez 2022-01-27 17:12:26 -05:00 committed by GitHub
parent babd61377b
commit bf45182a39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 500 additions and 359 deletions

View file

@ -1,4 +1,4 @@
// Copyright 2019-2021 Signal Messenger, LLC
// Copyright 2019-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { assert } from 'chai';
@ -39,7 +39,6 @@ import {
getNumberOfMessagesPendingBecauseOfVerification,
getPlaceholderContact,
getRecommendedGroupSizeModalState,
getSelectedConversation,
getSelectedConversationId,
hasGroupCreationError,
isCreatingGroup,
@ -1744,36 +1743,6 @@ describe('both/state/selectors/conversations', () => {
});
});
describe('#getSelectedConversation', () => {
it('returns undefined if no conversation is selected', () => {
const state = {
...getEmptyRootState(),
conversations: {
...getEmptyState(),
conversationLookup: {
abc123: makeConversation('abc123'),
},
},
};
assert.isUndefined(getSelectedConversation(state));
});
it('returns the selected conversation', () => {
const conversation = makeConversation('abc123');
const state = {
...getEmptyRootState(),
conversations: {
...getEmptyState(),
conversationLookup: {
abc123: conversation,
},
selectedConversationId: 'abc123',
},
};
assert.strictEqual(getSelectedConversation(state), conversation);
});
});
describe('#getContactNameColorSelector', () => {
it('returns the right color order sorted by UUID ASC', () => {
const group = makeConversation('group');