~ knotless Search/
↑↓ move↵ open⇧↵ all results

geesawra.industries/old-fella

Old people's social media app

0
1

fix(posts): investigate and fix post card touch targets

Closed
Closed geesawra.industries opened this issue 0 comments

Investigate and fix touch targets in post cards. A touch target is the area that responds to a tap.

Reported behavior:

  • Posts with images and no text have no usable target for opening the post detail.
  • For posts with text, only taps directly on the text open the post. The target follows the text horizontally and vertically.
  • The author profile target is too large. Tapping empty space in the author header opens the profile.
  • Empty space between action buttons does not open the post.

Expected behavior:

  • Tapping space in a post card that belongs to no other control opens that post inside Old Fella.
  • This includes space beside and around the text, gaps between content sections, and padding inside the card.
  • This includes gaps between like, repost, reply, and quote buttons, and the gap before share and post controls.
  • Posts with images and no text remain easy to open through the surrounding card space.
  • Only the avatar, display name, and handle open the author profile. Their targets retain accessible padding without covering the header container.
  • Empty space in the author header opens the post rather than the profile.
  • Media, links, mentions, quoted posts, and action buttons keep their existing behavior. A tap on one never also opens the containing post.
  • Scrolling remains smooth and does not trigger navigation. Moderation continues to prevent access to hidden content.

Initial code evidence:

  • PostText.swift omits the text view when text is empty. Ordinary text uses links that open the containing post.
  • PostRow.swift and PostListItem.swift do not provide a fallback tap target for the card background.
  • PostAuthorHeader.swift wraps the full header in one profile button, including its flexible space and timestamp.
  • PostActions.swift contains gaps and a Spacer between controls without a post navigation target.

These findings support the report. Reproduce the behavior in the running app before choosing the fix. Review shared post cards in feeds, profiles, search results, notifications, and reply threads where they appear. Avoid adding duplicate navigation when a post is already open in detail.

Acceptance criteria:

  • Add deterministic UI coverage for posts with images and no text, short text, and multiline text.
  • Test taps beside text, below text, between sections, between action buttons, and in the empty author header space.
  • Make sure that each background tap opens the correct post exactly once.
  • Make sure that avatar, name, and handle taps open the profile, while adjacent empty space opens the post.
  • Make sure that media, links, quoted posts, and action buttons keep their own behavior without opening the containing post.
  • Review Dynamic Type and VoiceOver behavior. Preserve usable control sizes and a clear way to open posts without text.
  • Use predictable test responses without live Bluesky credentials or network access.