Skip to content

Conversation

@ainergiz
Copy link
Owner

Summary

Refactor Header component to be more modular and reusable by removing its dependency on the app-specific View type. Header now accepts generic props (title, subtitle, badge, leftContent, rightContent) instead of view-specific parameters.

Changes

  • Header no longer imports or depends on View type
  • Moved view-specific label generation logic to app.tsx helpers
  • Updated Header usage in app.tsx to compute and pass generic props
  • Component can now be reused in new contexts without modification

Fixes #166

Co-Authored-By: Claude Haiku 4.5 noreply@anthropic.com

Refactor Header to be more modular and reusable by removing dependency on the app-specific View type. Header now accepts generic props (title, subtitle, badge, leftContent, rightContent) instead of view-specific parameters. Label generation logic moved to app.tsx. Fixes #166.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@ainergiz ainergiz merged commit 0aaa613 into main Jan 22, 2026
4 checks passed
@ainergiz ainergiz deleted the ainergiz/columbia-v3 branch January 22, 2026 07:44
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.

refactor(header): Decouple Header component from View type

2 participants