refactor: update column labels for improved clarity and consistency across multiple resources

This commit is contained in:
Yoga Pangestu 2026-04-07 14:40:26 +07:00
parent c53f22d30b
commit a996fd6de2
7 changed files with 22 additions and 19 deletions

View File

@ -49,7 +49,8 @@ public function setUp()
->getStateUsing(fn ($record) => $record->themes->pluck('name')->join(', ')),
Column::make('release_date')
->heading('Tanggal Rilis'),
->heading('Tanggal Rilis')
->formatStateUsing(fn ($state) => $state?->translatedFormat('l, d F Y')),
Column::make('issue_management_status')
->heading('Status Isu')

View File

@ -143,7 +143,7 @@ public static function configure(Table $table): Table
->toggleable(isToggledHiddenByDefault: true),
TextColumn::make('description')
->label('Deskripsi')
->label('Deskripsi Kerja Sama')
->searchable()
->limit(50)
->wrap()

View File

@ -44,7 +44,7 @@ public static function configure(Table $table): Table
->description(fn (ContentRecap $contentRecap): string => $contentRecap->link),
TextColumn::make('type')
->label('Tipe')
->label('Tipe Konten')
->badge()
->color(fn (ContentType $state): string => $state->getColor())
->searchable()
@ -68,7 +68,7 @@ public static function configure(Table $table): Table
->sortable(),
TextColumn::make('posting_date')
->label('Tgl Posting')
->label('Tanggal Posting')
->searchable()
->sortable()
->date('l, d F Y'),
@ -93,7 +93,7 @@ public static function configure(Table $table): Table
->native(false),
SelectFilter::make('type')
->label('Jenis Konten')
->label('Tipe Konten')
->options(ContentType::class)
->native(false),

View File

@ -40,19 +40,19 @@ public static function configure(Table $table): Table
->sortable(),
TextColumn::make('issue')
->label('Isu')
->label('Sentimen Isu')
->badge()
->searchable()
->sortable(),
TextColumn::make('response')
->label('Respon')
->label('Respon Pemerintah')
->badge()
->searchable()
->sortable(),
TextColumn::make('departments.name')
->label('Perangkat Daerah')
->label('Perangkat Daerah Terkait')
->badge()
->searchable()
->sortable(),
@ -85,12 +85,12 @@ public static function configure(Table $table): Table
->visible(fn () => auth()->user()?->hasRole(RoleEnum::DEVELOPER->value)),
SelectFilter::make('issue')
->label('Filter Isu')
->label('Sentimen Isu')
->options(IssueSentiment::class)
->native(false),
SelectFilter::make('response')
->label('Filter Respon')
->label('Respon Pemerintah')
->options(IssueSentiment::class)
->native(false),
@ -109,7 +109,7 @@ public static function configure(Table $table): Table
->native(false),
SelectFilter::make('departments')
->label('Perangkat Daerah')
->label('Perangkat Daerah Terkait')
->relationship('departments', 'name')
->searchable()
->preload()

View File

@ -62,17 +62,19 @@ public static function configure(Table $table): Table
->sortable(),
TextColumn::make('link')
->label('Tautan')
->label('Tautan (URL)')
->searchable()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
TextColumn::make('influencer')
->label('Influencer')
->searchable()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
TextColumn::make('keyword')
->label('Kata Kunci')
->searchable()
->sortable()
->toggleable(isToggledHiddenByDefault: true),

View File

@ -36,7 +36,7 @@ public static function configure(Table $table): Table
->wrap(),
TextColumn::make('content')
->label('Konten')
->label('Isi Pengumuman')
->searchable()
->sortable()
->wrap()
@ -45,12 +45,12 @@ public static function configure(Table $table): Table
->toggleable(isToggledHiddenByDefault: true),
TextColumn::make('type')
->label('Tipe')
->label('Tipe Pengumuman')
->badge()
->sortable(),
TextColumn::make('partnerMedia')
->label('Penerima')
->label('Penerima Khusus')
->getStateUsing(
fn ($record) => $record->partnerMedia->pluck('name')->toArray()
)
@ -66,7 +66,7 @@ public static function configure(Table $table): Table
])
->filters([
SelectFilter::make('type')
->label('Tipe')
->label('Tipe Pengumuman')
->options(AnnouncementType::class)
->native(false),

View File

@ -51,7 +51,7 @@ public static function configure(Table $table): Table
->placeholder('Tidak ada tag'),
TextColumn::make('status')
->label('Status')
->label('Status Publikasi')
->searchable()
->sortable()
->badge()
@ -73,12 +73,12 @@ public static function configure(Table $table): Table
])
->filters([
SelectFilter::make('status')
->label('Status')
->label('Status Publikasi')
->options(NewsStatus::class)
->native(false),
SelectFilter::make('tags')
->label('Tag')
->label('Tag Berita')
->relationship('tags', 'name')
->multiple()
->preload()