aboutsummaryrefslogtreecommitdiffstats
path: root/ui/src/state/models.ts
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2024-07-23 13:18:54 +0100
committerGitHub <noreply@github.com>2024-07-23 13:18:54 +0100
commitf8c963c7d668fc57680f25413f20bc207d4bf64a (patch)
treec7f952ddc0220cded24f5447d03b3bff46fb1d45 /ui/src/state/models.ts
parentfix(themes): Restore default theme, refactor (#2294) (diff)
downloadatuin-f8c963c7d668fc57680f25413f20bc207d4bf64a.zip
feat(gui): clean up home page, fix a few bugs (#2304)
* wip home screen changes * more * adjust * fixes and things * patch runbook pty check
Diffstat (limited to 'ui/src/state/models.ts')
-rw-r--r--ui/src/state/models.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/state/models.ts b/ui/src/state/models.ts
index c1d97f4b..4ca79006 100644
--- a/ui/src/state/models.ts
+++ b/ui/src/state/models.ts
@@ -18,12 +18,16 @@ export interface HomeInfo {
historyCount: number;
recordCount: number;
lastSyncTime: Date | null;
+ recentCommands: ShellHistory[];
+ topCommands: ShellHistory[];
}
export const DefaultHomeInfo: HomeInfo = {
historyCount: 0,
recordCount: 0,
lastSyncTime: new Date(),
+ recentCommands: [],
+ topCommands: [],
};
export class ShellHistory {