Common IRS code select input (searchable by code + name, shows both)
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
Start with the listed IRS code form fields and the existing ComboBox or SelectWithSearch components; inspect how forms handle nullable values and sort-code autofill. Then trace the shaam6111 code-name constants and decide how the options reach the client. Done means replacing all five listed inputs with a shared searchable select, preserving clear and unknown values and autofill, with tests for matching and unknown-value rendering.
索引モデルが issue の本文から書いたものです。
説明
Summary
IRS code fields across the client are plain numeric inputs. To fill them in you have to know the code by heart, and nothing confirms you typed the right one. Create one shared IRS code select that:
- lists the valid IRS codes,
- searches by code and name (e.g. typing
1030orשירותיםboth find1030 – הכנסות ממתן שירותים בארץ), - shows both code and name in the options and in the selected value,
and use it everywhere an IRS code is entered.
Current behavior
IRS code is entered as a free number (NumberInput / text) in:
packages/client/src/components/common/forms/modify-tax-category-fields.tsx: tax categoryirsCode(insert/edit tax category)packages/client/src/components/common/forms/modify-sort-code-fields.tsx: sort codedefaultIrsCode(insert/edit sort code)packages/client/src/components/business/configurations-section.tsx: businessirsCodepackages/client/src/components/common/modals/insert-business.tsx: businessirsCodepackages/client/src/components/businesses/batch-update-dialog.tsx: batchirsCode(a text field with integer validation)
Read-only displays, such as components/tax-categories/cells/irs-code.tsx and the businesses table column, show only the bare number.
Source of code names
The code-to-name mappings already exist in @accounter/shaam6111-generator:
PROFIT_LOSS_CODE_NAMES(src/types/profit-and-loss.ts)BALANCE_SHEET_CODE_NAMES(src/types/balance-sheet.ts)TAX_ADJUSTMENT_CODE_NAMES(src/types/tax-adjustment.ts)
Options for getting them to the client:
- Preferred: add a GraphQL query, e.g.
irsCodes: [IrsCode!]!with{ code: Int!, name: String!, section/group }, served by the server from the shaam6111 constants. This keeps one source of truth, and the client doesn't need to depend on the generator package. - Alternatively, import the constants straight into the client, if the package can be bundled for the browser cleanly.
Decide which code groups count as valid IRS codes for businesses / tax categories (probably profit & loss plus balance sheet), and group the options by section in the dropdown.
Proposed component
IrsCodeSelect(e.g.components/common/inputs/irs-code-select.tsx), built on the existingComboBox/SelectWithSearchprimitives.- Props:
value: number | null,onChange(code: number | null),disabled,placeholder, clearable, plusclassNameso the dirty-field marker styling keeps working. - Search matches the code (prefix/substring) and the name (case-insensitive substring).
- Option label:
{code} – {name}. Group headers by section if there are several. - Handles a stored value that isn't in the list (legacy data): show it as
{code} – (unknown)rather than dropping it. - Works with react-hook-form
FormFieldthe way the current inputs do. The existing behavior where changing the sort code sets the IRS code fromdefaultIrsCodemust keep working.
Also consider
- A small
IrsCodeLabel/ helper to displaycode – namein read-only places: the tax categories table cell, the businesses table column, and the IRS codes report.
Acceptance criteria
- There is a shared, reusable IRS code select component, with search over code + name, that shows both.
- It replaces the numeric IRS code inputs in all the places listed above.
- Clearing the value still works (sends
nullwhere the current forms do). - Sort code → default IRS code autofill still works.
- Unknown / legacy codes are shown, not lost.
- Unit tests cover the search matching and rendering of unknown values.
- 主要言語
- TypeScript
- スター
- 30
- フォーク
- 10
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 276
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Urigo/accounter-fullstack のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Urigo/accounter-fullstack#5302 ·
メンテナーはふだん 2 日以内に返信
-
1214 annual-audit-workflow
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Urigo/accounter-fullstack#5257 ·
メンテナーはふだん 2 日以内に返信
-
1214 annual-audit-workflow
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
Urigo/accounter-fullstack#5256 ·
メンテナーはふだん 2 日以内に返信
-
annual-audit-workflow
難易度 1/5 1〜3時間 初心者へのやさしさ 87/100
Urigo/accounter-fullstack#5252 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
Urigo/accounter-fullstack#4919 ·
メンテナーはふだん 2 日以内に返信
Urigo/accounter-fullstack の issue をすべて見る
似ている issue
-
area: integrations documentation priority: P2 size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eddiejaoude/StackDash#798 ·
メンテナーはふだん 1 日以内に返信
-
bot:ai-assisted component:midnight-js status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
midnightntwrk/midnight-js#1790 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
area:vscode bug has repro platform:macos platform:vscode regression
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDオープンcheck:passed streams:add
難易度 1/5 1時間未満 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信