https://github.com/araitatsuya-code/atena-print/issues/30 こちらをよろしくお願いします
- User
https://github.com/araitatsuya-code/atena-print/issues/30 こちらをよろしくお願いします
- User
Issue を実装
指定された GitHub Issue を実装してください。
手順
gh issue view <番号>で Issue の内容を確認- ブランチを作成:
git checkout -b issue-<番号>-<slug> - 必要な仕様を docs/ から参照して実装
- テスト実行:
- Go:
go test ./internal/... - Frontend:
cd frontend && npx vitest --run
- Go:
- 変更をコミット (コミットメッセージに
refs #<番号>を含める) - Push して PR 作成:
ARGUMENTS: https://github.com/araitatsuya-code/atena-print/issues/30
Assistant
Now let me look at the stores and template-related components:
Assistant
Now I have a clear picture. Let me implement the changes:
Assistant
Plan mode already exited. Let me implement the changes now.
Assistant
Now update LabelCanvas.tsx with the horizontal rendering logic:
Assistant
Now add the horizontal rendering logic in
renderLabel:Assistant
Now update PreviewArea to apply orientation from store to the template:
Assistant
No
lintscript exists. Let me run TypeScript type check instead:Assistant
All checks pass. Now commit and create PR:
Assistant
PR を作成しました: https://github.com/araitatsuya-code/atena-print/pull/34
実装内容
ファイル 変更内容 labelStore.ts orientationフィールドとsetOrientationアクションを追加LabelSettingsPanel.tsx 縦書き/横書きトグルボタン(用紙タイプの上)を追加 LabelCanvas.tsx DEFAULT_TEMPLATE_HORIZONTAL追加、renderHorizontalLabel()で横書き Canvas 描画を実装PreviewArea.tsx ストアの orientationを template に上書き、プレビューに即時反映PrintConfirmDialog.tsx buildJob()の固定値'vertical'をストア値に変更PDF生成 (
label_pdf.go) は既に vertical/horizontal 分岐が実装済みのため変更不要でした。