Skip to content

Conversation

@AngadSudan
Copy link
Contributor

@AngadSudan AngadSudan commented Oct 15, 2025

Closes #29

Title: Refactor: Centralize Panel Name Definitions and Update Mapping

Description:

This pull request introduces a small but important refactor around how panel names are managed and displayed throughout the application.

Changes Made:

Added centralized constants for panel names (panelZero through panelSix) to improve maintainability and avoid hard-coded strings.

Updated the titles map to use the new panel name constants.

Ensured consistent labeling across all panels including Main, Status, Files, Branches, Commits, Stash, and Logs.

Minor fix to ensure ANSI escape codes are stripped properly using ansiRegex (already present, but included for clarity).

Why:

Improves readability and maintainability of panel name assignments.

Reduces the risk of typos and inconsistencies in panel naming across the codebase.

Makes it easier to update panel labels in the future by changing a single source of truth.

Please review and let me know if any naming conventions or panel mappings should be adjusted further.

@bakayu bakayu merged commit 5aad017 into gitxtui:master Oct 15, 2025
2 checks passed
@bakayu bakayu added the hacktoberfest-accepted This PR is accepted under the hacktoberfest challenge label Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted This PR is accepted under the hacktoberfest challenge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

REFACTOR - Refactor panel names

2 participants