refactor: remove 'news_page' field from Media Monitoring resources for simplification
This commit is contained in:
parent
2a82afca1b
commit
fbcbcfaec6
@ -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, ''),
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
@ -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...')
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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),
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user