feat(v1.9.0): My Tasks — dashboard cross-collection unifié
- Nouveau router my_tasks.py: GET /my-tasks (HTML), GET /my-tasks/api (JSON) - Agrège toutes les pages assignées à l'utilisateur sur toutes les collections - Vues: All, Today, Overdue, Next 7 days - Groupement par collection, filter admin auto - 60/60 tests passent (+4 tests v1.9) - Version 1.8.0 → 1.9.0
This commit is contained in:
+4
-3
@@ -12,7 +12,7 @@ from starlette.middleware.sessions import SessionMiddleware
|
||||
from app.config import settings
|
||||
from app.db import init_db
|
||||
from app.middleware.csrf import CSRFMiddleware
|
||||
from app.routers import dashboard, board, notes, api, auth, webhooks, collections
|
||||
from app.routers import dashboard, board, notes, api, auth, webhooks, collections, my_tasks
|
||||
from app.services.gitea_client import gitea
|
||||
|
||||
logging.basicConfig(
|
||||
@@ -31,13 +31,13 @@ async def lifespan(_app: FastAPI):
|
||||
"INSERT OR IGNORE INTO users (login, full_name, email, is_admin) VALUES ('admin', 'Admin', '', 1)"
|
||||
)
|
||||
conn.commit()
|
||||
logger.info("FlowDeck v1.8.0 started on port %d", settings.app_port)
|
||||
logger.info("FlowDeck v1.9.0 started on port %d", settings.app_port)
|
||||
yield
|
||||
|
||||
|
||||
app = FastAPI(
|
||||
title="FlowDeck",
|
||||
version="1.8.0",
|
||||
version="1.9.0",
|
||||
docs_url="/docs" if settings.log_level == "DEBUG" else None,
|
||||
redoc_url=None,
|
||||
lifespan=lifespan,
|
||||
@@ -54,5 +54,6 @@ app.include_router(notes.router)
|
||||
app.include_router(api.router)
|
||||
app.include_router(webhooks.router)
|
||||
app.include_router(collections.router)
|
||||
app.include_router(my_tasks.router)
|
||||
|
||||
app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||
|
||||
Reference in New Issue
Block a user