Feat: 特定のサービスのアカウントの URL を ID から自動で設定する #482
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
closes #333
やったこと
FormInputに disabled プロパティ追加やってないこと
mixi2,blueskyが無いため type-check が落ちます.PR Type
Enhancement
Description
サービス定義に
toUrl生成機能追加新規/編集フォームでURL自動生成実装
対象サービス時にURL欄をdisabled化
FormInputにdisabled属性追加Changes diagram
flowchart LR A["サービス種別選択 (formValues.type)"] --> B{"toUrl関数有無"} B -- "Yes" --> C["generateUrlFromId適用\n(formValues.url設定)"] B -- "No" --> D["手動URL入力"] C --> E["URL欄をdisabled化"] D --> F["URL欄を有効化"]Changes walkthrough 📝
FormInput.vue
FormInputにdisabled機能追加src/components/UI/FormInput.vue
disabledプロパティ追加false設定<input>要素に:disabledバインド追加UserAccountEdit.vue
編集フォームでURL自動生成設定src/pages/UserAccountEdit.vue
generateUrlFromId/hasUrlGenerator導入displayName算出用computed追加watchでURL自動更新処理追加:disabled条件設定UserAccountNew.vue
新規フォームでURL自動生成設定src/pages/UserAccountNew.vue
generateUrlFromId/hasUrlGenerator導入displayName算出用computed追加watchでURL自動更新処理追加:disabled条件設定services.ts
サービス定義にURL自動生成設定追加src/consts/services.ts
Service型にtoUrlオプション追加toUrl関数実装hasUrlGenerator/generateUrlFromIdヘルパー追加