Skip to content

Conversation

@graycreate
Copy link
Member

Summary

  • Restore tag element background color and navigation in FeedItemView
  • Add tag navigation to RecentItemView (最近浏览)
  • Fix UserFeedPage tag crash by adding missing tagId parameter
  • Fix navbar title not updating when filter menu selection changes by moving TopBar outside TabView content
  • Unify tag styling across all list views

Test plan

  • Verify tag elements on feed list have background color and navigate to tag detail
  • Verify tag elements on 最近浏览 page work correctly
  • Verify 我的 → 主题 → click post no longer crashes
  • Verify filter menu selection updates navbar title immediately

🤖 Generated with Claude Code

- Restore tag element background color and navigation in FeedItemView
- Add tag navigation to RecentItemView (最近浏览)
- Fix UserFeedPage tag crash by adding missing tagId parameter
- Fix navbar title not updating when filter menu selection changes
  by moving TopBar outside TabView content
- Unify tag styling across all list views

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings December 1, 2025 14:50
@github-actions github-actions bot added the size/M label Dec 1, 2025
@graycreate graycreate merged commit 8bbd843 into main Dec 1, 2025
11 checks passed
@graycreate graycreate deleted the bugfix/feed-item-tag-navigation branch December 1, 2025 14:54
Copy link

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 addresses tag navigation functionality and fixes a navbar title update issue in the V2er iOS app. The changes restore tag element interactivity and styling while solving a SwiftUI reactivity problem.

Key Changes:

  • Moved TopBar outside TabView in MainPage to ensure immediate UI updates when filter selection changes
  • Added tag navigation to all feed list views (FeedItemView, RecentItemView, UserFeedPage) by wrapping tag elements in NavigationLink
  • Fixed crash in UserFeedPage by adding missing tagId parameter to TagDetailPage navigation
  • Unified tag styling across all list views with consistent colors, padding, and dark mode support

Reviewed changes

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

Show a summary per file
File Description
V2er/View/Widget/TopBar.swift Added explicit feedFilterTab parameter to trigger SwiftUI re-rendering when filter changes; updated title computation logic and preview
V2er/View/MainPage.swift Moved TopBar outside TabView into a VStack wrapper to ensure immediate reactivity; removed obsolete pageWithTopBar helper function
V2er/View/Feed/FeedItemView.swift Wrapped tag text in NavigationLink with tagId parameter; applied unified styling with background color and proper padding
V2er/View/Me/MyRecentPage.swift Added NavigationLink for tag navigation in RecentItemView; applied unified tag styling consistent with other views
V2er/View/Me/UserFeedPage.swift Fixed crash by adding missing tagId parameter to TagDetailPage; applied unified tag styling

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

Code Coverage Report ❌

Current coverage: 27.85%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants