jerboa icon indicating copy to clipboard operation
jerboa copied to clipboard

Add contentDescription to all relevant components

Open pipe01 opened this issue 1 year ago • 11 comments

Hopefully I didn't miss anything. There are still some components with contentDescription = null because they don't represent anything by themselves and/or don't have any actions, for example the icons in settings menu items.

Fixes #175.

pipe01 avatar Jun 09 '23 02:06 pipe01

This will have to come after https://github.com/dessalines/jerboa/pull/447 so you'll probably have to merge from therei

dessalines avatar Jun 09 '23 02:06 dessalines

Some of the strings seem a bit wordy. For the bottomBar may i suggest "Home" "Communities" "Notifications" "Bookmarks" and "Profile"?

Otherwise this looks fantastic

Edit: the personProfile_viewAvatar and personProfile_viewBanner should likely say " Avatar image" and "Banner image" unless i am misunderstanding and they are buttons.

shortwavesurfer2009 avatar Jun 09 '23 09:06 shortwavesurfer2009

#447 is merged now, so you can merge from main.

I'll make sure to grep for all those contentDescriptions to make sure we've got them all before I approve.

dessalines avatar Jun 09 '23 19:06 dessalines

There are some conflicts where #447 adds a specific key and I have added a more generic one (e.g. create_report_back vs goBack), which should I keep?

Also for @shortwavesurfer2009's comment, I'm not sure which way would be best so it's up to @dessalines.

pipe01 avatar Jun 09 '23 19:06 pipe01

the personProfile_viewAvatar and personProfile_viewBanner should likely say " Avatar image" and "Banner image" unless i am misunderstanding and they are buttons

They open up the image in the image viewer when pressed, so they kinda are buttons.

pipe01 avatar Jun 09 '23 19:06 pipe01

goBack is probably fine.

They open up the image in the image viewer when pressed, so they kinda are buttons.

I'm good either way, I don't know if there's a convention for image buttons, but the word button seems fine.

I imagine most of the strings already exist in strings.xml, so only create new ones if its really necessary. I leave the rest up to you.

dessalines avatar Jun 09 '23 19:06 dessalines

Should be good now.

pipe01 avatar Jun 09 '23 20:06 pipe01

Most of them are set to null on purpose, I'm thinking of adding some constant that's set to null to indicate that it's unnecessary.

pipe01 avatar Jun 10 '23 19:06 pipe01

Is there anything blocking this?

pipe01 avatar Jun 12 '23 02:06 pipe01

@pipe01 If you can fix the merge conflicts I'll merge it right away

twizmwazin avatar Jun 12 '23 03:06 twizmwazin

Done

pipe01 avatar Jun 12 '23 17:06 pipe01