Skip to content

Improve timetable talkback feedback#609

Merged
kilalabu merged 6 commits intoDroidKaigi:mainfrom
NUmeroAndDev:improve_timetable_talkback_response
Sep 9, 2025
Merged

Improve timetable talkback feedback#609
kilalabu merged 6 commits intoDroidKaigi:mainfrom
NUmeroAndDev:improve_timetable_talkback_response

Conversation

@NUmeroAndDev
Copy link
Contributor

@NUmeroAndDev NUmeroAndDev commented Sep 8, 2025

Issue

Overview (Required)

  • I resolved todo comment marked at [Proposal]More material expressive #525.
  • Improved the navigation of Talkback in the Timetable list for Custom actions.
  • Grouped time display and improved focus with Talkback.

Links

Screenshot (Optional if screenshot test is present or unrelated to UI)

Before After

Movie (Optional)

Before After
Screen_recording_20250908_215143.mp4
Screen_recording_20250908_215036.mp4

<string name="error_occurred">エラー...</string>
<string name="retry">再試行</string>
<string name="add_to_bookmark">ブックマークに登録</string>
<string name="remove_from_bookmark">ブックマークを削除</string>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same wording is found here, Would it be better to make it publicResClass = false and make it common?

<string name="add_to_bookmark">ブックマークに登録</string>
<string name="remove_from_bookmark">ブックマークを削除</string>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that sounds like a good idea. Could you please make it common?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to implemented at 50ec935 .
Could you please check this? 🙏

@NUmeroAndDev NUmeroAndDev marked this pull request as ready for review September 8, 2025 13:39
Copilot AI review requested due to automatic review settings September 8, 2025 13:39
@NUmeroAndDev NUmeroAndDev requested a review from a team as a code owner September 8, 2025 13:39
@NUmeroAndDev NUmeroAndDev requested review from kilalabu and removed request for a team September 8, 2025 13:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves accessibility support for TalkBack users in the timetable screen by implementing custom accessibility actions for bookmark functionality and enhancing time slot navigation.

  • Replaced direct bookmark button clicks with custom accessibility actions for better screen reader support
  • Added semantic grouping for time display elements with clear heading indicators
  • Updated string resources to provide more descriptive bookmark action labels

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
FavoritesScreenRobot.kt Updated test to use custom accessibility action instead of direct button click
TimetableItemCard.kt Added custom accessibility actions for bookmark functionality and cleared button semantics
TimetableTimeSlot.kt Enhanced time slot accessibility with semantic grouping and heading indicators
strings.xml (English) Replaced generic bookmark status strings with action-oriented labels
strings.xml (Japanese) Updated Japanese translations for bookmark actions

Comment on lines +54 to +59
import io.github.droidkaigi.confsched.droidkaigiui.add_to_bookmark
import io.github.droidkaigi.confsched.droidkaigiui.component.OutlinedToolTip
import io.github.droidkaigi.confsched.droidkaigiui.component.RoomToolTip
import io.github.droidkaigi.confsched.droidkaigiui.extension.icon
import io.github.droidkaigi.confsched.droidkaigiui.extension.roomTheme
import io.github.droidkaigi.confsched.droidkaigiui.not_bookmarked
import io.github.droidkaigi.confsched.droidkaigiui.remove_from_bookmark
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import statements reference string resources incorrectly. String resources should be accessed via DroidkaigiuiRes.string.add_to_bookmark and DroidkaigiuiRes.string.remove_from_bookmark, not as direct imports.

Copilot uses AI. Check for mistakes.
import io.github.droidkaigi.confsched.droidkaigiui.extension.icon
import io.github.droidkaigi.confsched.droidkaigiui.extension.roomTheme
import io.github.droidkaigi.confsched.droidkaigiui.not_bookmarked
import io.github.droidkaigi.confsched.droidkaigiui.remove_from_bookmark
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The import statements reference string resources incorrectly. String resources should be accessed via DroidkaigiuiRes.string.add_to_bookmark and DroidkaigiuiRes.string.remove_from_bookmark, not as direct imports.

Copilot uses AI. Check for mistakes.
composeUiTest.onAllNodes(hasTestTag(TimetableItemCardTestTag))
.onFirst()
.performClick()
.performCustomAccessibilityActionWithLabel("Remove from Bookmarks")
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hardcoded string 'Remove from Bookmarks' should be extracted to a constant or use the same string resource to ensure consistency with the UI labels and support for localization.

Copilot uses AI. Check for mistakes.
@NUmeroAndDev NUmeroAndDev changed the title Improve timetable talkback response Improve timetable talkback feedback Sep 9, 2025
Copy link
Contributor

@kilalabu kilalabu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution and for focusing on accessibility!

<string name="error_occurred">エラー...</string>
<string name="retry">再試行</string>
<string name="add_to_bookmark">ブックマークに登録</string>
<string name="remove_from_bookmark">ブックマークを削除</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that sounds like a good idea. Could you please make it common?

@github-actions
Copy link

github-actions bot commented Sep 9, 2025

Snapshot diff report

File name Image
TimetableScreenPrevi
ew_Grid_compare.png

@NUmeroAndDev
Copy link
Contributor Author

There's a similar diff here. 🤔

Copy link
Contributor

@kilalabu kilalabu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice. Thank you !!

@kilalabu kilalabu added this pull request to the merge queue Sep 9, 2025
Merged via the queue into DroidKaigi:main with commit f697460 Sep 9, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants