Tax category page follow-up cleanups
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
Research direction
The issue lists four independent cleanups under packages/client, with target files and a test file named for the BusinessScreen change. Start with one cleanup, read its listed call sites, and run the corresponding tests; for the screen change, update screens/businesses/__tests__/business-screen.test.tsx. Done means the selected cleanup is covered by passing tests, with behavior unchanged.
Written by the indexing model from the issue text.
Description
Cleanups noticed during the tax category page work (docs/tax-category-page/). None change behaviour.
-
Remove
BusinessScreen's unreachable fallback.packages/client/src/components/screens/businesses/business.tsxkeeps a paused urqluseQueryplus a no-loader<Navigate>branch. The/businesses/:businessIdroute always runsbusinessLoader(it either returns data or throws), so that path never runs in the app. Drop it, as was done forTaxCategoryScreen, and simplify the refresh touseRevalidator. Updatescreens/businesses/__tests__/business-screen.test.tsx. -
Shared membership-role lookup. Several call sites look up the user's role in a business with
memberships.find(m => m.businessId === id)?.role, each with its own rules about who may edit:components/business/admin/securities-settings-section.tsxcomponents/business/admin/depreciation-settings-section.tsxcomponents/manual-automations/manual-automations-access.tscomponents/tax-category/details-section.tsx
Extract a pure
getMembershipRole(userContext, businessId)helper. Keep each site's role set and scope rules where they are; only the lookup is shared. -
Shared
renderWithRoutertest helper. About 30 client test files repeat the samecreateRoot+act+MemoryRouterharness, for example the cell tests undercharges/cells/__tests__,ledger-table/__tests__,transactions-table/cells/__tests__,documents-table/cells/__tests__,business-ledger/cells/__tests__andcharge-matches/cells/__tests__. A shared helper would shorten them; migrate a few as part of adding it. -
NamedFinancialEntityReftype alias.FinancialEntityRef & { name: string }(frompackages/client/src/router/routes.ts) is repeated in:business-ledger/cells/business-name-cell.tsxbusiness-ledger/cells/counter-account-cell.tsxcharge-matches/cells/business.tsxcharge-matches/index.tsxcharges/cells/counterparty.tsxledger-table/counterparty-cell.tsxcommon/financial-entity-link.tsx
Add one alias next to
FinancialEntityRef.
These can land as separate small PRs.
- Dominant language
- TypeScript
- Stars
- 30
- Forks
- 10
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 276
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Urigo/accounter-fullstack
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Urigo/accounter-fullstack#5302 ·
Maintainers usually reply within 2 days
-
1214 annual-audit-workflow
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Urigo/accounter-fullstack#5257 ·
Maintainers usually reply within 2 days
-
1214 annual-audit-workflow
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Urigo/accounter-fullstack#5256 ·
Maintainers usually reply within 2 days
-
annual-audit-workflow
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
Urigo/accounter-fullstack#5252 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Urigo/accounter-fullstack#4919 ·
Maintainers usually reply within 2 days
All issues in Urigo/accounter-fullstack
Similar issues
-
area: integrations documentation priority: P2 size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
eddiejaoude/StackDash#798 ·
Maintainers usually reply within 1 day
-
bot:ai-assisted component:midnight-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
midnightntwrk/midnight-js#1790 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area:vscode bug has repro platform:macos platform:vscode regression
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDOpencheck:passed streams:add
Difficulty 1/5 Under an hour Newbie friendliness 77/100
Maintainers usually reply within 1 day