1#ifndef YAZE_APP_EDITOR_AGENT_AGENT_PROPOSALS_PANEL_H_
2#define YAZE_APP_EDITOR_AGENT_AGENT_PROPOSALS_PANEL_H_
7#include "absl/status/status.h"
61 void Draw(
float available_height = 0.0f);
123 std::vector<cli::ProposalRegistry::ProposalMetadata>
proposals_;
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
Compact proposal management panel for agent sidebar.
std::string selected_proposal_id_
std::string confirm_action_
void SetToastManager(ToastManager *toast_manager)
Set toast manager for notifications.
int GetPendingCount() const
Get count of pending proposals.
~AgentProposalsPanel()=default
void SelectProposal(const std::string &proposal_id)
bool IsCompactMode() const
const char * GetStatusIcon(cli::ProposalRegistry::ProposalStatus status) const
void DrawProposalRow(const cli::ProposalRegistry::ProposalMetadata &proposal)
ProposalCallbacks proposal_callbacks_
void DrawProposalList()
Draw just the proposal list (for custom layouts)
bool show_confirm_dialog_
void SetRom(Rom *rom)
Set ROM reference for proposal merging.
void SetCompactMode(bool compact)
Set compact mode for sidebar usage.
void Draw(float available_height=0.0f)
Draw the complete proposals panel.
absl::Status DeleteProposal(const std::string &proposal_id)
std::string diff_content_
ImVec4 GetStatusColor(cli::ProposalRegistry::ProposalStatus status) const
void SetContext(AgentUIContext *context)
Set the shared UI context.
std::vector< cli::ProposalRegistry::ProposalMetadata > proposals_
void FocusProposal(const std::string &proposal_id)
Focus a specific proposal by ID.
void DrawProposalDetail()
Draw the detail view for selected proposal.
const cli::ProposalRegistry::ProposalMetadata * selected_proposal_
void DrawQuickActions(const cli::ProposalRegistry::ProposalMetadata &proposal)
absl::Status AcceptProposal(const std::string &proposal_id)
AgentUIContext * context_
std::string confirm_proposal_id_
ToastManager * toast_manager_
absl::Status RejectProposal(const std::string &proposal_id)
int GetTotalCount() const
Get total proposal count.
void SetProposalCallbacks(const ProposalCallbacks &callbacks)
Set proposal callbacks.
void RefreshProposals()
Refresh the proposal list from registry.
Unified context for agent UI components.
Callbacks for proposal operations.