leftovers
This commit is contained in:
@@ -135,10 +135,12 @@ export function Classification({
|
||||
};
|
||||
result.changes.sort(
|
||||
(a, b) =>
|
||||
(confidenceRank[a.after.classification.confidence || "low"] ??
|
||||
0) -
|
||||
(confidenceRank[b.after.classification.confidence || "low"] ??
|
||||
0),
|
||||
(confidenceRank[
|
||||
a.after.classification.confidence || "low"
|
||||
] ?? 0) -
|
||||
(confidenceRank[
|
||||
b.after.classification.confidence || "low"
|
||||
] ?? 0),
|
||||
);
|
||||
setPreview(result);
|
||||
setSelected(
|
||||
|
||||
+21
-15
@@ -371,21 +371,24 @@ function TaxonomyPanel({
|
||||
setBusy(true);
|
||||
setError("");
|
||||
try {
|
||||
const applied = await request<State>("/api/taxonomy/apply", {
|
||||
id: preview.id,
|
||||
revision: preview.revision,
|
||||
approved: {
|
||||
categories: preview.proposal.categories.filter((_, i) =>
|
||||
selectedCategories.has(i),
|
||||
),
|
||||
tags: preview.proposal.tags.filter((_, i) =>
|
||||
selectedTags.has(i),
|
||||
),
|
||||
merchants: preview.proposal.merchants.filter((_, i) =>
|
||||
selectedMerchants.has(i),
|
||||
),
|
||||
const applied = await request<State>(
|
||||
"/api/taxonomy/apply",
|
||||
{
|
||||
id: preview.id,
|
||||
revision: preview.revision,
|
||||
approved: {
|
||||
categories: preview.proposal.categories.filter(
|
||||
(_, i) => selectedCategories.has(i),
|
||||
),
|
||||
tags: preview.proposal.tags.filter((_, i) =>
|
||||
selectedTags.has(i),
|
||||
),
|
||||
merchants: preview.proposal.merchants.filter((_, i) =>
|
||||
selectedMerchants.has(i),
|
||||
),
|
||||
},
|
||||
},
|
||||
});
|
||||
);
|
||||
acceptState(applied, "Approved taxonomy written");
|
||||
close();
|
||||
} catch (err) {
|
||||
@@ -513,7 +516,10 @@ function RegistryEditor({
|
||||
/>
|
||||
</Field>
|
||||
{(entity === "category" || entity === "tag") && (
|
||||
<Field label="Hint" hint="Explain when this category or tag applies to the AI classifier.">
|
||||
<Field
|
||||
label="Hint"
|
||||
hint="Explain when this category or tag applies to the AI classifier."
|
||||
>
|
||||
<textarea
|
||||
rows={2}
|
||||
maxLength={200}
|
||||
|
||||
@@ -417,11 +417,11 @@ export function Settings({ state, mutate }: { state: State; mutate: Mutate }) {
|
||||
<h4>Explicit external services</h4>
|
||||
<p>
|
||||
Bank authorization and sync use Enable Banking. AI classification
|
||||
sends merchant and counterparty text, amount, date and currency
|
||||
to the configured provider after identifier-only redaction. Your
|
||||
own account identifiers and configured private names are never
|
||||
sent. A third party's payee name can be sent when it is not in
|
||||
your private-name list.
|
||||
sends merchant and counterparty text, amount, date and currency to
|
||||
the configured provider after identifier-only redaction. Your own
|
||||
account identifiers and configured private names are never sent. A
|
||||
third party's payee name can be sent when it is not in your
|
||||
private-name list.
|
||||
</p>
|
||||
<h4>Immutable originals</h4>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user