From 9c54ffb7a8d545f6b96f8b5d34fadaebf823ef52 Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Wed, 3 Jan 2024 16:40:24 +0800 Subject: [PATCH] Update onboarding and error handling experience (#29) --- ...-3a99ab53-f8fd-4f5f-a171-0ed4135ebfee.json | 7 +++ src/components/application/Confirm.vue | 26 ++++---- src/components/chat/InputBox.vue | 10 ++++ src/components/chat/Message.vue | 60 ++++++++++++++++--- src/components/common/ApiStatus.vue | 22 ++++++- src/components/common/Navigator.vue | 6 +- src/constants/errorCode.ts | 1 + src/i18n/zh/application/message.ts | 4 +- src/i18n/zh/chat/message.ts | 1 + src/i18n/zh/common/button.ts | 1 + src/operators/chat/models.ts | 2 +- src/operators/instance.ts | 2 +- src/pages/chat/Conversation.vue | 44 +++++++++++--- src/pages/midjourney/History.vue | 4 ++ src/pages/midjourney/Index.vue | 6 +- src/store/chat/actions.ts | 5 ++ src/store/chat/mutations.ts | 10 +++- src/store/common/actions.ts | 18 +++++- src/store/common/models.ts | 3 +- src/store/common/mutations.ts | 12 +++- src/store/midjourney/actions.ts | 5 ++ src/store/midjourney/mutations.ts | 10 +++- src/utils/is.ts | 12 ++++ 23 files changed, 228 insertions(+), 43 deletions(-) create mode 100644 change/@zhishuyun-hub-3a99ab53-f8fd-4f5f-a171-0ed4135ebfee.json create mode 100644 src/utils/is.ts diff --git a/change/@zhishuyun-hub-3a99ab53-f8fd-4f5f-a171-0ed4135ebfee.json b/change/@zhishuyun-hub-3a99ab53-f8fd-4f5f-a171-0ed4135ebfee.json new file mode 100644 index 00000000..3726387d --- /dev/null +++ b/change/@zhishuyun-hub-3a99ab53-f8fd-4f5f-a171-0ed4135ebfee.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "update onboarding experience ", + "packageName": "@zhishuyun/hub", + "email": "cqc@germey.cn", + "dependentChangeType": "patch" +} diff --git a/src/components/application/Confirm.vue b/src/components/application/Confirm.vue index b0bf9305..662783a2 100644 --- a/src/components/application/Confirm.vue +++ b/src/components/application/Confirm.vue @@ -1,18 +1,7 @@ @@ -76,7 +70,7 @@ export default defineComponent({ data(): IData { return { applicationType: IApplicationType, - checked: false, + checked: true, showPolicy: false }; }, @@ -97,6 +91,10 @@ export default defineComponent({ .content { padding: 10px 40px; + .description { + font-size: 12px; + } + .btn-apply { border-radius: 20px; } diff --git a/src/components/chat/InputBox.vue b/src/components/chat/InputBox.vue index 2c7be77d..d8f73438 100644 --- a/src/components/chat/InputBox.vue +++ b/src/components/chat/InputBox.vue @@ -35,6 +35,7 @@ diff --git a/src/components/chat/Message.vue b/src/components/chat/Message.vue index 2cec7321..c39a398b 100644 --- a/src/components/chat/Message.vue +++ b/src/components/chat/Message.vue @@ -1,5 +1,12 @@