docs: fix orphaned JSDoc — move showNewSessionInput comment above its function

This commit is contained in:
Brian Krabach
2026-03-30 02:07:15 -07:00
parent 5b971a0ecc
commit 1af141a294
+8 -8
View File
@@ -1284,14 +1284,6 @@ function updateSessionPill(sessions) {
// ─── Header + button with inline name input ──────────────────────────────────── // ─── Header + button with inline name input ────────────────────────────────────
/**
* Replace the header + button with an inline text input for session naming.
* Hides the button, inserts the input before it, and focuses it.
* On Enter: if name is non-empty after trim, calls createNewSession(name).
* On Escape: restores the button (cleanup only).
* On blur: delayed cleanup (150ms) to allow click handlers.
* @param {HTMLElement} btn - The button element to replace temporarily.
*/
/** /**
* Create a new session name input element with shared base configuration. * Create a new session name input element with shared base configuration.
* Used by both showNewSessionInput (inline) and showFabSessionInput (overlay) * Used by both showNewSessionInput (inline) and showFabSessionInput (overlay)
@@ -1308,6 +1300,14 @@ function _createSessionInput() {
return input; return input;
} }
/**
* Replace the header + button with an inline text input for session naming.
* Hides the button, inserts the input before it, and focuses it.
* On Enter: if name is non-empty after trim, calls createNewSession(name).
* On Escape: restores the button (cleanup only).
* On blur: delayed cleanup (150ms) to allow click handlers.
* @param {HTMLElement} btn - The button element to replace temporarily.
*/
function showNewSessionInput(btn) { function showNewSessionInput(btn) {
const input = _createSessionInput(); const input = _createSessionInput();