Skip to content

Commit

Permalink
Merge pull request #791 from weni-ai/feature/pre-production-deploy-21…
Browse files Browse the repository at this point in the history
…-set-2023

Feature/pre production deploy 21 set 2023
  • Loading branch information
cristiantela authored Sep 28, 2023
2 parents 5d4d62d + 537bc26 commit 8bef215
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 27 deletions.
5 changes: 4 additions & 1 deletion src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
<div class="page-container">
<warning-max-active-contacts />

<warning-verify-mail />
<!--
temporarily hidden: comming soon
<warning-verify-mail />
-->

<router-view
v-show="!externalSystems.includes($route.name)"
Expand Down
19 changes: 9 additions & 10 deletions src/views/projects/templates/gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
</div>

<div
v-for="option in ['sales', 'support']"
v-for="option in ['Vendas', 'Suporte']"
:key="option"
:class="[
'u font secondary body-md color-neutral-cloudy option',
{ bold: filterCategory === option },
]"
@click="filterCategory = option"
>
{{ $t(`projects.create.format.categories.${option}`) }}
{{ option }}
</div>

<div
Expand All @@ -67,10 +67,10 @@

<template v-if="isIntegrationsTopicOpen">
<div
@click="filterCategory = 'integrations--omie'"
@click="filterCategory = 'Integrações--omie'"
:class="[
'u font secondary body-md color-neutral-cloudy sub-1 option',
{ bold: filterCategory === 'integrations--omie' },
{ bold: filterCategory === 'Integrações--omie' },
]"
>
Omie
Expand Down Expand Up @@ -102,9 +102,9 @@
<unnnic-tag
class="category"
scheme="aux-baby-blue"
:text="
$t(`projects.create.format.categories.${template.category}`)
"
:text="category"
v-for="category in template.category"
:key="category"
type="default"
></unnnic-tag>
</div>
Expand Down Expand Up @@ -212,9 +212,8 @@ export default {
}
if (this.filterCategory) {
filtered = filtered.filter(
(template) =>
template.category === this.filterCategory.split('--')[0],
filtered = filtered.filter((template) =>
template.category.includes(this.filterCategory.split('--')[0]),
);
}
Expand Down
4 changes: 3 additions & 1 deletion src/views/projects/templates/info.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<unnnic-tag
class="category"
scheme="aux-baby-blue"
:text="$t(`projects.create.format.categories.${template.category}`)"
:text="category"
v-for="category in template.category"
:key="category"
type="default"
></unnnic-tag>

Expand Down
36 changes: 21 additions & 15 deletions src/views/register/forms/TemplateGallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
</div>

<unnnic-tag
:text="$t(`projects.create.format.categories.${value}`)"
:text="value"
:class="[
'category',
`category--${value}`,
`category--${clearString(value)}`,
{ 'category--selected': value === category },
]"
clickable
Expand Down Expand Up @@ -53,13 +53,13 @@

<div class="categories">
<unnnic-tag
:text="
$t(`projects.create.format.categories.${template.category}`)
"
:text="category"
v-for="category in template.category"
:key="category"
:class="[
'category',
'category--selected',
`category--${template.category}`,
`category--${clearString(category)}`,
]"
disabled
></unnnic-tag>
Expand All @@ -81,15 +81,13 @@

<div class="categories">
<unnnic-tag
:text="
$t(
`projects.create.format.categories.${templateDetails.category}`,
)
"
:text="category"
v-for="category in templateDetails.category"
:key="category"
:class="[
'category',
'category--selected',
`category--${templateDetails.category}`,
`category--${clearString(category)}`,
]"
disabled
></unnnic-tag>
Expand Down Expand Up @@ -282,6 +280,14 @@ export default {
this.selectedTemplate = this.templateSettings.uuid;
this.templateSettings = null;
},
clearString(string) {
return string
.normalize('NFD')
.replace(/[\u0300-\u036f]/g, '')
.replace(/ /g, '_')
.toLowerCase();
},
},
computed: {
Expand Down Expand Up @@ -344,9 +350,9 @@ export default {
user-select: none;
$category-colors: 'recommended' $unnnic-color-aux-blue-500,
'sales' $unnnic-color-aux-purple-500,
'support' $unnnic-color-aux-orange-500,
'trending' $unnnic-color-aux-yellow-500;
'vendas' $unnnic-color-aux-purple-500,
'suporte' $unnnic-color-aux-orange-500,
'integracoes' $unnnic-color-aux-yellow-500;
@each $name, $color in $category-colors {
&--#{$name}.category--selected {
Expand Down

0 comments on commit 8bef215

Please sign in to comment.