fix: resolve tauri spawn path e alinhar cor do texto ao SLA
This commit is contained in:
parent
153b05efc8
commit
bb6c3c16a1
2 changed files with 7 additions and 7 deletions
|
|
@ -23,7 +23,7 @@ if (!process.env.TAURI_BUNDLE_TARGETS) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const executable = process.platform === "win32" ? "tauri.cmd" : "tauri"
|
const executable = process.platform === "win32" ? resolve(stubDir, "tauri.cmd") : "tauri"
|
||||||
const child = spawn(executable, process.argv.slice(2), {
|
const child = spawn(executable, process.argv.slice(2), {
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
shell: false,
|
shell: false,
|
||||||
|
|
|
||||||
|
|
@ -16,15 +16,15 @@ interface TicketQueueSummaryProps {
|
||||||
|
|
||||||
function resolveSlaTone(percent: number) {
|
function resolveSlaTone(percent: number) {
|
||||||
if (percent < 25) {
|
if (percent < 25) {
|
||||||
return { indicator: "bg-[#00e8ff]", text: "text-sky-600" }
|
return { indicatorClass: "bg-[#00e8ff]", textClass: "text-[#00e8ff]" }
|
||||||
}
|
}
|
||||||
if (percent < 50) {
|
if (percent < 50) {
|
||||||
return { indicator: "bg-emerald-400", text: "text-emerald-600" }
|
return { indicatorClass: "bg-emerald-400", textClass: "text-emerald-500" }
|
||||||
}
|
}
|
||||||
if (percent < 75) {
|
if (percent < 75) {
|
||||||
return { indicator: "bg-amber-400", text: "text-amber-600" }
|
return { indicatorClass: "bg-amber-400", textClass: "text-amber-500" }
|
||||||
}
|
}
|
||||||
return { indicator: "bg-rose-500", text: "text-rose-600" }
|
return { indicatorClass: "bg-rose-500", textClass: "text-rose-500" }
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TicketQueueSummaryCards({ queues, layout = "default" }: TicketQueueSummaryProps) {
|
export function TicketQueueSummaryCards({ queues, layout = "default" }: TicketQueueSummaryProps) {
|
||||||
|
|
@ -106,8 +106,8 @@ export function TicketQueueSummaryCards({ queues, layout = "default" }: TicketQu
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="pt-1">
|
<div className="pt-1">
|
||||||
<Progress value={breachPercent} className="h-1.5 bg-slate-100" indicatorClassName={slaTone.indicator} />
|
<Progress value={breachPercent} className="h-1.5 bg-slate-100" indicatorClassName={slaTone.indicatorClass} />
|
||||||
<span className={`mt-2 block text-xs font-medium ${slaTone.text}`}>
|
<span className={`mt-2 block text-xs font-medium ${slaTone.textClass}`}>
|
||||||
{breachPercent}% dos chamados da fila estão fora do SLA
|
{breachPercent}% dos chamados da fila estão fora do SLA
|
||||||
</span>
|
</span>
|
||||||
<span className="mt-1 block text-xs text-neutral-400">
|
<span className="mt-1 block text-xs text-neutral-400">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue