fix(gui): the word a person reads is assistant, with no tool names
The bottom panel, the welcome steps, empty states and notices said agent, bookkeeper or a books.* tool name; they now say assistant. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
f218bf4552
commit
f58191c9de
14 files changed
+42
-43
No files matched your search
@@ -81,7 +81,7 @@ pub fn notices(b: &Books, r: &AssetRegister) -> Vec<Notice> {
|
||||
out.push(Notice {
|
||||
problem: true,
|
||||
text: format!(
|
||||
"Depreciation not yet posted through {}: {} — ask the bookkeeper to run depreciation{}.",
|
||||
"Depreciation not yet posted through {}: {} — ask your assistant to run depreciation{}.",
|
||||
fmt::date(due.through),
|
||||
fmt::dollars(due_amount),
|
||||
if due.periods.is_empty() {
|
||||
@@ -108,7 +108,7 @@ pub fn notices(b: &Books, r: &AssetRegister) -> Vec<Notice> {
|
||||
out.push(Notice {
|
||||
problem: true,
|
||||
text: format!(
|
||||
"The books carry {} more accumulated depreciation than the schedules through {} — ask the bookkeeper to check the depreciation entries.",
|
||||
"The books carry {} more accumulated depreciation than the schedules through {} — ask your assistant to check the depreciation entries.",
|
||||
fmt::dollars(neg(unposted)),
|
||||
fmt::date(r.as_of)
|
||||
),
|
||||
@@ -119,7 +119,7 @@ pub fn notices(b: &Books, r: &AssetRegister) -> Vec<Notice> {
|
||||
out.push(Notice {
|
||||
problem: true,
|
||||
text: format!(
|
||||
"{} in the asset cost accounts isn't in the register — ask the bookkeeper to register it with books.register_asset.",
|
||||
"{} in the asset cost accounts isn't in the register — ask your assistant to register it.",
|
||||
fmt::dollars(unregistered)
|
||||
),
|
||||
});
|
||||
@@ -127,7 +127,7 @@ pub fn notices(b: &Books, r: &AssetRegister) -> Vec<Notice> {
|
||||
out.push(Notice {
|
||||
problem: true,
|
||||
text: format!(
|
||||
"{} of registered cost isn't in the books' asset cost accounts — ask the bookkeeper to check the purchase entries.",
|
||||
"{} of registered cost isn't in the books' asset cost accounts — ask your assistant to check the purchase entries.",
|
||||
fmt::dollars(neg(unregistered))
|
||||
),
|
||||
});
|
||||
@@ -137,7 +137,7 @@ pub fn notices(b: &Books, r: &AssetRegister) -> Vec<Notice> {
|
||||
out.push(Notice {
|
||||
problem: true,
|
||||
text: format!(
|
||||
"{} of accumulated depreciation in the books isn't from any asset's depreciation runs — ask the bookkeeper to find the entries behind it.",
|
||||
"{} of accumulated depreciation in the books isn't from any asset's depreciation runs — ask your assistant to find the entries behind it.",
|
||||
fmt::dollars(unattributed)
|
||||
),
|
||||
});
|
||||
@@ -160,12 +160,11 @@ pub fn notices(b: &Books, r: &AssetRegister) -> Vec<Notice> {
|
||||
out
|
||||
}
|
||||
|
||||
/// "Tax basis not recorded for 2 assets — ask the bookkeeper to record it
|
||||
/// (books.set_asset_tax_basis).", or `None` when every asset held has one.
|
||||
/// "Tax basis not recorded for 2 assets — ask your assistant to record it", or `None` when every asset held has one.
|
||||
pub fn missing_tax_notice(missing: usize) -> Option<String> {
|
||||
(missing > 0).then(|| {
|
||||
format!(
|
||||
"Tax basis not recorded for {} — ask the bookkeeper to record {} (books.set_asset_tax_basis): bought by the company, contributed by a member from business use, or contributed from personal use.",
|
||||
"Tax basis not recorded for {} — ask your assistant to record {}: bought by the company, contributed by a member from business use, or contributed from personal use.",
|
||||
fmt::count(missing, "asset", "assets"),
|
||||
if missing == 1 { "it" } else { "each" }
|
||||
)
|
||||
@@ -511,7 +510,7 @@ pub fn show_register(ui: &mut Ui, b: &Books, shell: &mut Shell<'_>) {
|
||||
ui,
|
||||
icon::PACKAGE,
|
||||
"No fixed assets",
|
||||
"Equipment the company capitalizes appears here once the bookkeeper registers it (books.register_asset).",
|
||||
"Equipment the company capitalizes appears here once your assistant registers it.",
|
||||
)
|
||||
});
|
||||
return;
|
||||
@@ -526,7 +525,7 @@ pub fn show_register(ui: &mut Ui, b: &Books, shell: &mut Shell<'_>) {
|
||||
ui,
|
||||
icon::PACKAGE,
|
||||
"The register can't be computed",
|
||||
&format!("{e}. Ask the bookkeeper to find the record behind it."),
|
||||
&format!("{e}. Ask your assistant to find the record behind it."),
|
||||
)
|
||||
});
|
||||
return;
|
||||
@@ -1025,7 +1024,7 @@ pub fn show_asset(ui: &mut Ui, b: &Books, id: AssetId, shell: &mut Shell<'_>) {
|
||||
}
|
||||
None => {
|
||||
widgets::pill(ui, "No tag yet", p.warning, p.warning_soft)
|
||||
.on_hover_text("Ask the bookkeeper to label it (books.label_asset).");
|
||||
.on_hover_text("Ask your assistant to label it.");
|
||||
}
|
||||
}
|
||||
ui.label(RichText::new(&a.description).font(theme::bold(22.0)));
|
||||
@@ -1201,7 +1200,7 @@ pub fn show_asset(ui: &mut Ui, b: &Books, id: AssetId, shell: &mut Shell<'_>) {
|
||||
&Notice {
|
||||
problem: true,
|
||||
text: format!(
|
||||
"{} of depreciation for finished months isn't posted — ask the bookkeeper to run depreciation.",
|
||||
"{} of depreciation for finished months isn't posted — ask your assistant to run depreciation.",
|
||||
fmt::dollars(due)
|
||||
),
|
||||
},
|
||||
@@ -1448,7 +1447,7 @@ fn tax_card(ui: &mut Ui, a: &Asset) {
|
||||
ui.add(
|
||||
egui::Label::new(
|
||||
RichText::new(
|
||||
"Ask the bookkeeper to record it (books.set_asset_tax_basis): was it bought by the company, contributed by a member from business use, or converted from personal use? For a contribution, book cost is the fair market value at contribution; tax depreciation starts from the depreciable basis — the CPA's.",
|
||||
"Ask your assistant to record it: was it bought by the company, contributed by a member from business use, or converted from personal use? For a contribution, book cost is the fair market value at contribution; tax depreciation starts from the depreciable basis — the CPA's.",
|
||||
)
|
||||
.font(theme::regular(12.5))
|
||||
.color(p.muted),
|
||||
|
||||
@@ -50,7 +50,7 @@ pub fn show(ui: &mut Ui, b: &Books, shell: &mut Shell<'_>) {
|
||||
ui,
|
||||
icon::BANK,
|
||||
"No cash accounts found",
|
||||
"Name an asset account \"checking\", \"savings\", or \"cash\", or ask the agent to set the books' cash accounts.",
|
||||
"Name an asset account \"checking\", \"savings\", or \"cash\", or ask your assistant to set the books' cash accounts.",
|
||||
)
|
||||
});
|
||||
return;
|
||||
|
||||
@@ -176,7 +176,7 @@ pub fn show(ui: &mut Ui, b: &Books, shell: &mut Shell<'_>) {
|
||||
if c.profile.iter().all(|(k, _)| k == "base_currency") {
|
||||
ui.label(
|
||||
RichText::new(
|
||||
"No company facts set yet: the agent records them as you give them.",
|
||||
"No company facts set yet: your assistant records them as you give them.",
|
||||
)
|
||||
.color(p.muted),
|
||||
);
|
||||
@@ -201,7 +201,7 @@ pub fn show(ui: &mut Ui, b: &Books, shell: &mut Shell<'_>) {
|
||||
}
|
||||
ui.label(
|
||||
RichText::new(
|
||||
"Kept in the books: the agent changes settings, with who decided and when.",
|
||||
"Kept in the books: your assistant changes settings, with who decided and when.",
|
||||
)
|
||||
.font(theme::regular(12.0))
|
||||
.color(p.muted),
|
||||
|
||||
@@ -241,7 +241,7 @@ pub fn show_list(ui: &mut Ui, b: &Books, bills: bool, shell: &mut Shell<'_>) {
|
||||
widgets::page_header_ask(
|
||||
ui,
|
||||
"Invoices & Bills",
|
||||
"What customers owe the company and what it owes vendors, each figure read from the ledger, tied to its account. The bookkeeper issues, records and voids them.",
|
||||
"What customers owe the company and what it owes vendors, each figure read from the ledger, tied to its account. Your assistant issues, records and voids them.",
|
||||
if bills {
|
||||
"enter a new bill"
|
||||
} else {
|
||||
@@ -367,9 +367,9 @@ pub fn show_list(ui: &mut Ui, b: &Books, bills: bool, shell: &mut Shell<'_>) {
|
||||
(
|
||||
if bills { "No bills" } else { "No invoices" },
|
||||
if bills {
|
||||
"A vendor's bill appears here once the bookkeeper records it (books.create_bill)."
|
||||
"A vendor's bill appears here once your assistant records it."
|
||||
} else {
|
||||
"An invoice appears here once the bookkeeper issues it (books.create_invoice)."
|
||||
"An invoice appears here once your assistant creates it."
|
||||
},
|
||||
)
|
||||
} else {
|
||||
|
||||
@@ -57,7 +57,7 @@ pub fn show(ui: &mut Ui, b: &Books, shell: &mut Shell<'_>) {
|
||||
fn headline(b: &Books) -> String {
|
||||
let k = &b.kpis;
|
||||
let Some(first) = k.first_entry else {
|
||||
return "No transactions yet. Once your agent records some, this page fills in on its own."
|
||||
return "No transactions yet. Once your assistant records some, this page fills in on its own."
|
||||
.into();
|
||||
};
|
||||
let mut s = format!(
|
||||
|
||||
@@ -342,7 +342,7 @@ pub fn show_list(ui: &mut Ui, b: &Books, shell: &mut Shell<'_>) {
|
||||
ui,
|
||||
icon::ADDRESS_BOOK,
|
||||
"No parties yet",
|
||||
"Vendors, customers, contractors, and anyone else the company deals with appear here once the bookkeeper adds them.",
|
||||
"Vendors, customers, contractors, and anyone else the company deals with appear here once your assistant adds them.",
|
||||
)
|
||||
});
|
||||
return;
|
||||
|
||||
@@ -129,7 +129,7 @@ pub fn show_list(ui: &mut Ui, b: &Books, shell: &mut Shell<'_>) {
|
||||
ui,
|
||||
icon::BRIEFCASE,
|
||||
"No projects yet",
|
||||
"The agent adds them (books.add_project). Tag lines with a project to see what it earns and costs.",
|
||||
"Your assistant adds them. Tag lines with a project to see what it earns and costs.",
|
||||
)
|
||||
});
|
||||
return;
|
||||
|
||||
@@ -1112,7 +1112,7 @@ fn tax(b: &Books, s: NaiveDate, e: NaiveDate) -> Table {
|
||||
/// note saying why, never a guess.
|
||||
fn cant_compute(mut t: Table, why: &ledger_core::LedgerError) -> Table {
|
||||
t.note(format!(
|
||||
"This report can't be computed: {why}. Ask the bookkeeper to find the record behind it."
|
||||
"This report can't be computed: {why}. Ask your assistant to find the record behind it."
|
||||
));
|
||||
t
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user