fix(gallery): resolve excess pagination dots and hide inherited point images in point categories (issue #125) #130

Merged
amit merged 4 commits from fix/issue-125-pagination-dots into main 2026-11-19 04:55:48 +00:00
Member

Summary

Resolves Issue #125: Excess Pagination Dots Displayed When Only One or Two Images Are Available in Point Categories.

Changes

  1. categoryParts.tsx:
    • Only render visual reference media if the category explicitly defines direct images (data.images, data.default_image) or has direct primary media assigned to the category.
    • Do not display inherited point location images for aggregate point categories. Users can view each point's anatomical location diagram by tapping the corresponding point chip.
  2. ContentMediaGallery.tsx:
    • Capped visible pagination dots to a sliding window (max 7 dots) with no line wrap.
    • Only show pagination dots when items.length > 1.
    • Added robust onScrollToIndexFailed and safe scrolling.

Closes #125

## Summary Resolves Issue #125: Excess Pagination Dots Displayed When Only One or Two Images Are Available in Point Categories. ### Changes 1. **categoryParts.tsx**: - Only render visual reference media if the category explicitly defines direct images (`data.images`, `data.default_image`) or has direct `primary` media assigned to the category. - Do not display inherited point location images for aggregate point categories. Users can view each point's anatomical location diagram by tapping the corresponding point chip. 2. **ContentMediaGallery.tsx**: - Capped visible pagination dots to a sliding window (max 7 dots) with no line wrap. - Only show pagination dots when `items.length > 1`. - Added robust `onScrollToIndexFailed` and safe scrolling. Closes #125
shivani added 4 commits 2026-11-18 07:31:25 +00:00
amit approved these changes 2026-11-19 04:55:38 +00:00
amit left a comment
Owner

Approved

Approved
amit merged commit eee01a5211 into main 2026-11-19 04:55:48 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AcuPedia/acupedia-mobile-ui#130
No description provided.