MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / compose

Method compose

keepercommander/commands/supershell/app.py:288–319  ·  view source on GitHub ↗

Create the application layout

(self)

Source from the content-addressed store, hash-verified

286 self.push_screen(PreferencesScreen(self))
287
288 def compose(self) -> ComposeResult:
289 """Create the application layout"""
290 # Search bar at top (initially hidden)
291 with Horizontal(id="search_bar"):
292 yield Static("", id="search_display")
293 yield Static("", id="search_results_label")
294 yield Static("", id="user_info", classes="clickable-info")
295 yield Static("", id="device_status_info", classes="clickable-info")
296
297 # Content area wrapper - allows shell pane visibility control
298 with Vertical(id="content_area"):
299 with Horizontal(id="main_container"):
300 with Vertical(id="folder_panel"):
301 yield Tree("[#00ff00]● My Vault[/#00ff00]", id="folder_tree")
302 with Vertical(id="record_panel"):
303 with VerticalScroll(id="record_detail"):
304 yield Static("", id="detail_content")
305 # Fixed footer for shortcuts
306 yield Static("", id="shortcuts_bar")
307
308 # Shell pane - hidden by default, shown when :command or Ctrl+\ pressed
309 with Vertical(id="shell_pane"):
310 yield Static("", id="shell_header")
311 # AutoCopyTextArea auto-copies selected text on mouse release
312 yield AutoCopyTextArea("", id="shell_output_content", read_only=True, classes=f"theme-{self.color_theme}")
313 # Shell input line with prompt and TextArea
314 with Horizontal(id="shell_input_container"):
315 yield Static("❯ ", id="shell_prompt")
316 yield ShellInputTextArea(self, "", id="shell_input_area")
317
318 # Status bar at very bottom
319 yield Static("", id="status_bar")
320
321 async def on_mount(self):
322 """Initialize the application when mounted"""

Callers

nothing calls this directly

Calls 2

AutoCopyTextAreaClass · 0.85
ShellInputTextAreaClass · 0.85

Tested by

no test coverage detected