refactor: remove 'news_page' field from Media Monitoring resources for simplification

This commit is contained in:
Yoga Pangestu 2026-04-07 14:24:00 +07:00
parent 2a82afca1b
commit fbcbcfaec6
6 changed files with 5 additions and 24 deletions

View File

@ -53,7 +53,6 @@ public function handle()
'channel' => $this->mapChannel($legacy->channel),
'writter' => Str::limit($legacy->writter, 50, ''),
'link' => $legacy->link,
'news_page' => Str::limit($legacy->news_page, 20, ''),
'quote' => $legacy->quote,
'content' => $legacy->content,
'influencer' => Str::limit($legacy->influencer, 50, ''),

View File

@ -38,9 +38,6 @@ public function setUp()
Column::make('link')
->heading('Tautan'),
Column::make('news_page')
->heading('Halaman Berita'),
Column::make('influencer')
->heading('Influencer'),
@ -87,7 +84,7 @@ public function registerEvents(): array
return [
AfterSheet::class => function (AfterSheet $event) {
$sheet = $event->sheet->getDelegate();
$lastColumn = 'L'; // Based on column count (A-L)
$lastColumn = 'K'; // Based on column count (A-K)
$sheet->mergeCells("A1:{$lastColumn}1");

View File

@ -49,21 +49,14 @@ public static function configure(Schema $schema): Schema
->required()
->maxLength(50),
TextInput::make('news_page')
->label('Halaman Berita')
->placeholder('Halaman 1 s/d 10')
TextInput::make('link')
->label('Tautan (URL)')
->placeholder('https://www.pwknews.com')
->autocomplete(false)
->nullable()
->maxLength(20),
->url(),
]),
TextInput::make('link')
->label('Tautan (URL)')
->placeholder('https://www.pwknews.com')
->autocomplete(false)
->nullable()
->url(),
RichEditor::make('quote')
->label('Kutipan Penting')
->placeholder('Masukkan kutipan penting dari berita...')

View File

@ -67,12 +67,6 @@ public static function configure(Table $table): Table
->sortable()
->toggleable(isToggledHiddenByDefault: true),
TextColumn::make('news_page')
->label('Halaman Berita')
->searchable()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
TextColumn::make('influencer')
->searchable()
->sortable()

View File

@ -103,7 +103,6 @@ public function crawlFromGoogleNews(string $keyword, int $limit = 10, array $the
'channel' => Channel::WEBSITE->value,
'writter' => Str::limit($extra['writer'] ?: 'Redaksi', 50),
'link' => $itemData['original_link'],
'news_page' => null, // Asked to be null if not specific pagination
'quote' => Str::limit($finalContent, 500),
'content' => $finalContent,
'keyword' => Str::limit($searchQuery, 100),

View File

@ -20,7 +20,6 @@ public function up(): void
$table->enum('channel', Channel::values())->default(Channel::WEBSITE->value)->comment(Channel::comment())->index();
$table->string('writter', 50);
$table->text('link')->nullable();
$table->string('news_page', 20)->nullable();
$table->text('quote')->nullable();
$table->text('content');
$table->string('influencer', 50)->nullable();