Skip to content

Commit ae03cce

Browse files
heysamtexasclaude
andcommitted
refactor: streamline authentication flow and improve login UI
Simplify user flow by redirecting home to login and removing unused footer. Fix allauth login page styling by converting Bootstrap classes to Tailwind. Changes: - Remove footer include from base template (no longer needed) - Redirect home page (/) to login instead of showing landing page - Change LOGIN_REDIRECT_URL from /accounts/email/ to /admin/ - Convert allauth entrance templates from Bootstrap to Tailwind CSS: - h1__entrance.html: text-3xl font-bold for prominent heading - h2__entrance.html: text-base text-gray-600 for subtle subtitle - button__entrance.html: w-full mt-6 for proper spacing - form__entrance.html: remove gray background box around button - button_group.html: flex flex-col w-full space-y-2 - provider.html: border-b with hover states User flow now: / → /accounts/login/ → (after login) → /admin/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent be7faa3 commit ae03cce

File tree

79 files changed

+35
-3253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+35
-3253
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ snapshot-local-db: ## Create a snapshot of the local database
5959
restore-local-db: ## Restore the local database from a snapshot
6060
docker compose exec -T postgres pg_restore -U postgres -d django_reference < django_reference.dump
6161

62+
logs/:
63+
mkdir -p logs/
64+
65+
.PHONY: runserver
66+
runserver: logs/ ## Run Django development server with logging to logs/server.log
67+
@echo "Starting Django server on http://0.0.0.0:8008 (logs: logs/server.log)"
68+
uv run src/manage.py runserver 0.0.0.0:8008 2>&1 | tee logs/server.log
69+
6270
##########################################################################
6371
# DJANGO-ALLAUTH DEPENDENCY MANAGEMENT
6472
##########################################################################

db.sqlite3

320 KB
Binary file not shown.

src/config/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,4 @@
186186
},
187187
}
188188

189-
LOGIN_REDIRECT_URL = "/accounts/email/"
189+
LOGIN_REDIRECT_URL = "/admin/"

src/config/urls.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
import myapp.views
1111

12-
# import urls from the organizations app
13-
1412
urlpatterns = [ # noqa: RUF005
1513
path(
1614
"robots.txt",
@@ -21,10 +19,7 @@
2119
path("accounts/", include("allauth.urls")),
2220
path("", myapp.views.index, name="home"),
2321
path("health-check/", myapp.views.health_check, name="health-check"),
24-
path(
25-
"organizations/",
26-
include(("organizations.urls", "organizations"), namespace="organizations"),
27-
),
22+
path("", include("dataroom.urls")),
2823
# add privacy policy and terms of service URLs here use TemplateView.as_view
2924
path("privacy/", TemplateView.as_view(template_name="privacy.html"), name="privacy"),
3025
path("terms/", TemplateView.as_view(template_name="terms.html"), name="terms"),

src/myapp/admin/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
"""Admin module for the myapp app."""
22

33
from .site_configuation import SiteConfigurationAdmin
4-
from .worker_configurations import WorkerConfigurationAdmin
5-
from .worker_errors import WorkerErrorAdmin
64

75
__all__ = [
86
"SiteConfigurationAdmin",
9-
"WorkerConfigurationAdmin",
10-
"WorkerErrorAdmin",
117
]

src/myapp/admin/worker_configurations.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/myapp/admin/worker_errors.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/myapp/management/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/myapp/management/commands/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/myapp/management/commands/_base.py

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)