Skip to content

Commit ec4e540

Browse files
committed
refactor(ui): implement table-based navigation and responsive layout
This major UI overhaul introduces a modern table-based navigation system and responsive layout, setting the foundation for future UI/UX improvements. Key changes: - Replace text-based navigation with Bubble Tea table component - Add responsive frame and content layout with dynamic sizing - Implement consistent table-based selection across all views - Add proper state management for cursor and selection handling - Improve loading states with custom messages and spinners - Enhance back navigation with proper state cleanup - Implement modern styling with Lipgloss borders and colors Technical improvements: - Move Category type to domain package for better organization - Add table component initialization and styling - Implement row-based selection handlers - Add dynamic table updates based on current step - Clean up provider descriptions for future integrations This change builds upon recent improvements: - Integrates with the new loading spinner system - Enhances the category selection UI - Complements the vim-style navigation - Maintains all existing functionality while modernizing the interface The new table-based UI provides a solid foundation for: - Easier addition of new views and workflows - Consistent selection behavior across all steps - Better visual hierarchy and state management - Future UI/UX improvements and customizations
1 parent 0455878 commit ec4e540

File tree

5 files changed

+626
-414
lines changed

5 files changed

+626
-414
lines changed

internal/domain/provider.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ type Service struct {
1818
Available bool
1919
}
2020

21+
// Category represents a group of related operations within a service
22+
type Category struct {
23+
ID string
24+
Name string
25+
Description string
26+
Available bool
27+
}
28+
2129
// Operation represents an action that can be performed on a service
2230
type Operation struct {
2331
ID string
@@ -53,13 +61,13 @@ var DefaultProviders = []Provider{
5361
{
5462
ID: "azure",
5563
Name: "Microsoft Azure",
56-
Description: "Azure Cloud Platform (Coming Soon)",
64+
Description: "Azure Cloud Platform",
5765
Available: false,
5866
},
5967
{
6068
ID: "gcp",
6169
Name: "Google Cloud Platform",
62-
Description: "Google Cloud Services (Coming Soon)",
70+
Description: "Google Cloud Services",
6371
Available: false,
6472
},
6573
}

0 commit comments

Comments
 (0)