refactor: remove unused UI elements from LoginForm.vue and ProductForm.vue for cleaner design and improved user experience

This commit is contained in:
Yoga Pangestu 2026-06-19 21:17:51 +07:00
parent e55df2cd4f
commit 7af2cca9f0
3 changed files with 6 additions and 35 deletions

View File

@ -107,26 +107,6 @@ function submit() {
{{ form.processing ? 'Memuat...' : 'Masuk' }}
</Button>
</Field>
<FieldSeparator
class="*:data-[slot=field-separator-content]:bg-card"
>
Atau lanjutkan dengan
</FieldSeparator>
<Field class="grid gap-4">
<Button variant="outline" type="button">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<path
d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
fill="currentColor"
/>
</svg>
<span>Google</span>
</Button>
</Field>
</FieldGroup>
</form>
<div class="relative hidden bg-muted md:block">

View File

@ -254,10 +254,6 @@ function submit() {
</Field>
</FieldSet>
<p class="text-xs text-muted-foreground">
Harga jual diatur saat verifikasi proses cutting.
</p>
<div>
<MultipleImageUploadField :id="`variant_images_${variant.client_id}`"
v-model="variant.media" label="Foto Varian" :max-files="5" required

View File

@ -15,6 +15,7 @@ import {
FieldLabel,
FieldSet,
} from '@/components/ui/field';
import FieldDescription from '@/components/ui/field/FieldDescription.vue';
import { Input } from '@/components/ui/input';
import {
Select,
@ -238,17 +239,14 @@ function submit() {
<FieldSet class="grid gap-4 md:grid-cols-2">
<Field>
<FieldLabel for="name" required>Nama Bahan Baku</FieldLabel>
<Input id="name" v-model="form.name" type="text" placeholder="Contoh: Kain Katun Premium"
:maxlength="FIELD_LIMITS.name" />
<Input id="name" v-model="form.name" type="text"
placeholder="Contoh: Kain Katun Premium" :maxlength="FIELD_LIMITS.name" />
<FieldError :errors="formErrors(form, 'name')" />
</Field>
<Field>
<FieldLabel for="unit" required>Satuan</FieldLabel>
<Select
v-if="!isEditMode"
v-model="form.unit"
>
<Select v-if="!isEditMode" v-model="form.unit">
<SelectTrigger id="unit" class="w-full">
<SelectValue placeholder="Pilih satuan" />
</SelectTrigger>
@ -258,11 +256,8 @@ function submit() {
</SelectItem>
</SelectContent>
</Select>
<div
v-else
id="unit"
class="flex h-9 w-full items-center rounded-md border bg-muted/40 px-3 text-sm"
>
<div v-else id="unit"
class="flex h-9 w-full items-center rounded-md border bg-muted/40 px-3 text-sm">
{{ unitLabel }}
</div>
<p v-if="isEditMode" class="text-xs text-muted-foreground">