devaslanphp / project-management

An open source Project management tool based on Laravel and Filament
https://devaslanphp.github.io/project-management
MIT License
783 stars 220 forks source link

Ticket file upload listing #24

Closed mihaisolomon closed 1 year ago

mihaisolomon commented 1 year ago

I looked over the files uploads and it looks nice.

I'm thinking of making a listing of the files something like this:

image

heloufir commented 1 year ago

Hello @mihaisolomon So the table need to have the following columns:

And for the actions, we can have the Edit and Delete:

And I suggest to use laravel-medialibrary package of Spatie.

What do you think?

mihaisolomon commented 1 year ago

Yes. That's the one that I was thinking of. But please put the uploaded files into the media table rather then tickets column (attachments).

heloufir commented 1 year ago

Alright I see now the idea.

I will do it like described above, and yes a table named medias will be used for all the files (managed by spatie/laravel-media)

heloufir commented 1 year ago

@mihaisolomon I just added the attachments system for tickets based on Spatie media package, and it looks like this:

image

I pushed all the dev to master so you can check if you want and let me know if it's correct for you.

heloufir commented 1 year ago

@mihaisolomon Just a trick, the project has a custom artisan command php artisan trans:missing {lang} that take the {lang}.json file and compare with other lang json files to automatically translate and add the missing keys from the {lang}.json to the others.

E.g. You can add your new translations into your desired {lang}.json for example fr.json when you finish execute php artisan trans:missing fr then the command will generate the missing translation into ar.json, uk.json, ... and all the json files