Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ファイルピッカーでのインポート機能を追加 #10

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

nandenjin
Copy link
Member

@nandenjin nandenjin commented Jan 24, 2025

Fixes #9

Add file picker functionality for CSV import.

  • Add a new button in src/components/ControlUI.vue for file selection and CSV import.
  • Create a new method importFromFile in src/components/ControlUI.vue to handle file selection and CSV parsing.
  • Update src/store/data.ts to include a new function importCSVString for centralized CSV parsing logic.
  • Remove the parseCSV import statement from src/components/DragDropImporter.vue and replace the parse method with a call to importCSVString.
  • Update the template in src/components/ControlUI.vue to include the new button and bind it to the importFromFile method.

For more details, open the Copilot Workspace session.

Fixes #9

Add file picker functionality for CSV import.

* Add a new button in `src/components/ControlUI.vue` for file selection and CSV import.
* Create a new method `importFromFile` in `src/components/ControlUI.vue` to handle file selection and CSV parsing.
* Update `src/store/data.ts` to include a new function `importCSVString` for centralized CSV parsing logic.
* Remove the `parseCSV` import statement from `src/components/DragDropImporter.vue` and replace the `parse` method with a call to `importCSVString`.
* Update the template in `src/components/ControlUI.vue` to include the new button and bind it to the `importFromFile` method.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/tsukuba-neu/sawagani/issues/9?shareId=XXXX-XXXX-XXXX-XXXX).
@nandenjin nandenjin requested a review from Copilot January 24, 2025 01:22
@nandenjin nandenjin self-assigned this Jan 24, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

src/components/ControlUI.vue Outdated Show resolved Hide resolved
@nandenjin nandenjin merged commit 04b0337 into dev Jan 24, 2025
2 checks passed
@nandenjin nandenjin deleted the nandenjin/add-file-picker branch January 24, 2025 01:32
@nandenjin nandenjin restored the nandenjin/add-file-picker branch January 24, 2025 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ファイルピッカーでのCSV入力
1 participant