feat: Implement ProposalDrawer for managing agent proposals with UI controls

This commit is contained in:
scawful
2025-10-01 19:38:08 -04:00
parent 02c6985201
commit 0b62bcbda0
9 changed files with 525 additions and 3 deletions

View File

@@ -700,6 +700,15 @@ void EditorManager::Initialize(const std::string& filename) {
[&]() { show_asm_editor_ = true; }},
{absl::StrCat(ICON_MD_SETTINGS, " Feature Flags"), "",
[&]() { popup_manager_->Show("Feature Flags"); }},
{gui::kSeparator, "", nullptr, []() { return true; }},
// Agent Proposals
{absl::StrCat(ICON_MD_PREVIEW, " Agent Proposals"), "",
[&]() { proposal_drawer_.Toggle(); }},
{gui::kSeparator, "", nullptr, []() { return true; }},
{absl::StrCat(ICON_MD_PALETTE, " Graphics Debugging"), "", []() {}, []() { return true; },
std::vector<gui::MenuItem>{
{absl::StrCat(ICON_MD_REFRESH, " Clear Graphics Cache"), "",
@@ -1136,6 +1145,9 @@ void EditorManager::DrawMenuBar() {
}
#endif
// Agent proposal drawer
proposal_drawer_.Draw();
// Welcome screen (accessible from View menu)
if (show_welcome_screen_) {
DrawWelcomeScreen();