zulip-mobile icon indicating copy to clipboard operation
zulip-mobile copied to clipboard

Improve search bar UI in stream topic view

Open alya opened this issue 4 years ago • 13 comments
trafficstars

We should make a couple of small improvements to the search bar for topics in the stream topic view:

  1. Change the placeholder text to "Search topics" for clarity.
  2. Bump up the contrast on the placeholder text, which is quite difficult to see right now

alya avatar Oct 07 '21 18:10 alya

Hi @natalson, Sorry I didn't notice your comment and I worked on the first part of this issue, you can work on the second part and if you need any help please ask. One more thing, don't wait until someone assigns you, claim the issue and start working on it. Again I'm sorry, I should have checked the comment section before working on this.

AlaaElden98 avatar Oct 07 '21 20:10 AlaaElden98

Is there any way ,i can work on this issue?

anishwar-007 avatar Oct 07 '21 22:10 anishwar-007

I would like to try out this task.

Jumeb avatar Oct 10 '21 19:10 Jumeb

@alya

  1. Bump up the contrast on the placeholder text, which is quite difficult to see right now

I see that we use placeholderTextColor={HALF_COLOR} and HALF_COLOR = 'hsla(0, 0%, 50%, 0.5)'; I have 2 questions here : 1- Do we need to bump up the contrast on the placeholder text of all search placeholders, or only the one in the topic list? 2- By 'Bump up the contrast' do you mean to make it more obvious by increasing color darkness?

I have made some changes (see screenshots below), if this is what we want I will open a PR.

The original 3a75496c-7416-4135-8932-68011bac4ba5 Edit 1 : color = 'hsla(0, 0%, 50%, 0.75) cda6d70e-2575-4e6f-a1be-11230df74c7f Edit 2 : color = 'hsla(0, 0%, 50%, 1) 44b6dc18-78a3-4d91-8d26-5c58ad102a66

AlaaElden98 avatar Oct 20 '21 19:10 AlaaElden98

  1. Good question! I think it should be consistent with the placeholder in Search, and perhaps others are too low-contrast as well.
  2. Yes, for light mode. We'd go in the other direction for dark mode.

Could you please do the following?

  1. Post screenshots showing more of the surrounding context, and showing both light mode and dark mode.
  2. Do the above for all the placeholders you think we should consider changing.

The first edit or something around there seems promising, but it's hard to tell without being able to see more of the surrounding text. Thanks!

alya avatar Oct 20 '21 20:10 alya

1- The changes I made are within the Input component, this means that the placeholder for every place we use Input will change (Compose box, search input, user name, and password inputs, etc).

2 - Screenshots before and after the changes in most places we use Input :

  • Search - light mode

Dark mode

  • Search topics - light mode

Dark mode

  • Compose box

AlaaElden98 avatar Oct 21 '21 16:10 AlaaElden98

Awesome, this is super helpful @AlaaElden98 ! I think both of the new versions (light and dark) look pretty good in all the contexts above. Please ago ahead and submit a PR.

alya avatar Oct 21 '21 17:10 alya

@alya Can you assign me this issue ?

ArchitJain1201 avatar Jan 12 '22 12:01 ArchitJain1201

@alya can you assign this issue to me

rutujapate avatar Oct 21 '22 08:10 rutujapate

@rutujapate Please start by reviewing the attached PR and commenting on whether it looks good or if any changes should be made.

alya avatar Oct 21 '22 17:10 alya

Hello I want to contribute in this issue, but I am having a issue while trying to do yarn install it says

$ bash tools/postinstall
node_modules/.bin/jetify: 12: node: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Can you suggest how to fix this? I have also tried yarn install --force but result was same

aritroCoder avatar Dec 04 '22 15:12 aritroCoder

@aritroCoder Please ask for help in the #mobile-team stream in the Zulip development community.

alya avatar Dec 07 '22 06:12 alya

@alya is this issue still open..... If's yes I would like to work on it.

codewithbharat avatar Jan 30 '23 11:01 codewithbharat