diff --git a/assets/pasted-20251123-152817-0d338c39.png b/assets/pasted-20251123-152817-0d338c39.png new file mode 100644 index 0000000..ae29a5b Binary files /dev/null and b/assets/pasted-20251123-152817-0d338c39.png differ diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc index bdf2023..482c329 100644 Binary files a/config/__pycache__/settings.cpython-311.pyc and b/config/__pycache__/settings.cpython-311.pyc differ diff --git a/config/settings.py b/config/settings.py index 617e204..8409ed9 100644 --- a/config/settings.py +++ b/config/settings.py @@ -24,6 +24,12 @@ DEBUG = os.getenv("DJANGO_DEBUG", "true").lower() == "true" SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') USE_X_FORWARDED_HOST = True +SESSION_COOKIE_SECURE = True +CSRF_COOKIE_SECURE = True +SESSION_COOKIE_SAMESITE = "None" +CSRF_COOKIE_SAMESITE = "None" + + ALLOWED_HOSTS = [ "127.0.0.1", "localhost", diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index d1d5cef..3ec98b9 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/migrations/0009_alter_todoitem_status.py b/core/migrations/0009_alter_todoitem_status.py new file mode 100644 index 0000000..fab27eb --- /dev/null +++ b/core/migrations/0009_alter_todoitem_status.py @@ -0,0 +1,18 @@ +# Generated by Django 5.2.7 on 2025-11-23 15:32 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('core', '0008_todoitem_deadline'), + ] + + operations = [ + migrations.AlterField( + model_name='todoitem', + name='status', + field=models.CharField(choices=[('todo', 'To Do'), ('inprogress', 'In Progress'), ('blocked', 'Blocked'), ('delegated', 'Delegated'), ('done', 'Done')], default='todo', max_length=20), + ), + ] diff --git a/core/migrations/__pycache__/0009_alter_todoitem_status.cpython-311.pyc b/core/migrations/__pycache__/0009_alter_todoitem_status.cpython-311.pyc new file mode 100644 index 0000000..97c9dc2 Binary files /dev/null and b/core/migrations/__pycache__/0009_alter_todoitem_status.cpython-311.pyc differ diff --git a/core/models.py b/core/models.py index 6c9ef49..5a52ef2 100644 --- a/core/models.py +++ b/core/models.py @@ -13,6 +13,7 @@ class TodoItem(models.Model): ('todo', 'To Do'), ('inprogress', 'In Progress'), ('blocked', 'Blocked'), + ('delegated', 'Delegated'), ('done', 'Done'), ] title = models.CharField(max_length=200) diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 406e1c2..5513300 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -64,7 +64,7 @@ {% for item in todo_list %} - + {{ item.title }} {{ item.description|default:"" }} @@ -74,7 +74,7 @@ {% endfor %} {% endif %} - {{ item.get_status_display }} + {{ item.get_status_display }} {{ item.created_at|date:"M d, Y" }} {{ item.deadline|date:"M d, Y"|default:"" }} diff --git a/core/templates/core/kanban.html b/core/templates/core/kanban.html index 0a2f3af..0988054 100644 --- a/core/templates/core/kanban.html +++ b/core/templates/core/kanban.html @@ -62,9 +62,6 @@ document.addEventListener('DOMContentLoaded', function () { new Sortable(column, { group: 'kanban', animation: 150, - onStart: function (evt) { - document.querySelector('.loader-overlay').style.display = 'flex'; - }, onEnd: function (evt) { const itemEl = evt.item; const toContainer = evt.to; @@ -105,9 +102,6 @@ document.addEventListener('DOMContentLoaded', function () { // Revert the move in the UI fromContainer.insertBefore(itemEl, fromContainer.children[oldIndex]); alert('An error occurred while updating the task. Please try again.'); - }) - .finally(() => { - document.querySelector('.loader-overlay').style.display = 'none'; }); } });