Skip to content

refactor: dismantle build_ui monolith into modular components and App…#131

Merged
Cleboost merged 1 commit into
masterfrom
refactor/ui-modularization
May 10, 2026
Merged

refactor: dismantle build_ui monolith into modular components and App…#131
Cleboost merged 1 commit into
masterfrom
refactor/ui-modularization

Conversation

@Cleboost
Copy link
Copy Markdown
Owner

This pull request introduces three new UI components—Sidebar, Header, and Settings—and integrates them into the application's UI module. These components are designed using GTK4 and encapsulate distinct parts of the interface, making the codebase more modular and maintainable.

New UI Components:

  • Added a Sidebar component with navigation buttons for servers, keys, and settings, using symbolic icons and a vertical layout (src/ui/components/sidebar.rs).
  • Added a Header component with a header bar and an "add" button, styled for prominence (src/ui/components/header.rs).
  • Added a Settings component, providing a detailed settings UI for terminal font, scrollback lines, monitor refresh rate, and tab close confirmation, with live config saving (src/ui/components/settings.rs).

Module Integration:

  • Exposed the new UI components by adding them to the components module and updating the main UI module to include components (src/ui/components/mod.rs, src/ui/mod.rs). [1] [2]…Window struct

@Cleboost Cleboost merged commit ce53b03 into master May 10, 2026
1 check passed
@Cleboost Cleboost deleted the refactor/ui-modularization branch May 10, 2026 23: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