Skip to content

refactor(tui): Major restructuring#55

Closed
Udayan853 wants to merge 4 commits intointerpretive-systems:mainfrom
Udayan853:refactor/better-file-structure
Closed

refactor(tui): Major restructuring#55
Udayan853 wants to merge 4 commits intointerpretive-systems:mainfrom
Udayan853:refactor/better-file-structure

Conversation

@Udayan853
Copy link
Contributor

@Udayan853 Udayan853 commented Oct 2, 2025

  • Moved wizards to a seperate package
  • Introduced Wizard interface for consistency
  • Refactored the key press management into keys.go with action constants
  • Extracted UI components to internal/tui/components
  • Added commands.go to unify gitx function calls
  • Moved the search functionality to a new search package
  • Moved theme to a different package to avoid circular dependencies

Summary

This PR modularizes program.go and related functionality to enhance readability, maintainability, and logical separation of concerns.

I have tested the functionality end-to-end, but since this is a major refactor, it will benefit from a thorough review.
Note: unit tests will need to be rewritten to reflect the new structure.

Linked Issue(s)

Significant Progress on #18

Checklist

  • I am assigned to the linked issue(s)
  • I wrote tests or updated existing tests
  • I ran go build and go test ./...
  • I updated docs/README if needed

- Moved wizards to a seperate package
- Introduced `Wizard` interface for consistency
- Refactored the key press management into `keys.go` with action
  constants
- Extracted UI components to `internal/tui/components`
- Added `commands.go` to unify gitx function calls
- Moved the search functionality to a new `search` package
- Moved theme to a different package to avoid circular dependencies
@Udayan853 Udayan853 marked this pull request as ready for review October 3, 2025 03:30
@aritradevelops aritradevelops mentioned this pull request Oct 3, 2025
4 tasks
- Refactored fix to account for latest file structure changes
- Refactored `program_test.go` to account for file structure changes
@kubeden
Copy link
Contributor

kubeden commented Oct 8, 2025

Let's handle this differently after Hacktoberfest since right now there a lot of changes going on and this will require me to do a lot of checks before merging. Feel free to pick a simpler issue from the issues list

@kubeden kubeden closed this Oct 8, 2025
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.

2 participants