-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update the design for SLA policy management pages (#9136)
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com> Co-authored-by: Pranav <pranav@chatwoot.com>
- Loading branch information
1 parent
e94b276
commit 6d4551b
Showing
7 changed files
with
109 additions
and
112 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
19 changes: 18 additions & 1 deletion
19
app/javascript/dashboard/routes/dashboard/settings/SettingsLayout.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 |
---|---|---|
@@ -1,6 +1,23 @@ | ||
<script setup> | ||
defineProps({ | ||
isLoading: { | ||
type: Boolean, | ||
default: false, | ||
}, | ||
loadingMessage: { | ||
type: String, | ||
default: '', | ||
}, | ||
}); | ||
</script> | ||
<template> | ||
<div class="flex flex-col w-full h-full gap-10 font-inter"> | ||
<slot name="header" /> | ||
<slot name="body" /> | ||
<div> | ||
<slot v-if="isLoading" name="loading"> | ||
<woot-loading-state :message="loadingMessage" /> | ||
</slot> | ||
<slot v-else name="body" /> | ||
</div> | ||
</div> | ||
</template> |
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
30 changes: 30 additions & 0 deletions
30
app/javascript/dashboard/routes/dashboard/settings/sla/components/SLAListItemLoading.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,30 @@ | ||
<script setup> | ||
import BaseSettingsListItem from '../../components/BaseSettingsListItem.vue'; | ||
</script> | ||
<template> | ||
<base-settings-list-item class="opacity-50"> | ||
<template #title> | ||
<div class="w-24 h-[26px] rounded-md bg-slate-50 animate-pulse" /> | ||
</template> | ||
<template #description> | ||
<div class="w-64 h-4 mb-0.5 rounded-md bg-slate-50 animate-pulse" /> | ||
<div class="w-48 h-4 rounded-md bg-slate-50 animate-pulse" /> | ||
</template> | ||
<template #label> | ||
<div class="w-32 h-[26px] bg-slate-50 animate-pulse rounded-md" /> | ||
</template> | ||
<template #rightSection> | ||
<div | ||
class="flex items-center sm:rtl:!border-l-0 sm:rtl:!border-r sm:rtl:border-solid sm:rtl:border-slate-75 sm:rtl:dark:border-slate-700/50 gap-1.5 w-fit sm:w-full sm:gap-0 sm:justify-between" | ||
> | ||
<div | ||
v-for="ii in 3" | ||
:key="ii" | ||
class="flex justify-end w-1/3 h-full px-4" | ||
> | ||
<div class="w-32 h-full rounded-md bg-slate-50 animate-pulse" /> | ||
</div> | ||
</div> | ||
</template> | ||
</base-settings-list-item> | ||
</template> |
10 changes: 3 additions & 7 deletions
10
app/javascript/dashboard/routes/dashboard/settings/sla/sla.routes.js
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