Skip to content

Commit 81f5fdc

Browse files
authored
Merge pull request #21 from devaslanphp/master
Merge master into dev
2 parents 843990f + 7d78c23 commit 81f5fdc

4 files changed

Lines changed: 27 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
105105
- Bug-fix: Ticket content field (required)
106106
- **Release 1.1.5**
107107
- Add comment field to ticket hours logging
108+
- **Release 1.1.6**
109+
- Edit ticket epic details
110+
- PR #13 made by @mihaisolomon
108111

109112
## Support us
110113

app/Filament/Resources/TicketResource.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use App\Filament\Resources\TicketResource\Pages;
66
use App\Filament\Resources\TicketResource\RelationManagers;
7+
use App\Models\Epic;
78
use App\Models\Project;
89
use App\Models\Ticket;
910
use App\Models\TicketPriority;
@@ -82,7 +83,13 @@ public static function form(Form $form): Form
8283
)
8384
->default(fn() => request()->get('project'))
8485
->required(),
85-
86+
Forms\Components\Select::make('epic_id')
87+
->label(__('Epic'))
88+
->searchable()
89+
->reactive()
90+
->options(function ($get, $set) {
91+
return Epic::where('project_id', $get('project_id'))->pluck('name', 'id')->toArray();
92+
}),
8693
Forms\Components\Grid::make()
8794
->columns(12)
8895
->columnSpan(2)

docs/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ php artisan db:seed
133133
>
134134
> This user has **all permissions** link to it's account
135135
136-
And voilà! You can now serve the platform as a **Laravel** application by running this command `php artisan serve` or use your favorite **WEB** server to serve it.
137-
138-
> By default the `helper-dev.zip` contains the assets `public/build` folder, but if you want you can use the following command to generate it:
136+
> Last thing before you can server the project you need to use the following command to generate vite assets:
139137
>
140138
> - Generate assets for production: `npm run build`
141139
> - Generate assets for development: `npm run dev` or `vite`
142140
141+
And voilà! You can now serve the platform as a **Laravel** application by running this command `php artisan serve` or use your favorite **WEB** server to serve it.
142+
143143
Last thing to do, run the below command to clear all caches:
144144

145145
```bash

resources/views/filament/resources/tickets/view.blade.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,19 @@ class="flex items-center gap-1 text-gray-500 hover:text-gray-700 font-medium tex
7474
</div>
7575
</div>
7676

77+
<div class="w-full flex flex-col gap-1 pt-3">
78+
<span class="text-gray-500 text-sm font-medium">
79+
{{ __('Epic') }}
80+
</span>
81+
<div class="w-full flex items-center gap-1 text-gray-500">
82+
@if($record->epic)
83+
{{ $record->epic->name }}
84+
@else
85+
-
86+
@endif
87+
</div>
88+
</div>
89+
7790
<div class="w-full flex flex-col gap-1 pt-3">
7891
<span class="text-gray-500 text-sm font-medium">
7992
{{ __('Estimation') }}

0 commit comments

Comments
 (0)