feat(tasks): complete task management system with Kanban, Calendar, notifications

- Add Task model with subtasks, priorities, status transitions, dates, hours
- Add Comment polymorphic model for tasks/issues/projects
- Livewire components: TaskManager (list+filters), TaskForm (modal), TaskDetail, TaskKanban (drag&drop), TaskCalendar (FullCalendar)
- TaskPolicy with permissions (view/create/edit/delete/assign/manage all)
- Notifications: assigned, status change, overdue, comment added
- Daily overdue notification job scheduled
- Dashboard widget unifies IssueTask + Task
- i18n: en/es/fr/ru (393 keys each)
- Routes, navigation, offline sync support
- 101 tests passing, Pint compliant on new files
This commit is contained in:
Javier Braña
2026-08-03 13:44:10 +02:00
parent a65d4b12f2
commit ba614bddbc
62 changed files with 5878 additions and 382 deletions
+15 -4
View File
@@ -11,14 +11,22 @@ class LanguageSwitcher extends Component
{
public string $currentLocale;
/** Idiomas disponibles con nombre y bandera. */
public array $languages = [
'en' => ['name' => 'English', 'flag' => 'gb.svg'],
'es' => ['name' => 'Español', 'flag' => 'es.svg'],
'fr' => ['name' => 'Français', 'flag' => 'fr.svg'],
'ru' => ['name' => 'Русский', 'flag' => 'ru.svg'],
];
public function mount(): void
{
$this->currentLocale = App::getLocale();
}
public function switchLanguage(string $locale): void
public function updatedCurrentLocale(string $locale): void
{
if (!in_array($locale, ['en', 'es'])) {
if (!in_array($locale, ['en', 'es', 'fr', 'ru'])) {
return;
}
@@ -31,11 +39,14 @@ class LanguageSwitcher extends Component
}
// Dispatch a browser event — JavaScript reloads the page.
// PHP-side redirects break because $this->redirect() runs inside
// /livewire/update (the AJAX endpoint), not on the real page URL.
$this->dispatch('locale-changed');
}
public function switchLanguage(string $locale): void
{
$this->updatedCurrentLocale($locale);
}
public function render()
{
return view('livewire.common.language-switcher');