Repository navigation
feat(group): the lifecycle in the app — acquisition, change of share, deconsolidation, former members, the unmapped-accounts blocker - #525
Conversation
…ccounts blocker The client minors of the last day (2.32.0–2.33.1 and the facade release after them) carry the group lifecycle and a new close blocker; this takes them into the app as one effort. - A Group lifecycle card on a subsidiary's entity page: record the acquisition (price, the outside owners' fair value, a confirmed bargain purchase), a change in the parent's share either way (the sale shows the parent's gain reversed and the carrying amount released), and the deconsolidation once the member has left — each a draft the group close posts, with the figures the group's statements will carry shown back. - A member whose last month is over reads as former: a tag in the switcher, "Former member · <treatment> · left YYYY-MM" on the entities list, a badge on its page; a member still leaving reads "leaves after". - The close panel names the unmapped_accounts blocker, lists the accounts it holds the close on, and offers no way to close over it. - parseDollars moves to the ledger formatters; the allocation panel re-exports it. - @robosystems/client pinned to ^2.34.0, the facade release that carries recordDeconsolidation, isFormer and the calendar's unmapped-account fields (ts #299 / py #283); core and report-components are at latest. Claude-Session: https://claude.ai/code/session_015PxYaVzrbraKFeRALM7rXp
|
Change classification: normal — platform or application code changed. A normal change carries a documented automated review on this pull request before merge, in place of a second human approver. The |
|
@claude please review this PR |
|
Claude finished @jfrench9's task in 22s —— View job Review of PR #525: group lifecycle in the appI read the full non-test diff. I did not run the tests or CI; the PR says CI is red until Verdict: one real bug to fix before merge, plus a few smaller points. Bug1. The recorded-figures summary disappears right after a successful save. (
Smaller points2. The deconsolidation button stays available after recording. The card offers it whenever 3. Share-change validation.
4. 5. Re-export. 6. Formatting nit. In the entities list, 7.
8. Sequencing. Agreed: don't merge until 2.34.0 publishes and the lockfile resolves. The conventions in CLAUDE.md look followed: colocated component, |
The facade half of the group lifecycle shipped as a patch, 2.33.2, not the 2.34.0 the pin anticipated; the lockfile resolves it from npm in place of the packed build the branch was developed against. Claude-Session: https://claude.ai/code/session_015PxYaVzrbraKFeRALM7rXp
…clean per entity The review found the one real defect: recording an entry bumped a reload key, the page's load effect cleared the entity and showed its spinner, and the card unmounted with the goodwill or gain it had just been handed. The page now re-reads the entity in place — no spinner, no abandoned edit — so the figures stay up and the parent's share refreshes after a change. Also from the review: the card's inputs reset when the entity changes (only the recorded results did before); the former-member lines guard a missing leftOn; parseDollars is imported from the formatters by its one other user and the re-export goes. A page-level test records an acquisition and asserts the summary survives the re-read; a card test switches entity and finds an empty form. Claude-Session: https://claude.ai/code/session_015PxYaVzrbraKFeRALM7rXp
|
Review dispositions, in the order raised:
Gate after the fixes: 1,230 tests across 137 files, format, lint, typecheck and cf-lint green. |
Summary
The client minors published over the last day (2.32.0, 2.33.0, 2.33.1, and the facade release that follows them) carry the group lifecycle and a new close blocker. This takes the batch into the app as one effort, as agreed.
Changes
src/app/(app)/entity/components/GroupLifecycleCard.tsx) on a subsidiary's entity page. Three recordings, each a draft in the consolidation entity that the group close posts, with the figures the group's statements will carry shown back:isFormer) reads as former: aformertag in the entity switcher besideparent;Former member · <treatment> · left YYYY-MMon the entities list, where a member still leaving readsleaves YYYY-MM; aformer memberbadge on its page, which also says left rather than leaves after.unmapped_accountsclose blocker (rs #1932): copy in the close panel pointing at Chart of Accounts, the accounts it holds the close on listed with and others past the sample, and no override, since nothing closes over it.parseDollarsmoves to@/lib/ledger/formatters; the allocation-override panel re-exports it.@robosystems/clientpinned to^2.34.0, the facade release that carriesrecordDeconsolidation,isFormerand the calendar's unmapped-account fields (ts #299 / py #283).@robosystems/coreand@robosystems/report-componentsare already at their latest.Sequencing
CI here is red until the facade release publishes (the lockfile cannot resolve
2.34.0yet); developed against the packed client. Merge after that publish, release after the robosystems release that carries rs #1932, since the blocker andisFormerexist only on that server.Testing
npm run test:allagainst the packed facade client: 1,228 tests across 137 files, format, lint, typecheck and cf-lint green. New tests: the lifecycle card's three recordings and its refusal path; the close panel naming unmapped accounts with no override; the entities list and entity page showing a former member.🤖 Generated with Claude Code
https://claude.ai/code/session_015PxYaVzrbraKFeRALM7rXp