feat: show project and session translation tables
This commit is contained in:
@@ -8,6 +8,7 @@ import { canonicalProjectPath, listAllRuns, resolveWithin, restorePath, restoreT
|
||||
import type { ProjectFile, ProjectRun } from "./lib/velum-project";
|
||||
import { canonicalPerson, mergePeople } from "./lib/project-review";
|
||||
import { planProjectRevision, reviseProjectRun } from "./lib/project-revision";
|
||||
import { TranslationTable } from "./show-translation-tables";
|
||||
|
||||
type SavedRun = { run: ProjectRun; directory: string };
|
||||
|
||||
@@ -229,6 +230,9 @@ function ProjectHistory(props: { projectName: string; entries: SavedRun[] }) {
|
||||
title={new Date(run.createdAt).toLocaleString("de-AT")}
|
||||
subtitle={`${run.files.length} Dateien`}
|
||||
actions={<ActionPanel>
|
||||
<Action.Push title="Übersetzungstabelle anzeigen" icon={Icon.List}
|
||||
target={<TranslationTable title={`${props.projectName} · ${new Date(run.createdAt).toLocaleString("de-AT")}`}
|
||||
mapping={run.mapping} />} />
|
||||
<Action title="Pseudonymisierte Kopien im Finder anzeigen" icon={Icon.Folder}
|
||||
onAction={() => showInFinder(runCopiesPath(run, directory))} />
|
||||
<Action.CopyToClipboard title="Speicherpfad kopieren" content={runCopiesPath(run, directory)} />
|
||||
@@ -265,6 +269,8 @@ export default function Command() {
|
||||
accessories={[{ text: `${run.files.length} Dateien` }, { text: new Date(run.createdAt).toLocaleString("de-AT") },
|
||||
...(entries.length > 1 ? [{ text: `${entries.length} Stände` }] : [])]}
|
||||
actions={<ActionPanel>
|
||||
<Action.Push title="Übersetzungstabelle anzeigen" icon={Icon.List}
|
||||
target={<TranslationTable title={run.projectName} mapping={run.mapping} />} />
|
||||
<Action title="Projektdateien als Klartext wiederherstellen" icon={Icon.Download}
|
||||
onAction={() => push(<FilePicker run={run} directory={directory} />)} />
|
||||
<Action title="Pseudonymisierte Kopien im Finder anzeigen" icon={Icon.Folder}
|
||||
|
||||
Reference in New Issue
Block a user