Skip to content

fix(collections): TV rail titles are labels, not controls - #290

Merged
ghbarker merged 1 commit into
feature/post-refactorfrom
fix/collection-row-titles-not-selectable
Sep 8, 2026
Merged

ghbarker merged 1 commit into
feature/post-refactorfrom
fix/collection-row-titles-not-selectable

Conversation

@ghbarker

@ghbarker ghbarker commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • A collection folder rail's header was pressable on TV — SELECT opened the list's full catalog browse — but no Home board row works that way; a row's name there is a plain label.
  • Made RailHeaderFocus.onPressed nullable and pass null on TV, so the header stays a DPAD stop (still walks up to the rail above / down into its cards) but does nothing on SELECT or tap. Off TV, the tap-to-browse affordance a list title has always had is unchanged.

Test plan

  • New regression test — fails to compile against the pre-fix code (onPressed was required, non-nullable), passes after; covers both the TV (inert) and off-TV (still opens) cases
  • New unit test on RailHeaderFocus pinning that a null onPressed makes SELECT/tap no-ops while the DPAD ladder keeps working
  • Existing rail_header_focus_test.dart / collection_folder_screen_test.dart / board_shelf_row_test.dart all still pass
  • flutter analyze clean on changed files

A collection folder rail's header was pressable on TV — SELECT opened
the list's full catalog browse — but no Home board row works that way;
a row's name there is a plain label. Made RailHeaderFocus.onPressed
nullable and pass null on TV, so the header stays a DPAD stop (still
walks up to the rail above / down into its cards) but does nothing on
SELECT or tap. Off TV, the tap-to-browse affordance a list title has
always had is unchanged.

Added a regression test that fails to compile against the pre-fix code
(onPressed was required, non-nullable) and passes after, covering both
the TV (inert) and off-TV (still opens) cases, plus a unit test on
RailHeaderFocus itself pinning that a null onPressed makes SELECT and
tap no-ops while the DPAD ladder keeps working.
@ghbarker
ghbarker merged commit 4328822 into feature/post-refactor Sep 8, 2026
3 checks passed
@ghbarker
ghbarker deleted the fix/collection-row-titles-not-selectable branch September 8, 2026 07:26
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.

1 participant