### Summary - Converts conversation auto-resolution duration from days to minutes for more granular control - Updates validation to allow values from 10 minutes (minimum) to 999 days (maximum) - Implements smart messaging to show appropriate time units in activity messages ### Changes - Created migration to convert existing durations from days to minutes (x1440) - Updated conversation resolver to use minutes instead of days - Added dynamic translation key selection based on duration value - Updated related specs and documentation - Added support for displaying durations in days, hours, or minutes based on value ### Test plan - Verify account validation accepts new minute-based ranges - Confirm existing account settings are correctly migrated - Test auto-resolution works properly with minute values - Ensure proper time unit display in activity messages --------- Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
41 lines
830 B
Vue
41 lines
830 B
Vue
<script setup>
|
|
defineProps({
|
|
title: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
description: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
withBorder: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<section
|
|
class="grid grid-cols-1 py-8 gap-10"
|
|
:class="{ 'border-t border-n-weak': withBorder }"
|
|
>
|
|
<header class="grid grid-cols-4">
|
|
<div class="col-span-3">
|
|
<h4 class="text-lg font-medium text-n-slate-12">
|
|
<slot name="title">{{ title }}</slot>
|
|
</h4>
|
|
<p class="text-n-slate-11">
|
|
<slot name="description">{{ description }}</slot>
|
|
</p>
|
|
</div>
|
|
<div class="col-span-1">
|
|
<slot name="headerActions" />
|
|
</div>
|
|
</header>
|
|
<div class="text-n-slate-12">
|
|
<slot />
|
|
</div>
|
|
</section>
|
|
</template>
|