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(', ')), ->getStateUsing(fn ($record) => $record->themes->pluck('name')->join(', ')),
Column::make('release_date') Column::make('release_date')
->heading('Tanggal Rilis'), ->heading('Tanggal Rilis')
->formatStateUsing(fn ($state) => $state?->translatedFormat('l, d F Y')),
Column::make('issue_management_status') Column::make('issue_management_status')
->heading('Status Isu') ->heading('Status Isu')

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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