Skip to content

Commit

Permalink
Merge branch 'master' into imap-work
Browse files Browse the repository at this point in the history
  • Loading branch information
devansh-webkul committed Jan 16, 2025
2 parents 2049749 + 748a3eb commit d4f2112
Show file tree
Hide file tree
Showing 252 changed files with 2,982 additions and 1,554 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## **v2.0.3 (6th of December 2024)** - *Release*
## **v2.0.4 (19th of December 2024)** - *Release*

Added support for Brazilian Portuguese (PT_BR) Language.

Expand Down
92 changes: 46 additions & 46 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions packages/Webkul/Activity/src/Models/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@

class File extends Model implements FileContract
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'activity_files';

/**
* The attributes that should be appended to the model.
*
* @var array
*/
protected $appends = ['url'];

/**
* The attributes that are mass assignable.
*
Expand Down
1 change: 1 addition & 0 deletions packages/Webkul/Admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@vee-validate/rules": "^4.9.1",
"@vitejs/plugin-vue": "^4.2.3",
"chartjs-chart-funnel": "^4.2.1",
"dompurify": "^3.1.7",
"flatpickr": "^4.6.13",
"mitt": "^3.0.1",
"vee-validate": "^4.9.1",
Expand Down
5 changes: 0 additions & 5 deletions packages/Webkul/Admin/src/Config/acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@
'name' => 'admin::app.acl.delete',
'route' => ['admin.contacts.persons.delete', 'admin.contacts.persons.mass_delete'],
'sort' => 4,
], [
'key' => 'contacts.persons.export',
'name' => 'admin::app.acl.export',
'route' => 'ui.datagrid.export',
'sort' => 4,
], [
'key' => 'contacts.persons.view',
'name' => 'admin::app.acl.view',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ public function prepareColumns(): void
return "<span class='text-gray-800 dark:text-gray-300'>N/A</span>";
}

$route = urldecode(route('admin.leads.index', ['pipeline_id' => $row->lead_pipeline_id, 'view_type' => 'table', 'id[eq]' => $row->lead_id]));
$route = urldecode(route('admin.leads.view', $row->lead_id));

return "<a class='text-brandColor hover:underline' href='".$route."'>".$row->lead_title.'</a>';
return "<a class='text-brandColor hover:underline' target='_blank' href='".$route."'>".$row->lead_title.'</a>';
},
]);

Expand Down
2 changes: 1 addition & 1 deletion packages/Webkul/Admin/src/DataGrids/Lead/LeadDataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function prepareColumns(): void

$this->addColumn([
'index' => 'expected_close_date',
'label' => trans('admin::app.leads.index.datagrid.expected-close-date'),
'label' => trans('admin::app.leads.index.datagrid.date-to'),
'type' => 'date',
'searchable' => false,
'sortable' => true,
Expand Down
15 changes: 12 additions & 3 deletions packages/Webkul/Admin/src/DataGrids/Mail/EmailDataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function prepareColumns(): void

$this->addColumn([
'index' => 'attachments',
'label' => '<span class="icon-attachment text-2xl"></span>',
'label' => trans('admin::app.mail.index.datagrid.attachments'),
'type' => 'string',
'searchable' => false,
'filterable' => false,
Expand All @@ -91,9 +91,18 @@ public function prepareColumns(): void
'filterable' => true,
]);

$this->addColumn([
'index' => 'reply',
'label' => trans('admin::app.mail.index.datagrid.content'),
'type' => 'string',
'sortable' => true,
'searchable' => true,
'filterable' => true,
]);

$this->addColumn([
'index' => 'tags',
'label' => trans('admin::app.mail.index.datagrid.tag-name'),
'label' => trans('admin::app.mail.index.datagrid.tags'),
'type' => 'string',
'searchable' => false,
'sortable' => true,
Expand All @@ -117,7 +126,7 @@ public function prepareColumns(): void

$this->addColumn([
'index' => 'created_at',
'label' => trans('admin::app.mail.index.datagrid.created-at'),
'label' => trans('admin::app.mail.index.datagrid.date'),
'type' => 'date',
'searchable' => true,
'filterable' => true,
Expand Down
28 changes: 22 additions & 6 deletions packages/Webkul/Admin/src/DataGrids/Settings/AttributeDataGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,23 @@ public function prepareColumns(): void
]);

$this->addColumn([
'index' => 'entity_type',
'label' => trans('admin::app.settings.attributes.index.datagrid.entity-type'),
'type' => 'string',
'sortable' => true,
'searchable' => false,
'filterable' => true,
'index' => 'entity_type',
'label' => trans('admin::app.settings.attributes.index.datagrid.entity-type'),
'type' => 'string',
'sortable' => true,
'searchable' => false,
'filterable' => true,
'filterable_type' => 'dropdown',
'filterable_options' => app(AttributeRepository::class)
->select('entity_type as label', 'entity_type as value')
->distinct()
->get()
->map(function ($item) {
$item->label = trans('admin::app.settings.attributes.index.datagrid.entity-types.'.$item->label);

return $item;
})
->toArray(),
'closure' => fn ($row) => ucfirst($row->entity_type),
]);

Expand All @@ -84,6 +95,11 @@ public function prepareColumns(): void
->select('type as label', 'type as value')
->distinct()
->get()
->map(function ($item) {
$item->label = trans('admin::app.settings.attributes.index.datagrid.types.'.$item->label);

return $item;
})
->toArray(),
]);

Expand Down
Loading

0 comments on commit d4f2112

Please sign in to comment.