Post erstellen
Generiere einen neuen LinkedIn Post mit AI
diff --git a/src/web/templates/user/create_post_select.html b/src/web/templates/user/create_post_select.html
new file mode 100644
index 0000000..fad606b
--- /dev/null
+++ b/src/web/templates/user/create_post_select.html
@@ -0,0 +1,43 @@
+{% extends "base.html" %}
+{% block title %}Post erstellen - LinkedIn Posts{% endblock %}
+
+{% block content %}
+
+
+
Post erstellen
+
Wähle, wie du deinen Post erstellen möchtest
+
+
+ {% if limit_reached %}
+
+ Token-Limit erreicht – keine KI-Aktionen mehr heute möglich. Morgen wird das Limit zurückgesetzt.
+
+ {% endif %}
+
+
+
+{% endblock %}
diff --git a/src/web/user/routes.py b/src/web/user/routes.py
index 5007512..06d5f18 100644
--- a/src/web/user/routes.py
+++ b/src/web/user/routes.py
@@ -1756,8 +1756,37 @@ async def research_page(request: Request):
@user_router.get("/create", response_class=HTMLResponse)
+async def create_post_select_page(request: Request):
+ """Post creation selection page - choose wizard or chat."""
+ session = require_user_session(request)
+ if not session:
+ return RedirectResponse(url="/login", status_code=302)
+
+ # Check token limit for companies/employees
+ limit_reached = False
+ limit_message = ""
+ if session.account_type in ("company", "employee") and session.company_id:
+ can_create, error_msg, _, _ = await db.check_company_token_limit(UUID(session.company_id))
+ limit_reached = not can_create
+ limit_message = error_msg
+
+ user_id = UUID(session.user_id)
+ profile_picture = await get_user_avatar(session, user_id)
+
+ return templates.TemplateResponse("create_post_select.html", {
+ "request": request,
+ "page": "create",
+ "session": session,
+ "user_id": session.user_id,
+ "limit_reached": limit_reached,
+ "limit_message": limit_message,
+ "profile_picture": profile_picture
+ })
+
+
+@user_router.get("/create/wizard", response_class=HTMLResponse)
async def create_post_page(request: Request):
- """Create post page - with limit check for companies."""
+ """Create post wizard page - with limit check for companies."""
session = require_user_session(request)
if not session:
return RedirectResponse(url="/login", status_code=302)
diff --git a/teams-app.zip b/teams-app.zip
index 4013123..1a42c0e 100644
Binary files a/teams-app.zip and b/teams-app.zip differ