diff --git a/.env.example b/.env.example index 830ee7bce..62b08a7b1 100644 --- a/.env.example +++ b/.env.example @@ -56,7 +56,7 @@ RAILS_MAX_THREADS=5 # The email from which all outgoing emails are sent # could user either `email@yourdomain.com` or `BrandName ` -MAILER_SENDER_EMAIL="Chatwoot " +MAILER_SENDER_EMAIL=Chatwoot #SMTP domain key is set up for HELO checking SMTP_DOMAIN=chatwoot.com diff --git a/app/javascript/dashboard/components/widgets/Thumbnail.vue b/app/javascript/dashboard/components/widgets/Thumbnail.vue index e0d9da24c..9cc4d7100 100644 --- a/app/javascript/dashboard/components/widgets/Thumbnail.vue +++ b/app/javascript/dashboard/components/widgets/Thumbnail.vue @@ -1,5 +1,5 @@ + + + diff --git a/app/javascript/dashboard/components/widgets/stories/ThumbnailGroup.stories.js b/app/javascript/dashboard/components/widgets/stories/ThumbnailGroup.stories.js new file mode 100644 index 000000000..b5dc8e932 --- /dev/null +++ b/app/javascript/dashboard/components/widgets/stories/ThumbnailGroup.stories.js @@ -0,0 +1,69 @@ +import ThumbnailGroup from '../ThumbnailGroup.vue'; + +export default { + title: 'Components/ThumbnailGroup', + component: ThumbnailGroup, + argTypes: { + usersList: { + defaultValue: [ + { + name: 'John', + id: 1, + thumbnail: '', + }, + { + name: 'John', + id: 2, + thumbnail: '', + }, + { + name: 'John', + id: 3, + thumbnail: '', + }, + { + name: 'John', + id: 4, + thumbnail: '', + }, + { + name: 'John', + id: 5, + thumbnail: '', + }, + { + name: 'John', + id: 6, + thumbnail: '', + }, + ], + control: { + type: 'object', + }, + }, + size: { + control: { + type: 'text', + }, + }, + moreThumbnailsText: { + control: { + type: 'text', + default: '2 more', + }, + }, + showMoreThumbnailsCount: { + control: { + type: 'boolean', + }, + }, + }, +}; + +const Template = (args, { argTypes }) => ({ + props: Object.keys(argTypes), + components: { ThumbnailGroup }, + template: '', +}); + +export const Primary = Template.bind({}); diff --git a/app/javascript/shared/constants/messages.js b/app/javascript/shared/constants/messages.js index ef3c0c142..ef77f5364 100644 --- a/app/javascript/shared/constants/messages.js +++ b/app/javascript/shared/constants/messages.js @@ -10,6 +10,13 @@ export const MESSAGE_TYPE = { ACTIVITY: 2, TEMPLATE: 3, }; + +export const CONVERSATION_STATUS = { + OPEN: 'open', + RESOLVED: 'resolved', + PENDING: 'pending', + SNOOZED: 'snoozed', +}; // Size in mega bytes export const MAXIMUM_FILE_UPLOAD_SIZE = 40; export const MAXIMUM_FILE_UPLOAD_SIZE_TWILIO_SMS_CHANNEL = 5; diff --git a/app/javascript/widget/assets/scss/woot.scss b/app/javascript/widget/assets/scss/woot.scss index 3f882eb38..a4957c3da 100755 --- a/app/javascript/widget/assets/scss/woot.scss +++ b/app/javascript/widget/assets/scss/woot.scss @@ -1,4 +1,5 @@ @import 'shared/assets/stylesheets/animations'; +@import 'shared/assets/stylesheets/colors'; @import 'reset'; @import 'tailwindcss/base'; diff --git a/app/javascript/widget/components/ConversationWrap.vue b/app/javascript/widget/components/ConversationWrap.vue index 07b7a61e6..eff57fd86 100755 --- a/app/javascript/widget/components/ConversationWrap.vue +++ b/app/javascript/widget/components/ConversationWrap.vue @@ -1,5 +1,5 @@