Skip to content

Enhance: Application 部分の重複する記述を関数として統一#697

Draft
sahara2006 wants to merge 32 commits intomainfrom
enhance/components-structure
Draft

Enhance: Application 部分の重複する記述を関数として統一#697
sahara2006 wants to merge 32 commits intomainfrom
enhance/components-structure

Conversation

@sahara2006
Copy link
Copy Markdown
Contributor

#474 送信などのロジックをusePartitionInformation.tsに分離

@sahara2006 sahara2006 self-assigned this Jan 6, 2026
@sahara2006
Copy link
Copy Markdown
Contributor Author

@copilot

Copy link
Copy Markdown

Copilot AI commented Jan 6, 2026

@sahara2006 I've opened a new pull request, #698, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

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.

Pull request overview

This PR refactors duplicate logic in the Application section by extracting common patterns into reusable composables. The main changes follow the established pattern from the partition feature, creating a unified approach for managing edit modes and update operations.

Key changes:

  • Created useApplicationInformation composable to centralize application editing logic
  • Renamed EditMode to PartitionEditMode for clarity and consistency
  • Refactored ApplicationContent.vue to use the new composable pattern with props and events

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/features/application/store.ts Adds helper function createDefaultApplicationSeed() and an incomplete store definition that needs to be removed
src/components/partitionDetail/composables/usePartitionInformation.ts Renames EditMode type to PartitionEditMode for better clarity, but missing import for usePartitionStore
src/components/partitionDetail/PartitionName.vue Updates type import to use renamed PartitionEditMode
src/components/partitionDetail/PartitionGroup.vue Updates type import to use renamed PartitionEditMode
src/components/partitionDetail/PartitionBudget.vue Updates type import to use renamed PartitionEditMode
src/components/applicationDetail/composables/useApplicationInformation.ts New composable following the partition pattern, but contains incorrect error message referencing "partition" instead of "application"
src/components/applicationDetail/ApplicationLogs.vue Integrates the new useApplicationInformation composable
src/components/applicationDetail/ApplicationContent.vue Major refactor to use props/events pattern, but has duplicate imports and missing destructured functions from store

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/applicationDetail/composables/useApplicationInformation.ts Outdated
Comment thread src/components/applicationDetail/ApplicationContent.vue
Comment thread src/components/applicationDetail/ApplicationContent.vue Outdated
Comment thread src/components/applicationDetail/ApplicationContent.vue Outdated
Comment thread src/components/applicationDetail/ApplicationContent.vue Outdated
Comment thread src/components/applicationDetail/ApplicationContent.vue Outdated
Comment thread src/components/applicationDetail/ApplicationContent.vue Outdated
Comment thread src/features/application/store.ts Outdated
Comment thread src/components/applicationDetail/ApplicationContent.vue Outdated
Copy link
Copy Markdown
Contributor

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.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/applicationDetail/ApplicationLogs.vue
Comment thread src/features/application/store.ts
@sahara2006 sahara2006 requested a review from Copilot January 7, 2026 10:29
Copy link
Copy Markdown
Contributor

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.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/features/application/store.ts Outdated
Comment thread src/features/application/store.ts Outdated
Comment thread src/features/application/store.ts Outdated
Comment on lines +38 to +41
const hasAuthority = computed(() => {
if (!application.value) return false
return useApplication(application.value).isApplicationCreator.value(me.value)
})
Copy link

Copilot AI Jan 7, 2026

Choose a reason for hiding this comment

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

The hasAuthority computed property calls useApplication() on every evaluation. This composable should be called once at setup time, not inside a computed property. Consider moving the useApplication call outside the computed and storing isApplicationCreator in a ref or computed that references it.

Copilot uses AI. Check for mistakes.
Comment thread src/components/applicationDetail/ApplicationLogs.vue Outdated
sahara2006 and others added 2 commits January 7, 2026 22:21
重複する記述を削除

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

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 encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

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.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/features/application/store.ts Outdated
Comment thread src/components/applicationDetail/ApplicationContent.vue Outdated
Comment thread src/components/applicationDetail/ApplicationContent.vue Outdated
Copy link
Copy Markdown
Contributor Author

@sahara2006 sahara2006 left a comment

Choose a reason for hiding this comment

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

handleUpdateTargetの検討

Copy link
Copy Markdown
Contributor

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.

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 9 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/applicationDetail/ApplicationHeader.vue Outdated
Comment thread src/components/applicationDetail/ApplicationSidebar.vue Outdated
Comment thread src/components/applicationDetail/ApplicationTargets.vue Outdated
Comment thread src/components/applicationDetail/ApplicationTargets.vue Outdated
Comment thread src/components/applicationDetail/ApplicationTargets.vue Outdated
Comment thread src/components/applicationDetail/composables/useApplicationInformation.ts Outdated
Comment thread src/components/applicationDetail/ApplicationLogs.vue Outdated
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.

4 participants