feat(FN-2311): default dashboard TUI to system section

- Reorder dashboard TUI sections so System is tab [1] and the initial active view
- Update header rendering across wide, medium, and narrow terminal layouts to reflect the new tab order
- Expand dashboard TUI tests to assert system-first labels and default active section behavior
- Document system-first startup behavior in CLI reference and add a patch changeset for @runfusion/fusion
This commit is contained in:
Fusion
2026-04-23 10:33:56 -07:00
committed by gsxdsm
parent 187e5fccf0
commit 86fd24e1d0
6 changed files with 36 additions and 15 deletions

View File

@@ -236,6 +236,11 @@ export class FirstRunDetector {
* @returns Generated name
*/
async generateProjectName(projectPath: string): Promise<string> {
// Fast path: avoid invoking git for non-repositories (prevents unnecessary delays in tests/startup).
if (!existsSync(join(projectPath, ".git"))) {
return basename(projectPath);
}
// Try git remote first
try {
const { execFile } = await import("node:child_process");
@@ -245,7 +250,7 @@ export class FirstRunDetector {
const { stdout } = await execFileAsync(
"git",
["remote", "get-url", "origin"],
{ cwd: projectPath, timeout: 5000 }
{ cwd: projectPath, timeout: 1000 }
);
const remoteUrl = stdout.trim();