change history to clean

This commit is contained in:
Julian Freeman
2026-04-17 13:44:41 -04:00
parent b9f24e07cf
commit 6d2b117200
11 changed files with 696 additions and 351 deletions

View File

@@ -3,7 +3,7 @@ export type BrowserStats = {
extensionCount: number;
bookmarkCount: number;
passwordSiteCount: number;
historyDomainCount: number;
historyCleanupProfileCount: number;
};
export type ProfileSummary = {
@@ -16,6 +16,7 @@ export type ProfileSummary = {
defaultAvatarStrokeColor: number | null;
avatarLabel: string;
path: string;
historyCleanup: HistoryCleanupSummary;
};
export type ExtensionSummary = {
@@ -41,11 +42,28 @@ export type PasswordSiteSummary = {
profiles: AssociatedProfileSummary[];
};
export type HistoryDomainSummary = {
domain: string;
visitCount: number;
export type HistoryCleanupSummary = {
history: CleanupFileStatus;
topSites: CleanupFileStatus;
visitedLinks: CleanupFileStatus;
};
export type CleanupFileStatus = "found" | "missing";
export type CleanupHistoryInput = {
browserId: string;
profileIds: string[];
profiles: AssociatedProfileSummary[];
};
export type CleanupHistoryResult = {
profileId: string;
deletedFiles: string[];
skippedFiles: string[];
error: string | null;
};
export type CleanupHistoryResponse = {
results: CleanupHistoryResult[];
};
export type AssociatedProfileSummary = {
@@ -73,7 +91,6 @@ export type ProfileSortKey = "name" | "email" | "id";
export type ExtensionSortKey = "name" | "id";
export type BookmarkSortKey = "title" | "url";
export type PasswordSiteSortKey = "domain" | "url";
export type HistoryDomainSortKey = "visits" | "domain";
export type AssociatedProfileSortKey = "id" | "name";
export type ActiveSection = "profiles" | "extensions" | "bookmarks" | "passwords" | "history";
export type AppPage = "browserData" | "configuration";
@@ -111,7 +128,6 @@ export type BrowserView = {
extensions: ExtensionSummary[];
bookmarks: BookmarkSummary[];
passwordSites: PasswordSiteSummary[];
historyDomains: HistoryDomainSummary[];
stats: BrowserStats;
};