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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user