refactor: standardize capitalization of 'Sample' and 'Diluar Sample' across cutting-related components for consistency in UI presentation

This commit is contained in:
Yoga Pangestu 2026-06-29 09:08:43 +07:00
parent 4135dcb4c3
commit 9bab455f57
8 changed files with 18 additions and 18 deletions

View File

@ -34,7 +34,7 @@ export function cuttingStatusTransitionConfirmDescription(targetStatus: string):
}
if (targetStatus === CuttingStatus.VERIFIED) {
return 'Hasil cutting akan diverifikasi. Stok sample dan hasil cutting diluar sample akan ditambahkan ke produk.';
return 'Hasil cutting akan diverifikasi. Stok Sample dan hasil cutting Diluar Sample akan ditambahkan ke produk.';
}
if (targetStatus === CuttingStatus.IN_PROGRESS) {

View File

@ -64,9 +64,9 @@ const open = defineModel<boolean>('open', { required: true });
<div class="mt-1.5 flex items-center gap-3 text-xs tabular-nums">
<span>Hasil: <strong>{{ item.cutting_result }}</strong></span>
<span class="text-muted-foreground">·</span>
<span>sample: <strong>{{ item.sample }}</strong></span>
<span>Sample: <strong>{{ item.sample }}</strong></span>
<span class="text-muted-foreground">·</span>
<span>Diluar sample: <strong>{{ item.original_outside_sample }}</strong></span>
<span>Diluar Sample: <strong>{{ item.original_outside_sample }}</strong></span>
</div>
</div>
</div>

View File

@ -59,12 +59,12 @@ const emit = defineEmits<{
@change="emit('sync-totals', item); emit('sync-field', index)" />
</Field>
<Field>
<FieldLabel class="text-xs">sample</FieldLabel>
<FieldLabel class="text-xs">Sample</FieldLabel>
<NumberInput v-model="item.sample" class="h-8"
@change="emit('sync-totals', item); emit('sync-field', index)" />
</Field>
<Field>
<FieldLabel class="text-xs">Diluar sample</FieldLabel>
<FieldLabel class="text-xs">Diluar Sample</FieldLabel>
<NumberInput v-model="item.original_outside_sample" class="h-8" />
</Field>
</div>

View File

@ -197,8 +197,8 @@ function getGroupedResults(results: any[]): GroupedCuttingResults[] {
<TableRow>
<TableHead>Varian</TableHead>
<TableHead>Hasil</TableHead>
<TableHead>sample</TableHead>
<TableHead>Diluar sample</TableHead>
<TableHead>Sample</TableHead>
<TableHead>Diluar Sample</TableHead>
</TableRow>
</TableHeader>
<TableBody>

View File

@ -187,12 +187,12 @@ function submitVerify() {
<div>
<span class="text-muted-foreground block mb-0.5">Data cutting:</span>
<span class="font-medium tabular-nums">
{{ result.original_sample }} sample ·
{{ result.original_original_outside_sample }} diluar sample
{{ result.original_sample }} Sample ·
{{ result.original_original_outside_sample }} Diluar Sample
</span>
</div>
<div>
<span class="text-muted-foreground block">Diluar sample:</span>
<span class="text-muted-foreground block">Diluar Sample:</span>
<Badge variant="secondary" class="font-semibold">
{{ result.original_outside_sample }} pcs
</Badge>
@ -200,7 +200,7 @@ function submitVerify() {
</div>
<div class="grid grid-cols-2 gap-2 items-end text-xs">
<div>
<label :for="`sample-${index}`" class="text-muted-foreground block mb-0.5">sample
<label :for="`sample-${index}`" class="text-muted-foreground block mb-0.5">Sample
(diterima):</label>
<Input :id="`sample-${index}`" type="number" v-model.number="result.sample" min="0"
:max="result.cutting_result" class="h-8 w-full px-2 text-xs"
@ -210,7 +210,7 @@ function submitVerify() {
<div>
<label :for="`diluar-sample-${index}`"
class="text-muted-foreground block mb-0.5">Diluar
sample
Sample
(diterima):</label>
<Input :id="`diluar-sample-${index}`" type="number"
v-model.number="result.original_outside_sample" min="0"

View File

@ -49,8 +49,8 @@ defineProps<{
<TableRow>
<TableHead>Varian</TableHead>
<TableHead>Hasil</TableHead>
<TableHead>sample</TableHead>
<TableHead>Diluar sample</TableHead>
<TableHead>Sample</TableHead>
<TableHead>Diluar Sample</TableHead>
</TableRow>
</TableHeader>
<TableBody>

View File

@ -100,8 +100,8 @@ const showingCount = computed(() => props.cuttings.length);
<TableRow>
<TableHead>Varian</TableHead>
<TableHead>Hasil</TableHead>
<TableHead>sample</TableHead>
<TableHead>Diluar sample</TableHead>
<TableHead>Sample</TableHead>
<TableHead>Diluar Sample</TableHead>
</TableRow>
</TableHeader>
<TableBody>

View File

@ -186,8 +186,8 @@ function submitVerify() {
<p class="font-medium text-sm truncate">{{ result.name }}</p>
<p class="text-xs text-muted-foreground">
{{ result.cutting_result }} pcs
<span class="text-[10px]">({{ result.original_sample }} sample, {{
result.original_outside_sample }} outside sample)</span>
<span class="text-[10px]">({{ result.original_sample }} Sample, {{
result.original_outside_sample }} Outside Sample)</span>
</p>
</div>
<div class="flex items-center gap-2 shrink-0">