Skip to content

Commit dc51bfd

Browse files
committed
UP
1 parent cf06a03 commit dc51bfd

File tree

5 files changed

+14
-38
lines changed

5 files changed

+14
-38
lines changed

resources/css/flowforge.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,6 @@
123123
margin-bottom: var(--kanban-spacing-xs);
124124
}
125125

126-
.kanban-column-header::after {
127-
content: '';
128-
position: absolute;
129-
height: 3px;
130-
width: 40px;
131-
left: 0.75rem;
132-
bottom: -6px;
133-
background: theme('colors.primary.500');
134-
border-radius: 3px;
135-
opacity: 0.7;
136-
}
137-
138126
/* Card Styles */
139127
.kanban-card {
140128
transition-property: box-shadow, transform, background-color;

resources/dist/flowforge.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6260,18 +6260,6 @@ input:focus-visible+.dark\:\[input\:focus-visible\+\&\]\:ring-white\/20:is(.dark
62606260
margin-bottom: var(--kanban-spacing-xs);
62616261
}
62626262

6263-
.kanban-column-header::after {
6264-
content: '';
6265-
position: absolute;
6266-
height: 3px;
6267-
width: 40px;
6268-
left: 0.75rem;
6269-
bottom: -6px;
6270-
background: rgba(var(--primary-500), 1);
6271-
border-radius: 3px;
6272-
opacity: 0.7;
6273-
}
6274-
62756263
/* Card Styles */
62766264

62776265
.kanban-card {

src/Concerns/FormHandlingTrait.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ trait FormHandlingTrait
1616
* Get the form for creating cards.
1717
*
1818
* @param Form $form The form instance
19-
* @param mixed $activeColumn The active column
19+
* @param mixed $currentColumn The current column
2020
*/
21-
public function getCreateForm(Form $form, mixed $activeColumn): Form
21+
public function getCreateForm(Form $form, mixed $currentColumn): Form
2222
{
2323
// Fall back to default create form implementation
2424
$titleField = $this->config->getTitleField();
2525
$descriptionField = $this->config->getDescriptionField();
2626

2727
$schema = KanbanConfig::getDefaultCreateFormSchema($titleField, $descriptionField);
2828

29-
// For create form, set the column field value based on the active column
29+
// For create form, set the column field value based on the current column
3030
// but hide it from the form as it's determined by where the user clicked
31-
if ($activeColumn) {
31+
if ($currentColumn) {
3232
$form->statePath(null);
3333
}
3434

src/Contracts/KanbanAdapterInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public function getColumnItemsCount(string|int $columnId): int;
5353
* Get the form for creating cards.
5454
*
5555
* @param Form $form The form instance
56-
* @param mixed $activeColumn The active column
56+
* @param mixed $currentColumn The current column
5757
*/
58-
public function getCreateForm(Form $form, mixed $activeColumn): Form;
58+
public function getCreateForm(Form $form, mixed $currentColumn): Form;
5959

6060
/**
6161
* Get the form for editing cards.

src/Livewire/KanbanBoard.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class KanbanBoard extends Component implements HasForms
9595
* @var array
9696
*/
9797
#[Validate]
98-
public array $cardData = [];
98+
public array $recordData = [];
9999

100100
/**
101101
* Number of cards to load when clicking "load more".
@@ -211,7 +211,7 @@ public function createRecordForm(Form $form): Form
211211
{
212212
$form = $this->adapter->getCreateForm($form, $this->currentColumn);
213213

214-
return $form->model($this->adapter->baseQuery->getModel())->statePath('cardData');
214+
return $form->model($this->adapter->baseQuery->getModel())->statePath('recordData');
215215
}
216216

217217
/**
@@ -221,7 +221,7 @@ public function editRecordForm(Form $form): Form
221221
{
222222
$form = $this->adapter->getEditForm($form);
223223

224-
return $form->model($this->adapter->baseQuery->getModel())->statePath('cardData');
224+
return $form->model($this->adapter->baseQuery->getModel())->statePath('recordData');
225225
}
226226

227227
/**
@@ -333,13 +333,13 @@ public function openCreateForm(string $columnId): void
333333

334334
// Pre-set the column field
335335
$columnField = $this->config['columnField'];
336-
$this->cardData[$columnField] = $columnId;
336+
$this->recordData[$columnField] = $columnId;
337337

338338
// Apply any order field if needed
339339
$orderField = $this->config['orderField'];
340340
if ($orderField !== null) {
341341
$count = $this->getColumnItemsCount($columnId);
342-
$this->cardData[$orderField] = $count + 1;
342+
$this->recordData[$orderField] = $count + 1;
343343
}
344344
}
345345

@@ -369,7 +369,7 @@ public function openEditForm(string|int $cardId, string $columnId): void
369369

370370
// Fill form with card data
371371
$this->editRecordForm->fill($card->toArray());
372-
$this->cardData = $card->toArray();
372+
$this->recordData = $card->toArray();
373373
}
374374

375375
/**
@@ -412,7 +412,7 @@ public function createRecord(): void
412412
*/
413413
private function resetCreateForm(): void
414414
{
415-
$this->cardData = [];
415+
$this->recordData = [];
416416
$this->createRecordForm->fill();
417417
}
418418

@@ -460,7 +460,7 @@ public function updateRecord(): void
460460
*/
461461
private function resetEditForm(): void
462462
{
463-
$this->cardData = [];
463+
$this->recordData = [];
464464
$this->editRecordForm->fill();
465465
}
466466

0 commit comments

Comments
 (0)