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
@@ -749,16 +749,16 @@ impl Dock {
|
||||
if ui
|
||||
.add(egui::Button::new(RichText::new(chevron).size(14.0)).frame(false))
|
||||
.on_hover_text(if self.open {
|
||||
"Collapse the agent dock"
|
||||
"Collapse the assistant panel"
|
||||
} else {
|
||||
"Open the agent dock"
|
||||
"Open the assistant panel"
|
||||
})
|
||||
.clicked()
|
||||
{
|
||||
self.open = !self.open;
|
||||
}
|
||||
ui.label(
|
||||
RichText::new(format!("{} Agent", icon::TERMINAL_WINDOW))
|
||||
RichText::new(format!("{} Assistant", icon::TERMINAL_WINDOW))
|
||||
.font(crate::theme::semibold(12.5))
|
||||
.color(p.text),
|
||||
);
|
||||
@@ -787,7 +787,7 @@ impl Dock {
|
||||
&& !ended
|
||||
&& ui
|
||||
.button(icon::ARROW_CLOCKWISE)
|
||||
.on_hover_text("Restart the agent")
|
||||
.on_hover_text("Restart the assistant")
|
||||
.clicked()
|
||||
{
|
||||
restart = true;
|
||||
@@ -800,7 +800,7 @@ impl Dock {
|
||||
}
|
||||
} else {
|
||||
ui.label(
|
||||
RichText::new("Optional: any agent can use these books")
|
||||
RichText::new("Optional: any assistant can use these books")
|
||||
.size(12.0)
|
||||
.color(p.faint),
|
||||
);
|
||||
@@ -816,7 +816,7 @@ impl Dock {
|
||||
match &mut self.state {
|
||||
State::Idle => {}
|
||||
State::Starting(_) => {
|
||||
ui.label(RichText::new("Starting the agent…").color(p.muted));
|
||||
ui.label(RichText::new("Starting the assistant…").color(p.muted));
|
||||
}
|
||||
State::Failed(why) => {
|
||||
ui.add_space(6.0);
|
||||
@@ -840,7 +840,7 @@ impl Dock {
|
||||
ui.hyperlink_to(format!("{} instructions", i.label), &i.page);
|
||||
ui.label(
|
||||
RichText::new(
|
||||
"You never need this: any agent you run yourself reaches the same books.",
|
||||
"You never need this: any assistant you run yourself reaches the same books.",
|
||||
)
|
||||
.color(p.faint),
|
||||
);
|
||||
|
||||
@@ -184,7 +184,7 @@ pub fn book_in_root(root: Option<&std::path::Path>, book: Option<&str>) -> Resul
|
||||
id
|
||||
}
|
||||
None => books.into_iter().next().ok_or_else(|| {
|
||||
"there are no books yet: your agent makes them (`wanderbooks books create`)."
|
||||
"there are no books yet: your assistant makes them (`wanderbooks books create`)."
|
||||
.to_string()
|
||||
})?,
|
||||
};
|
||||
|
||||
@@ -240,7 +240,7 @@ impl Job {
|
||||
let mut notes = Vec::new();
|
||||
if !p.tin_gaps.is_empty() {
|
||||
notes.push(format!(
|
||||
"{} TIN(s) aren't in it (the README says which): ask your agent to collect them.",
|
||||
"{} TIN(s) aren't in it (the README says which): ask your assistant to collect them.",
|
||||
p.tin_gaps.len()
|
||||
));
|
||||
}
|
||||
@@ -279,7 +279,7 @@ impl Job {
|
||||
.filter(|l| l.may_file() && l.tin.is_none())
|
||||
.count();
|
||||
let note = (gaps > 0).then(|| {
|
||||
format!("{gaps} payee(s) a 1099 is or may be due for have no TIN in it: ask your agent to collect them.")
|
||||
format!("{gaps} payee(s) a 1099 is or may be due for have no TIN in it: ask your assistant to collect them.")
|
||||
});
|
||||
Ok((path, note))
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ impl Welcome {
|
||||
ui.label(RichText::new("Welcome to wanderbooks").font(crate::theme::bold(28.0)));
|
||||
ui.label(
|
||||
RichText::new(
|
||||
"Your company's books, kept by an agent and checked by you. A few short steps; nothing here needs a terminal.",
|
||||
"Your company's books, kept by an assistant and checked by you. A few short steps; nothing here needs a terminal.",
|
||||
)
|
||||
.color(p.muted),
|
||||
);
|
||||
@@ -241,7 +241,7 @@ impl Welcome {
|
||||
if st.root {
|
||||
ui.label(RichText::new("Made. Only your account can open it.").color(p.muted));
|
||||
} else {
|
||||
ui.label("Wanderbooks keeps your books in a folder that only your account can open. Your agent reaches them through the app, never by looking in the folder.");
|
||||
ui.label("Wanderbooks keeps your books in a folder that only your account can open. Your assistant reaches them through the app, never by looking in the folder.");
|
||||
if ui
|
||||
.add_enabled(!busy, egui::Button::new("Set it up"))
|
||||
.clicked()
|
||||
@@ -334,7 +334,7 @@ impl Welcome {
|
||||
);
|
||||
return;
|
||||
}
|
||||
ui.label("A short name for the books: lowercase letters, digits and hyphens (your company's name, say). You can name the company itself afterwards, with your agent.");
|
||||
ui.label("A short name for the books: lowercase letters, digits and hyphens (your company's name, say). You can name the company itself afterwards, with your assistant.");
|
||||
ui.add_enabled(
|
||||
!busy,
|
||||
egui::TextEdit::singleline(&mut self.id)
|
||||
@@ -370,11 +370,11 @@ impl Welcome {
|
||||
Self::card(
|
||||
ui,
|
||||
4,
|
||||
"An agent to keep them",
|
||||
"An assistant to keep them",
|
||||
agents.iter().any(|(_, r)| r.is_ok()),
|
||||
step4_active,
|
||||
|ui| {
|
||||
ui.label("An agent (Claude Code or Codex) records your transactions, checks receipts and answers questions, through the books' own tools. This connects it; the app also has a panel along the bottom of its window that runs it for you. You never need either: any agent you run yourself can reach the same books.");
|
||||
ui.label("An assistant (Claude Code or Codex) records your transactions, checks receipts and answers questions. This connects it; the app also has a panel along the bottom of its window that runs it for you. You never need either: any assistant you run yourself can reach the same books.");
|
||||
for (agent, result) in &agents {
|
||||
match result {
|
||||
Ok(lines) => {
|
||||
@@ -415,7 +415,7 @@ impl Welcome {
|
||||
}
|
||||
}
|
||||
if ui
|
||||
.add_enabled(!busy, egui::Button::new("I'll use my own agent"))
|
||||
.add_enabled(!busy, egui::Button::new("I'll use my own assistant"))
|
||||
.clicked()
|
||||
{
|
||||
self.agent_later = true;
|
||||
|
||||
@@ -518,7 +518,7 @@ pub fn copy_prompt(ui: &mut Ui, prompt: &str) {
|
||||
let label = if recently {
|
||||
format!("{} Copied", egui_phosphor::regular::CHECK)
|
||||
} else {
|
||||
format!("{} Ask the agent", egui_phosphor::regular::SPARKLE)
|
||||
format!("{} Ask your assistant", egui_phosphor::regular::SPARKLE)
|
||||
};
|
||||
let r = ui
|
||||
.add(
|
||||
@@ -532,7 +532,7 @@ pub fn copy_prompt(ui: &mut Ui, prompt: &str) {
|
||||
.corner_radius(CornerRadius::same(6)),
|
||||
)
|
||||
.on_hover_text(format!(
|
||||
"Copies this prompt for your agent session:\n\n{prompt}"
|
||||
"Copies this prompt for your assistant:\n\n{prompt}"
|
||||
));
|
||||
if r.clicked() {
|
||||
ui.ctx().copy_text(prompt.to_string());
|
||||
|
||||
@@ -261,7 +261,7 @@ fn depreciation_due_is_the_register_through_the_last_finished_month() {
|
||||
"{:?}",
|
||||
n[0].text
|
||||
);
|
||||
assert!(n[0].text.contains("ask the bookkeeper to run depreciation"));
|
||||
assert!(n[0].text.contains("ask your assistant to run depreciation"));
|
||||
let accruing = r.unposted_depreciation() - due.amount;
|
||||
assert!(accruing > Decimal::ZERO);
|
||||
assert!(n[1].text.contains(&fmt::dollars(accruing)));
|
||||
@@ -541,7 +541,7 @@ fn basis_figures_are_ledger_cores() {
|
||||
assert_eq!(r.missing_basis, 1);
|
||||
let want = missing_tax_notice(1).unwrap();
|
||||
assert!(want.starts_with("Tax basis not recorded for 1 asset"));
|
||||
assert!(want.contains("books.set_asset_tax_basis"));
|
||||
assert!(want.contains("ask your assistant to record it"));
|
||||
assert!(notices(b, &r).iter().any(|n| n.problem && n.text == want));
|
||||
assert_eq!(missing_tax_notice(0), None);
|
||||
assert!(
|
||||
|
||||
Reference in new issue
Block a user