feat(ops): Consolidate usage analytics into Operations Hub with popout option
This commit is contained in:
13
scripts/tasks/popout_usage.toml
Normal file
13
scripts/tasks/popout_usage.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
prompt = """
|
||||
In src/gui_2.py:
|
||||
1. In '__init__', initialize 'self.ui_separate_usage_analytics = gui_cfg.get("separate_usage_analytics", False)'.
|
||||
2. Implement 'App._render_usage_analytics_panel(self)':
|
||||
- Call '_render_token_budget_panel()' (optionally inside a collapsing header if you want, but user asked to consolidate headers).
|
||||
- Call '_render_tool_analytics_panel()'.
|
||||
- Call '_render_session_insights_panel()'.
|
||||
3. In '_gui_func', remove the original calls to these three panels from the 'AI Settings' block (around line 410).
|
||||
4. In '_gui_func', add logic to render the standalone 'Usage Analytics' window if 'self.ui_separate_usage_analytics' and 'self.show_windows.get("Usage Analytics", False)' are true.
|
||||
5. In 'Operations Hub' rendering (around line 530), add a 'Pop Out Usage Analytics' checkbox. If changed, update 'self.show_windows["Usage Analytics"]'.
|
||||
6. In 'Operations Hub' tab bar, add a 'Usage Analytics' tab that calls '_render_usage_analytics_panel()' if 'not self.ui_separate_usage_analytics'.
|
||||
Use 1-space indentation.
|
||||
"""
|
||||
Reference in New Issue
Block a user