-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(callout-admin-ux): Moved intro message to sidebar tabs
Introduce an intro message tab in the sidebar for callouts. This change includes the addition of a new `IntroMessageTab` component and updates to the sidebar tabs interface to accommodate the new tab. The intro text is now editable via a rich text editor, enhancing the user experience by allowing customization of introductory content.
- Loading branch information
Showing
7 changed files
with
59 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...tend/src/components/pages/admin/callouts/tabs/ContentTab/sidebar-tabs/IntroMessageTab.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!-- eslint-disable vue/no-mutating-props --> | ||
<template> | ||
<div class="flex h-full flex-col overflow-y-hidden"> | ||
<AppFormSection> | ||
<!-- TODO: Change locale key path to calloutBuilder.intro.label --> | ||
<LocaleRichTextEditor | ||
v-model="data.introText" | ||
:locales="locales" | ||
:label="t('createCallout.tabs.titleAndImage.inputs.intro.label')" | ||
required | ||
/> | ||
</AppFormSection> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { useI18n } from 'vue-i18n'; | ||
import AppFormSection from '@components/forms/AppFormSection.vue'; | ||
import LocaleRichTextEditor from '@components/forms/LocaleRichTextEditor.vue'; | ||
import type { IntroMessageTabProps } from '../sidebar-tabs.interface'; | ||
|
||
interface Props { | ||
data: IntroMessageTabProps; | ||
locales: string[]; | ||
} | ||
|
||
defineProps<Props>(); | ||
const { t } = useI18n(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters