Skip to content

Show tags on file info page - #81

Merged
raluaces merged 1 commit into
mainfrom
feat/tag-visibility-file-info
Jul 8, 2026
Merged

Show tags on file info page#81
raluaces merged 1 commit into
mainfrom
feat/tag-visibility-file-info

Conversation

@raluaces

@raluaces raluaces commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds a Tags section to PreviewFileInfo (Views/Preview/Info.swift), displayed between the GPS/map section and the Albums section
  • Renders each tag as a horizontal-scrolling capsule pill, identical in style to the existing Albums chips (background(.tint.opacity(0.12), in: Capsule()))
  • No async fetch required — tags are already decoded as [String] on DFFile, unlike albums which are [Int] IDs that need a separate API call
  • Section is hidden when file.tags is empty, matching albums behaviour

Test plan

  • Open a file that has one or more tags — Tags section appears above Albums with capsule pills
  • Open a file with no tags — Tags section is absent
  • Tags with long names truncate to one line and the row scrolls horizontally
  • Tint colour applies correctly in both light and dark mode

Mirrors the existing albums chip display: horizontal scrolling capsule
pills under a "Tags" label, shown only when the file has tags.
@raluaces
raluaces merged commit a962cbd into main Jul 8, 2026
1 check passed
@raluaces
raluaces deleted the feat/tag-visibility-file-info branch July 8, 2026 22:21
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