add screenshot42-taskmanager-projectdetail task (build 2ecba08)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- screenshot42-taskmanager-projectdetail/environment/Dockerfile +28 -0
- screenshot42-taskmanager-projectdetail/environment/app/README.md +69 -0
- screenshot42-taskmanager-projectdetail/environment/app/backend/app/__init__.py +34 -0
- screenshot42-taskmanager-projectdetail/environment/app/backend/app/models.py +185 -0
- screenshot42-taskmanager-projectdetail/environment/app/backend/app/routes.py +641 -0
- screenshot42-taskmanager-projectdetail/environment/app/backend/requirements.txt +4 -0
- screenshot42-taskmanager-projectdetail/environment/app/backend/run.py +6 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/index.html +12 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/package-lock.json +991 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/package.json +20 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/src/App.css +922 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/src/App.jsx +74 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/src/api.js +158 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/src/components/AddTask.jsx +211 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/src/components/CreateProject.jsx +124 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/src/components/Dashboard.jsx +249 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/src/components/SearchResults.jsx +79 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/src/components/TaskDetail.jsx +324 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/src/index.css +3 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/src/main.jsx +13 -0
- screenshot42-taskmanager-projectdetail/environment/app/frontend/vite.config.js +13 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/config.json +74 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/job.log +1 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/lock.json +60 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/result.json +39 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/agent/oracle.txt +1 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/artifacts/agent-app.png +3 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/artifacts/backend.log +29 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/artifacts/frontend.log +9 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/artifacts/pageerrors.log +0 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/config.json +51 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/result.json +100 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/trial.log +1 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/verifier/ctrf.json +131 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/verifier/reward.txt +1 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/verifier/test-stdout.txt +68 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/config.json +74 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/job.log +1 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/lock.json +60 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/result.json +39 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/agent/oracle.txt +1 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/artifacts/agent-app.png +3 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/artifacts/backend.log +30 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/artifacts/frontend.log +9 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/artifacts/pageerrors.log +0 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/config.json +51 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/result.json +100 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/trial.log +1 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/verifier/ctrf.json +128 -0
- screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/verifier/reward.txt +1 -0
screenshot42-taskmanager-projectdetail/environment/Dockerfile
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:22-bookworm
|
| 2 |
+
|
| 3 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 4 |
+
python3 python3-pip python3-venv \
|
| 5 |
+
curl ca-certificates procps lsof bash \
|
| 6 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
+
|
| 8 |
+
RUN python3 -m venv /opt/venv && \
|
| 9 |
+
/opt/venv/bin/pip install --no-cache-dir \
|
| 10 |
+
pytest==8.4.1 \
|
| 11 |
+
pytest-json-ctrf==0.3.5 \
|
| 12 |
+
playwright==1.48.0 \
|
| 13 |
+
requests==2.32.3
|
| 14 |
+
RUN /opt/venv/bin/playwright install --with-deps chromium
|
| 15 |
+
|
| 16 |
+
ENV PATH="/opt/venv/bin:${PATH}"
|
| 17 |
+
|
| 18 |
+
COPY reference.png /app/reference.png
|
| 19 |
+
|
| 20 |
+
COPY app/. /app/
|
| 21 |
+
|
| 22 |
+
RUN /opt/venv/bin/pip install --no-cache-dir -r /app/backend/requirements.txt
|
| 23 |
+
RUN cd /app/frontend && npm install --silent
|
| 24 |
+
|
| 25 |
+
COPY pristine/ProjectDetail.golden.jsx /opt/golden-reference/ProjectDetail.jsx
|
| 26 |
+
COPY pristine/App.golden.jsx /opt/golden-reference/App.jsx
|
| 27 |
+
|
| 28 |
+
WORKDIR /app
|
screenshot42-taskmanager-projectdetail/environment/app/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TaskFlow — Golden (Reference)
|
| 2 |
+
|
| 3 |
+
The ground-truth task management application. All clones are evaluated against this.
|
| 4 |
+
|
| 5 |
+
## Features
|
| 6 |
+
|
| 7 |
+
- **Users**: Create and list users with name/email
|
| 8 |
+
- **Projects**: Create projects with members, descriptions, and admin/member roles
|
| 9 |
+
- **Project Archiving**: Soft-delete projects with `archived` flag
|
| 10 |
+
- **Tasks**: Full CRUD with title, description, status, priority, assignee, due date
|
| 11 |
+
- **Kanban Board**: Tasks displayed in todo/in_progress/done columns
|
| 12 |
+
- **Tags**: Many-to-many tag system with color support and full CRUD
|
| 13 |
+
- **Comments**: Threaded comments on tasks
|
| 14 |
+
- **Activity Log**: Automatic audit trail tracking all task changes (status, priority, assignment, tags)
|
| 15 |
+
- **Project Statistics**: Aggregated completion rates, overdue counts, per-member breakdowns
|
| 16 |
+
- **Task Filtering**: Filter by status, priority, assignee, and tag with sort options
|
| 17 |
+
- **Search**: Full-text search across task titles and descriptions
|
| 18 |
+
|
| 19 |
+
## Data Model
|
| 20 |
+
|
| 21 |
+
| Model | Fields |
|
| 22 |
+
|---|---|
|
| 23 |
+
| User | id, name, email |
|
| 24 |
+
| Project | id, name, description, archived, created_at |
|
| 25 |
+
| ProjectMember | id, project_id, user_id, role (admin/member) |
|
| 26 |
+
| Tag | id, name, color |
|
| 27 |
+
| task_tags | task_id, tag_id (M2M join) |
|
| 28 |
+
| Task | id, project_id, title, description, status, priority, assigned_to, created_by, due_date, created_at |
|
| 29 |
+
| Comment | id, task_id, user_id, text, created_at |
|
| 30 |
+
| Activity | id, task_id, user_id, action, field, old_value, new_value, created_at |
|
| 31 |
+
|
| 32 |
+
## API Endpoints
|
| 33 |
+
|
| 34 |
+
| Method | Path | Description |
|
| 35 |
+
|---|---|---|
|
| 36 |
+
| POST/GET | `/api/users` | Create/list users |
|
| 37 |
+
| POST/GET | `/api/tags` | Create/list tags |
|
| 38 |
+
| PUT/DELETE | `/api/tags/:id` | Update/delete tag |
|
| 39 |
+
| POST/GET | `/api/projects` | Create/list projects |
|
| 40 |
+
| GET/PUT | `/api/projects/:id` | Get/update project |
|
| 41 |
+
| GET | `/api/projects/:id/stats` | Project statistics |
|
| 42 |
+
| GET | `/api/projects/:id/activities` | Project activity feed |
|
| 43 |
+
| POST/DELETE | `/api/projects/:id/members` | Add/remove members |
|
| 44 |
+
| POST/GET | `/api/projects/:id/tasks` | Create/list tasks (with filters) |
|
| 45 |
+
| GET/PUT/DELETE | `/api/tasks/:id` | Get/update/delete task |
|
| 46 |
+
| POST/DELETE | `/api/tasks/:id/tags` | Add/remove task tags |
|
| 47 |
+
| POST/GET | `/api/tasks/:id/comments` | Create/list comments |
|
| 48 |
+
| GET | `/api/tasks/:id/activities` | Task activity log |
|
| 49 |
+
| GET | `/api/search?q=` | Search tasks |
|
| 50 |
+
| POST | `/api/reset` | Reset database |
|
| 51 |
+
|
| 52 |
+
## Setup
|
| 53 |
+
|
| 54 |
+
```bash
|
| 55 |
+
cd apps/task-manager/golden
|
| 56 |
+
uv venv .venv
|
| 57 |
+
source .venv/bin/activate
|
| 58 |
+
uv pip install -r backend/requirements.txt
|
| 59 |
+
cd frontend && npm install && cd ..
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
## Run
|
| 63 |
+
|
| 64 |
+
```bash
|
| 65 |
+
./run.sh
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
- Backend: http://localhost:5101
|
| 69 |
+
- Frontend: http://localhost:5273
|
screenshot42-taskmanager-projectdetail/environment/app/backend/app/__init__.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from flask import Flask
|
| 3 |
+
from flask_cors import CORS
|
| 4 |
+
from flask_sqlalchemy import SQLAlchemy
|
| 5 |
+
from flask_migrate import Migrate
|
| 6 |
+
|
| 7 |
+
db = SQLAlchemy()
|
| 8 |
+
migrate = Migrate()
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def create_app():
|
| 12 |
+
app = Flask(__name__, instance_relative_config=True)
|
| 13 |
+
|
| 14 |
+
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///" + os.path.join(
|
| 15 |
+
app.instance_path, "taskmanager.db"
|
| 16 |
+
)
|
| 17 |
+
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
|
| 18 |
+
|
| 19 |
+
os.makedirs(app.instance_path, exist_ok=True)
|
| 20 |
+
|
| 21 |
+
db.init_app(app)
|
| 22 |
+
migrate.init_app(app, db)
|
| 23 |
+
CORS(app)
|
| 24 |
+
|
| 25 |
+
from app.routes import api_bp
|
| 26 |
+
|
| 27 |
+
app.register_blueprint(api_bp)
|
| 28 |
+
|
| 29 |
+
with app.app_context():
|
| 30 |
+
from app import models # noqa: F401
|
| 31 |
+
|
| 32 |
+
db.create_all()
|
| 33 |
+
|
| 34 |
+
return app
|
screenshot42-taskmanager-projectdetail/environment/app/backend/app/models.py
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datetime import datetime, timezone
|
| 2 |
+
from app import db
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
class User(db.Model):
|
| 6 |
+
__tablename__ = "users"
|
| 7 |
+
|
| 8 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 9 |
+
name = db.Column(db.String(120), nullable=False)
|
| 10 |
+
email = db.Column(db.String(120), unique=True, nullable=False)
|
| 11 |
+
|
| 12 |
+
def to_dict(self):
|
| 13 |
+
return {"id": self.id, "name": self.name, "email": self.email}
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
class Project(db.Model):
|
| 17 |
+
__tablename__ = "projects"
|
| 18 |
+
|
| 19 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 20 |
+
name = db.Column(db.String(120), nullable=False)
|
| 21 |
+
description = db.Column(db.String(500), nullable=True, default="")
|
| 22 |
+
archived = db.Column(db.Boolean, nullable=False, default=False)
|
| 23 |
+
created_at = db.Column(
|
| 24 |
+
db.DateTime, nullable=False, default=lambda: datetime.now(timezone.utc)
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
members = db.relationship(
|
| 28 |
+
"ProjectMember", backref="project", lazy=True, cascade="all, delete-orphan"
|
| 29 |
+
)
|
| 30 |
+
tasks = db.relationship(
|
| 31 |
+
"Task", backref="project", lazy=True, cascade="all, delete-orphan"
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
def to_dict(self, include_members=False, include_tasks=False):
|
| 35 |
+
data = {
|
| 36 |
+
"id": self.id,
|
| 37 |
+
"name": self.name,
|
| 38 |
+
"description": self.description,
|
| 39 |
+
"archived": self.archived,
|
| 40 |
+
"created_at": self.created_at.isoformat(),
|
| 41 |
+
}
|
| 42 |
+
if include_members:
|
| 43 |
+
data["members"] = [m.user.to_dict() for m in self.members]
|
| 44 |
+
if include_tasks:
|
| 45 |
+
data["tasks"] = [t.to_dict() for t in self.tasks]
|
| 46 |
+
return data
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
class ProjectMember(db.Model):
|
| 50 |
+
__tablename__ = "project_members"
|
| 51 |
+
|
| 52 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 53 |
+
project_id = db.Column(db.Integer, db.ForeignKey("projects.id"), nullable=False)
|
| 54 |
+
user_id = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=False)
|
| 55 |
+
role = db.Column(db.String(20), nullable=False, default="member")
|
| 56 |
+
|
| 57 |
+
user = db.relationship("User", lazy=True)
|
| 58 |
+
|
| 59 |
+
def to_dict(self):
|
| 60 |
+
data = self.user.to_dict()
|
| 61 |
+
data["role"] = self.role
|
| 62 |
+
return data
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
class Tag(db.Model):
|
| 66 |
+
__tablename__ = "tags"
|
| 67 |
+
|
| 68 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 69 |
+
name = db.Column(db.String(50), nullable=False, unique=True)
|
| 70 |
+
color = db.Column(db.String(7), nullable=False, default="#6b7280")
|
| 71 |
+
|
| 72 |
+
def to_dict(self):
|
| 73 |
+
return {"id": self.id, "name": self.name, "color": self.color}
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
task_tags = db.Table(
|
| 77 |
+
"task_tags",
|
| 78 |
+
db.Column("task_id", db.Integer, db.ForeignKey("tasks.id"), primary_key=True),
|
| 79 |
+
db.Column("tag_id", db.Integer, db.ForeignKey("tags.id"), primary_key=True),
|
| 80 |
+
)
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
class Task(db.Model):
|
| 84 |
+
__tablename__ = "tasks"
|
| 85 |
+
|
| 86 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 87 |
+
project_id = db.Column(db.Integer, db.ForeignKey("projects.id"), nullable=False)
|
| 88 |
+
title = db.Column(db.String(255), nullable=False)
|
| 89 |
+
description = db.Column(db.Text, nullable=True, default="")
|
| 90 |
+
status = db.Column(db.String(20), nullable=False, default="todo")
|
| 91 |
+
priority = db.Column(db.String(10), nullable=False, default="medium")
|
| 92 |
+
assigned_to = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=True)
|
| 93 |
+
created_by = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=False)
|
| 94 |
+
due_date = db.Column(db.DateTime, nullable=True)
|
| 95 |
+
created_at = db.Column(
|
| 96 |
+
db.DateTime, nullable=False, default=lambda: datetime.now(timezone.utc)
|
| 97 |
+
)
|
| 98 |
+
|
| 99 |
+
assignee = db.relationship("User", foreign_keys=[assigned_to], lazy=True)
|
| 100 |
+
creator = db.relationship("User", foreign_keys=[created_by], lazy=True)
|
| 101 |
+
comments = db.relationship(
|
| 102 |
+
"Comment", backref="task", lazy=True, cascade="all, delete-orphan"
|
| 103 |
+
)
|
| 104 |
+
tags = db.relationship("Tag", secondary=task_tags, lazy=True, backref="tasks")
|
| 105 |
+
activities = db.relationship(
|
| 106 |
+
"Activity", backref="task", lazy=True, cascade="all, delete-orphan",
|
| 107 |
+
order_by="Activity.created_at.desc()"
|
| 108 |
+
)
|
| 109 |
+
|
| 110 |
+
def to_dict(self, include_comments=False, include_activities=False):
|
| 111 |
+
data = {
|
| 112 |
+
"id": self.id,
|
| 113 |
+
"project_id": self.project_id,
|
| 114 |
+
"title": self.title,
|
| 115 |
+
"description": self.description,
|
| 116 |
+
"status": self.status,
|
| 117 |
+
"priority": self.priority,
|
| 118 |
+
"assigned_to": self.assigned_to,
|
| 119 |
+
"assigned_to_name": self.assignee.name if self.assignee else None,
|
| 120 |
+
"created_by": self.created_by,
|
| 121 |
+
"created_by_name": self.creator.name if self.creator else None,
|
| 122 |
+
"due_date": self.due_date.isoformat() if self.due_date else None,
|
| 123 |
+
"created_at": self.created_at.isoformat(),
|
| 124 |
+
"comment_count": len(self.comments),
|
| 125 |
+
"tags": [t.to_dict() for t in self.tags],
|
| 126 |
+
}
|
| 127 |
+
if include_comments:
|
| 128 |
+
data["comments"] = [c.to_dict() for c in self.comments]
|
| 129 |
+
if include_activities:
|
| 130 |
+
data["activities"] = [a.to_dict() for a in self.activities]
|
| 131 |
+
return data
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
class Comment(db.Model):
|
| 135 |
+
__tablename__ = "comments"
|
| 136 |
+
|
| 137 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 138 |
+
task_id = db.Column(db.Integer, db.ForeignKey("tasks.id"), nullable=False)
|
| 139 |
+
user_id = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=False)
|
| 140 |
+
text = db.Column(db.Text, nullable=False)
|
| 141 |
+
created_at = db.Column(
|
| 142 |
+
db.DateTime, nullable=False, default=lambda: datetime.now(timezone.utc)
|
| 143 |
+
)
|
| 144 |
+
|
| 145 |
+
user = db.relationship("User", lazy=True)
|
| 146 |
+
|
| 147 |
+
def to_dict(self):
|
| 148 |
+
return {
|
| 149 |
+
"id": self.id,
|
| 150 |
+
"task_id": self.task_id,
|
| 151 |
+
"user_id": self.user_id,
|
| 152 |
+
"user_name": self.user.name if self.user else None,
|
| 153 |
+
"text": self.text,
|
| 154 |
+
"created_at": self.created_at.isoformat(),
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
class Activity(db.Model):
|
| 159 |
+
__tablename__ = "activities"
|
| 160 |
+
|
| 161 |
+
id = db.Column(db.Integer, primary_key=True)
|
| 162 |
+
task_id = db.Column(db.Integer, db.ForeignKey("tasks.id"), nullable=False)
|
| 163 |
+
user_id = db.Column(db.Integer, db.ForeignKey("users.id"), nullable=True)
|
| 164 |
+
action = db.Column(db.String(50), nullable=False)
|
| 165 |
+
field = db.Column(db.String(50), nullable=True)
|
| 166 |
+
old_value = db.Column(db.String(255), nullable=True)
|
| 167 |
+
new_value = db.Column(db.String(255), nullable=True)
|
| 168 |
+
created_at = db.Column(
|
| 169 |
+
db.DateTime, nullable=False, default=lambda: datetime.now(timezone.utc)
|
| 170 |
+
)
|
| 171 |
+
|
| 172 |
+
user = db.relationship("User", lazy=True)
|
| 173 |
+
|
| 174 |
+
def to_dict(self):
|
| 175 |
+
return {
|
| 176 |
+
"id": self.id,
|
| 177 |
+
"task_id": self.task_id,
|
| 178 |
+
"user_id": self.user_id,
|
| 179 |
+
"user_name": self.user.name if self.user else None,
|
| 180 |
+
"action": self.action,
|
| 181 |
+
"field": self.field,
|
| 182 |
+
"old_value": self.old_value,
|
| 183 |
+
"new_value": self.new_value,
|
| 184 |
+
"created_at": self.created_at.isoformat(),
|
| 185 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/backend/app/routes.py
ADDED
|
@@ -0,0 +1,641 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datetime import datetime, timezone
|
| 2 |
+
from flask import Blueprint, request, jsonify
|
| 3 |
+
from app import db
|
| 4 |
+
from app.models import User, Project, ProjectMember, Task, Comment, Tag, Activity, task_tags
|
| 5 |
+
|
| 6 |
+
api_bp = Blueprint("api", __name__)
|
| 7 |
+
|
| 8 |
+
VALID_STATUSES = {"todo", "in_progress", "done"}
|
| 9 |
+
VALID_PRIORITIES = {"low", "medium", "high"}
|
| 10 |
+
VALID_ROLES = {"admin", "member"}
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def _log_activity(task_id, user_id, action, field=None, old_value=None, new_value=None):
|
| 14 |
+
activity = Activity(
|
| 15 |
+
task_id=task_id,
|
| 16 |
+
user_id=user_id,
|
| 17 |
+
action=action,
|
| 18 |
+
field=field,
|
| 19 |
+
old_value=str(old_value) if old_value is not None else None,
|
| 20 |
+
new_value=str(new_value) if new_value is not None else None,
|
| 21 |
+
)
|
| 22 |
+
db.session.add(activity)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
# ---------------------------------------------------------------------------
|
| 26 |
+
# Users
|
| 27 |
+
# ---------------------------------------------------------------------------
|
| 28 |
+
|
| 29 |
+
@api_bp.route("/api/users", methods=["POST"])
|
| 30 |
+
def create_user():
|
| 31 |
+
data = request.get_json()
|
| 32 |
+
if not data or not data.get("name") or not data.get("email"):
|
| 33 |
+
return jsonify({"error": "name and email are required"}), 400
|
| 34 |
+
|
| 35 |
+
if User.query.filter_by(email=data["email"]).first():
|
| 36 |
+
return jsonify({"error": "A user with that email already exists"}), 409
|
| 37 |
+
|
| 38 |
+
user = User(name=data["name"], email=data["email"])
|
| 39 |
+
db.session.add(user)
|
| 40 |
+
db.session.commit()
|
| 41 |
+
return jsonify(user.to_dict()), 201
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
@api_bp.route("/api/users", methods=["GET"])
|
| 45 |
+
def list_users():
|
| 46 |
+
users = User.query.all()
|
| 47 |
+
return jsonify([u.to_dict() for u in users])
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
# ---------------------------------------------------------------------------
|
| 51 |
+
# Tags
|
| 52 |
+
# ---------------------------------------------------------------------------
|
| 53 |
+
|
| 54 |
+
@api_bp.route("/api/tags", methods=["POST"])
|
| 55 |
+
def create_tag():
|
| 56 |
+
data = request.get_json()
|
| 57 |
+
if not data or not data.get("name"):
|
| 58 |
+
return jsonify({"error": "name is required"}), 400
|
| 59 |
+
|
| 60 |
+
if Tag.query.filter_by(name=data["name"]).first():
|
| 61 |
+
return jsonify({"error": "A tag with that name already exists"}), 409
|
| 62 |
+
|
| 63 |
+
tag = Tag(
|
| 64 |
+
name=data["name"],
|
| 65 |
+
color=data.get("color", "#6b7280"),
|
| 66 |
+
)
|
| 67 |
+
db.session.add(tag)
|
| 68 |
+
db.session.commit()
|
| 69 |
+
return jsonify(tag.to_dict()), 201
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
@api_bp.route("/api/tags", methods=["GET"])
|
| 73 |
+
def list_tags():
|
| 74 |
+
tags = Tag.query.all()
|
| 75 |
+
return jsonify([t.to_dict() for t in tags])
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
@api_bp.route("/api/tags/<int:tag_id>", methods=["PUT"])
|
| 79 |
+
def update_tag(tag_id):
|
| 80 |
+
tag = Tag.query.get(tag_id)
|
| 81 |
+
if not tag:
|
| 82 |
+
return jsonify({"error": "Tag not found"}), 404
|
| 83 |
+
|
| 84 |
+
data = request.get_json()
|
| 85 |
+
if not data:
|
| 86 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 87 |
+
|
| 88 |
+
if "name" in data:
|
| 89 |
+
existing = Tag.query.filter_by(name=data["name"]).first()
|
| 90 |
+
if existing and existing.id != tag_id:
|
| 91 |
+
return jsonify({"error": "A tag with that name already exists"}), 409
|
| 92 |
+
tag.name = data["name"]
|
| 93 |
+
if "color" in data:
|
| 94 |
+
tag.color = data["color"]
|
| 95 |
+
|
| 96 |
+
db.session.commit()
|
| 97 |
+
return jsonify(tag.to_dict())
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
@api_bp.route("/api/tags/<int:tag_id>", methods=["DELETE"])
|
| 101 |
+
def delete_tag(tag_id):
|
| 102 |
+
tag = Tag.query.get(tag_id)
|
| 103 |
+
if not tag:
|
| 104 |
+
return jsonify({"error": "Tag not found"}), 404
|
| 105 |
+
|
| 106 |
+
db.session.delete(tag)
|
| 107 |
+
db.session.commit()
|
| 108 |
+
return jsonify({"message": "Tag deleted"}), 200
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
# ---------------------------------------------------------------------------
|
| 112 |
+
# Projects
|
| 113 |
+
# ---------------------------------------------------------------------------
|
| 114 |
+
|
| 115 |
+
@api_bp.route("/api/projects", methods=["POST"])
|
| 116 |
+
def create_project():
|
| 117 |
+
data = request.get_json()
|
| 118 |
+
if not data or not data.get("name"):
|
| 119 |
+
return jsonify({"error": "name is required"}), 400
|
| 120 |
+
|
| 121 |
+
member_ids = data.get("member_ids", [])
|
| 122 |
+
users = User.query.filter(User.id.in_(member_ids)).all()
|
| 123 |
+
if len(users) != len(member_ids):
|
| 124 |
+
return jsonify({"error": "One or more member_ids are invalid"}), 400
|
| 125 |
+
|
| 126 |
+
project = Project(
|
| 127 |
+
name=data["name"],
|
| 128 |
+
description=data.get("description", ""),
|
| 129 |
+
)
|
| 130 |
+
db.session.add(project)
|
| 131 |
+
db.session.flush()
|
| 132 |
+
|
| 133 |
+
for i, user in enumerate(users):
|
| 134 |
+
role = "admin" if i == 0 else "member"
|
| 135 |
+
db.session.add(ProjectMember(project_id=project.id, user_id=user.id, role=role))
|
| 136 |
+
|
| 137 |
+
db.session.commit()
|
| 138 |
+
return jsonify(project.to_dict(include_members=True)), 201
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
@api_bp.route("/api/projects", methods=["GET"])
|
| 142 |
+
def list_projects():
|
| 143 |
+
include_archived = request.args.get("include_archived", "false").lower() == "true"
|
| 144 |
+
query = Project.query
|
| 145 |
+
if not include_archived:
|
| 146 |
+
query = query.filter_by(archived=False)
|
| 147 |
+
projects = query.all()
|
| 148 |
+
return jsonify([p.to_dict(include_members=True) for p in projects])
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
@api_bp.route("/api/projects/<int:project_id>", methods=["GET"])
|
| 152 |
+
def get_project(project_id):
|
| 153 |
+
project = Project.query.get(project_id)
|
| 154 |
+
if not project:
|
| 155 |
+
return jsonify({"error": "Project not found"}), 404
|
| 156 |
+
|
| 157 |
+
data = project.to_dict(include_members=True, include_tasks=True)
|
| 158 |
+
return jsonify(data)
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
@api_bp.route("/api/projects/<int:project_id>", methods=["PUT"])
|
| 162 |
+
def update_project(project_id):
|
| 163 |
+
project = Project.query.get(project_id)
|
| 164 |
+
if not project:
|
| 165 |
+
return jsonify({"error": "Project not found"}), 404
|
| 166 |
+
|
| 167 |
+
data = request.get_json()
|
| 168 |
+
if not data:
|
| 169 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 170 |
+
|
| 171 |
+
if "name" in data:
|
| 172 |
+
if not data["name"]:
|
| 173 |
+
return jsonify({"error": "name cannot be empty"}), 400
|
| 174 |
+
project.name = data["name"]
|
| 175 |
+
if "description" in data:
|
| 176 |
+
project.description = data["description"]
|
| 177 |
+
if "archived" in data:
|
| 178 |
+
project.archived = bool(data["archived"])
|
| 179 |
+
|
| 180 |
+
db.session.commit()
|
| 181 |
+
return jsonify(project.to_dict(include_members=True))
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
@api_bp.route("/api/projects/<int:project_id>/members", methods=["POST"])
|
| 185 |
+
def add_project_member(project_id):
|
| 186 |
+
project = Project.query.get(project_id)
|
| 187 |
+
if not project:
|
| 188 |
+
return jsonify({"error": "Project not found"}), 404
|
| 189 |
+
|
| 190 |
+
data = request.get_json()
|
| 191 |
+
if not data or not data.get("user_id"):
|
| 192 |
+
return jsonify({"error": "user_id is required"}), 400
|
| 193 |
+
|
| 194 |
+
user = User.query.get(data["user_id"])
|
| 195 |
+
if not user:
|
| 196 |
+
return jsonify({"error": "User not found"}), 404
|
| 197 |
+
|
| 198 |
+
existing = ProjectMember.query.filter_by(
|
| 199 |
+
project_id=project_id, user_id=data["user_id"]
|
| 200 |
+
).first()
|
| 201 |
+
if existing:
|
| 202 |
+
return jsonify({"error": "User is already a member of this project"}), 409
|
| 203 |
+
|
| 204 |
+
role = data.get("role", "member")
|
| 205 |
+
if role not in VALID_ROLES:
|
| 206 |
+
return jsonify({"error": f"Invalid role. Must be one of: {', '.join(VALID_ROLES)}"}), 400
|
| 207 |
+
|
| 208 |
+
member = ProjectMember(project_id=project_id, user_id=data["user_id"], role=role)
|
| 209 |
+
db.session.add(member)
|
| 210 |
+
db.session.commit()
|
| 211 |
+
return jsonify(member.to_dict()), 201
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
@api_bp.route("/api/projects/<int:project_id>/members/<int:user_id>", methods=["DELETE"])
|
| 215 |
+
def remove_project_member(project_id, user_id):
|
| 216 |
+
member = ProjectMember.query.filter_by(
|
| 217 |
+
project_id=project_id, user_id=user_id
|
| 218 |
+
).first()
|
| 219 |
+
if not member:
|
| 220 |
+
return jsonify({"error": "Member not found"}), 404
|
| 221 |
+
|
| 222 |
+
db.session.delete(member)
|
| 223 |
+
db.session.commit()
|
| 224 |
+
return jsonify({"message": "Member removed"}), 200
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
# ---------------------------------------------------------------------------
|
| 228 |
+
# Project Statistics
|
| 229 |
+
# ---------------------------------------------------------------------------
|
| 230 |
+
|
| 231 |
+
@api_bp.route("/api/projects/<int:project_id>/stats", methods=["GET"])
|
| 232 |
+
def get_project_stats(project_id):
|
| 233 |
+
project = Project.query.get(project_id)
|
| 234 |
+
if not project:
|
| 235 |
+
return jsonify({"error": "Project not found"}), 404
|
| 236 |
+
|
| 237 |
+
tasks = Task.query.filter_by(project_id=project_id).all()
|
| 238 |
+
total = len(tasks)
|
| 239 |
+
|
| 240 |
+
by_status = {"todo": 0, "in_progress": 0, "done": 0}
|
| 241 |
+
by_priority = {"low": 0, "medium": 0, "high": 0}
|
| 242 |
+
by_member = {}
|
| 243 |
+
overdue = 0
|
| 244 |
+
now = datetime.now(timezone.utc)
|
| 245 |
+
|
| 246 |
+
for task in tasks:
|
| 247 |
+
by_status[task.status] = by_status.get(task.status, 0) + 1
|
| 248 |
+
by_priority[task.priority] = by_priority.get(task.priority, 0) + 1
|
| 249 |
+
|
| 250 |
+
if task.assigned_to:
|
| 251 |
+
name = task.assignee.name if task.assignee else str(task.assigned_to)
|
| 252 |
+
if name not in by_member:
|
| 253 |
+
by_member[name] = {"total": 0, "done": 0}
|
| 254 |
+
by_member[name]["total"] += 1
|
| 255 |
+
if task.status == "done":
|
| 256 |
+
by_member[name]["done"] += 1
|
| 257 |
+
|
| 258 |
+
if task.due_date and task.due_date < now and task.status != "done":
|
| 259 |
+
overdue += 1
|
| 260 |
+
|
| 261 |
+
completion_rate = round((by_status.get("done", 0) / total * 100), 1) if total > 0 else 0
|
| 262 |
+
|
| 263 |
+
return jsonify({
|
| 264 |
+
"total_tasks": total,
|
| 265 |
+
"completion_rate": completion_rate,
|
| 266 |
+
"overdue_count": overdue,
|
| 267 |
+
"by_status": by_status,
|
| 268 |
+
"by_priority": by_priority,
|
| 269 |
+
"by_member": by_member,
|
| 270 |
+
})
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
# ---------------------------------------------------------------------------
|
| 274 |
+
# Tasks
|
| 275 |
+
# ---------------------------------------------------------------------------
|
| 276 |
+
|
| 277 |
+
@api_bp.route("/api/projects/<int:project_id>/tasks", methods=["GET"])
|
| 278 |
+
def list_tasks(project_id):
|
| 279 |
+
project = Project.query.get(project_id)
|
| 280 |
+
if not project:
|
| 281 |
+
return jsonify({"error": "Project not found"}), 404
|
| 282 |
+
|
| 283 |
+
query = Task.query.filter_by(project_id=project_id)
|
| 284 |
+
|
| 285 |
+
status = request.args.get("status")
|
| 286 |
+
if status and status in VALID_STATUSES:
|
| 287 |
+
query = query.filter_by(status=status)
|
| 288 |
+
|
| 289 |
+
priority = request.args.get("priority")
|
| 290 |
+
if priority and priority in VALID_PRIORITIES:
|
| 291 |
+
query = query.filter_by(priority=priority)
|
| 292 |
+
|
| 293 |
+
assigned_to = request.args.get("assigned_to")
|
| 294 |
+
if assigned_to:
|
| 295 |
+
try:
|
| 296 |
+
query = query.filter_by(assigned_to=int(assigned_to))
|
| 297 |
+
except ValueError:
|
| 298 |
+
pass
|
| 299 |
+
|
| 300 |
+
tag_name = request.args.get("tag")
|
| 301 |
+
if tag_name:
|
| 302 |
+
query = query.filter(Task.tags.any(Tag.name == tag_name))
|
| 303 |
+
|
| 304 |
+
sort = request.args.get("sort", "created_at")
|
| 305 |
+
if sort == "due_date":
|
| 306 |
+
query = query.order_by(Task.due_date.asc().nullslast())
|
| 307 |
+
elif sort == "priority":
|
| 308 |
+
priority_order = db.case(
|
| 309 |
+
(Task.priority == "high", 0),
|
| 310 |
+
(Task.priority == "medium", 1),
|
| 311 |
+
(Task.priority == "low", 2),
|
| 312 |
+
)
|
| 313 |
+
query = query.order_by(priority_order)
|
| 314 |
+
else:
|
| 315 |
+
query = query.order_by(Task.created_at.desc())
|
| 316 |
+
|
| 317 |
+
tasks = query.all()
|
| 318 |
+
return jsonify([t.to_dict() for t in tasks])
|
| 319 |
+
|
| 320 |
+
|
| 321 |
+
@api_bp.route("/api/projects/<int:project_id>/tasks", methods=["POST"])
|
| 322 |
+
def create_task(project_id):
|
| 323 |
+
project = Project.query.get(project_id)
|
| 324 |
+
if not project:
|
| 325 |
+
return jsonify({"error": "Project not found"}), 404
|
| 326 |
+
|
| 327 |
+
data = request.get_json()
|
| 328 |
+
if not data:
|
| 329 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 330 |
+
|
| 331 |
+
title = data.get("title")
|
| 332 |
+
created_by = data.get("created_by")
|
| 333 |
+
|
| 334 |
+
if not title or not created_by:
|
| 335 |
+
return jsonify({"error": "title and created_by are required"}), 400
|
| 336 |
+
|
| 337 |
+
member_user_ids = {m.user_id for m in project.members}
|
| 338 |
+
if created_by not in member_user_ids:
|
| 339 |
+
return jsonify({"error": "created_by user is not a member of this project"}), 400
|
| 340 |
+
|
| 341 |
+
assigned_to = data.get("assigned_to")
|
| 342 |
+
if assigned_to and assigned_to not in member_user_ids:
|
| 343 |
+
return jsonify({"error": "assigned_to user is not a member of this project"}), 400
|
| 344 |
+
|
| 345 |
+
status = data.get("status", "todo")
|
| 346 |
+
if status not in VALID_STATUSES:
|
| 347 |
+
return jsonify({"error": f"Invalid status. Must be one of: {', '.join(VALID_STATUSES)}"}), 400
|
| 348 |
+
|
| 349 |
+
priority = data.get("priority", "medium")
|
| 350 |
+
if priority not in VALID_PRIORITIES:
|
| 351 |
+
return jsonify({"error": f"Invalid priority. Must be one of: {', '.join(VALID_PRIORITIES)}"}), 400
|
| 352 |
+
|
| 353 |
+
due_date = None
|
| 354 |
+
if data.get("due_date"):
|
| 355 |
+
try:
|
| 356 |
+
due_date = datetime.fromisoformat(data["due_date"]).replace(tzinfo=timezone.utc)
|
| 357 |
+
except ValueError:
|
| 358 |
+
return jsonify({"error": "Invalid due_date format. Use ISO format."}), 400
|
| 359 |
+
|
| 360 |
+
task = Task(
|
| 361 |
+
project_id=project_id,
|
| 362 |
+
title=title,
|
| 363 |
+
description=data.get("description", ""),
|
| 364 |
+
status=status,
|
| 365 |
+
priority=priority,
|
| 366 |
+
assigned_to=assigned_to,
|
| 367 |
+
created_by=created_by,
|
| 368 |
+
due_date=due_date,
|
| 369 |
+
)
|
| 370 |
+
|
| 371 |
+
tag_ids = data.get("tag_ids", [])
|
| 372 |
+
if tag_ids:
|
| 373 |
+
tags = Tag.query.filter(Tag.id.in_(tag_ids)).all()
|
| 374 |
+
task.tags = tags
|
| 375 |
+
|
| 376 |
+
db.session.add(task)
|
| 377 |
+
db.session.flush()
|
| 378 |
+
|
| 379 |
+
_log_activity(task.id, created_by, "created")
|
| 380 |
+
db.session.commit()
|
| 381 |
+
return jsonify(task.to_dict()), 201
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
@api_bp.route("/api/tasks/<int:task_id>", methods=["GET"])
|
| 385 |
+
def get_task(task_id):
|
| 386 |
+
task = Task.query.get(task_id)
|
| 387 |
+
if not task:
|
| 388 |
+
return jsonify({"error": "Task not found"}), 404
|
| 389 |
+
return jsonify(task.to_dict(include_comments=True, include_activities=True))
|
| 390 |
+
|
| 391 |
+
|
| 392 |
+
@api_bp.route("/api/tasks/<int:task_id>", methods=["PUT"])
|
| 393 |
+
def update_task(task_id):
|
| 394 |
+
task = Task.query.get(task_id)
|
| 395 |
+
if not task:
|
| 396 |
+
return jsonify({"error": "Task not found"}), 404
|
| 397 |
+
|
| 398 |
+
data = request.get_json()
|
| 399 |
+
if not data:
|
| 400 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 401 |
+
|
| 402 |
+
user_id = data.get("updated_by")
|
| 403 |
+
|
| 404 |
+
if "title" in data:
|
| 405 |
+
if not data["title"]:
|
| 406 |
+
return jsonify({"error": "title cannot be empty"}), 400
|
| 407 |
+
old = task.title
|
| 408 |
+
task.title = data["title"]
|
| 409 |
+
if old != data["title"]:
|
| 410 |
+
_log_activity(task_id, user_id, "updated", "title", old, data["title"])
|
| 411 |
+
|
| 412 |
+
if "description" in data:
|
| 413 |
+
old = task.description
|
| 414 |
+
task.description = data["description"]
|
| 415 |
+
if old != data["description"]:
|
| 416 |
+
_log_activity(task_id, user_id, "updated", "description", old[:50] if old else None, data["description"][:50] if data["description"] else None)
|
| 417 |
+
|
| 418 |
+
if "status" in data:
|
| 419 |
+
if data["status"] not in VALID_STATUSES:
|
| 420 |
+
return jsonify({"error": f"Invalid status. Must be one of: {', '.join(VALID_STATUSES)}"}), 400
|
| 421 |
+
old = task.status
|
| 422 |
+
task.status = data["status"]
|
| 423 |
+
if old != data["status"]:
|
| 424 |
+
_log_activity(task_id, user_id, "updated", "status", old, data["status"])
|
| 425 |
+
|
| 426 |
+
if "priority" in data:
|
| 427 |
+
if data["priority"] not in VALID_PRIORITIES:
|
| 428 |
+
return jsonify({"error": f"Invalid priority. Must be one of: {', '.join(VALID_PRIORITIES)}"}), 400
|
| 429 |
+
old = task.priority
|
| 430 |
+
task.priority = data["priority"]
|
| 431 |
+
if old != data["priority"]:
|
| 432 |
+
_log_activity(task_id, user_id, "updated", "priority", old, data["priority"])
|
| 433 |
+
|
| 434 |
+
if "assigned_to" in data:
|
| 435 |
+
if data["assigned_to"] is not None:
|
| 436 |
+
member_user_ids = {m.user_id for m in task.project.members}
|
| 437 |
+
if data["assigned_to"] not in member_user_ids:
|
| 438 |
+
return jsonify({"error": "assigned_to user is not a member of this project"}), 400
|
| 439 |
+
old = task.assigned_to
|
| 440 |
+
task.assigned_to = data["assigned_to"]
|
| 441 |
+
if old != data["assigned_to"]:
|
| 442 |
+
old_name = User.query.get(old).name if old else "Unassigned"
|
| 443 |
+
new_name = User.query.get(data["assigned_to"]).name if data["assigned_to"] else "Unassigned"
|
| 444 |
+
_log_activity(task_id, user_id, "updated", "assigned_to", old_name, new_name)
|
| 445 |
+
|
| 446 |
+
if "due_date" in data:
|
| 447 |
+
old = task.due_date.isoformat() if task.due_date else None
|
| 448 |
+
if data["due_date"] is None:
|
| 449 |
+
task.due_date = None
|
| 450 |
+
else:
|
| 451 |
+
try:
|
| 452 |
+
task.due_date = datetime.fromisoformat(data["due_date"]).replace(tzinfo=timezone.utc)
|
| 453 |
+
except ValueError:
|
| 454 |
+
return jsonify({"error": "Invalid due_date format. Use ISO format."}), 400
|
| 455 |
+
new = task.due_date.isoformat() if task.due_date else None
|
| 456 |
+
if old != new:
|
| 457 |
+
_log_activity(task_id, user_id, "updated", "due_date", old, new)
|
| 458 |
+
|
| 459 |
+
if "tag_ids" in data:
|
| 460 |
+
old_tags = {t.name for t in task.tags}
|
| 461 |
+
tags = Tag.query.filter(Tag.id.in_(data["tag_ids"])).all()
|
| 462 |
+
task.tags = tags
|
| 463 |
+
new_tags = {t.name for t in tags}
|
| 464 |
+
added = new_tags - old_tags
|
| 465 |
+
removed = old_tags - new_tags
|
| 466 |
+
if added:
|
| 467 |
+
_log_activity(task_id, user_id, "tags_added", "tags", None, ", ".join(added))
|
| 468 |
+
if removed:
|
| 469 |
+
_log_activity(task_id, user_id, "tags_removed", "tags", ", ".join(removed), None)
|
| 470 |
+
|
| 471 |
+
db.session.commit()
|
| 472 |
+
return jsonify(task.to_dict())
|
| 473 |
+
|
| 474 |
+
|
| 475 |
+
@api_bp.route("/api/tasks/<int:task_id>", methods=["DELETE"])
|
| 476 |
+
def delete_task(task_id):
|
| 477 |
+
task = Task.query.get(task_id)
|
| 478 |
+
if not task:
|
| 479 |
+
return jsonify({"error": "Task not found"}), 404
|
| 480 |
+
|
| 481 |
+
db.session.delete(task)
|
| 482 |
+
db.session.commit()
|
| 483 |
+
return jsonify({"message": "Task deleted"}), 200
|
| 484 |
+
|
| 485 |
+
|
| 486 |
+
# ---------------------------------------------------------------------------
|
| 487 |
+
# Task Tags (convenience endpoints)
|
| 488 |
+
# ---------------------------------------------------------------------------
|
| 489 |
+
|
| 490 |
+
@api_bp.route("/api/tasks/<int:task_id>/tags", methods=["POST"])
|
| 491 |
+
def add_task_tag(task_id):
|
| 492 |
+
task = Task.query.get(task_id)
|
| 493 |
+
if not task:
|
| 494 |
+
return jsonify({"error": "Task not found"}), 404
|
| 495 |
+
|
| 496 |
+
data = request.get_json()
|
| 497 |
+
if not data or not data.get("tag_id"):
|
| 498 |
+
return jsonify({"error": "tag_id is required"}), 400
|
| 499 |
+
|
| 500 |
+
tag = Tag.query.get(data["tag_id"])
|
| 501 |
+
if not tag:
|
| 502 |
+
return jsonify({"error": "Tag not found"}), 404
|
| 503 |
+
|
| 504 |
+
if tag in task.tags:
|
| 505 |
+
return jsonify({"error": "Tag already attached"}), 409
|
| 506 |
+
|
| 507 |
+
task.tags.append(tag)
|
| 508 |
+
_log_activity(task_id, data.get("user_id"), "tags_added", "tags", None, tag.name)
|
| 509 |
+
db.session.commit()
|
| 510 |
+
return jsonify(task.to_dict()), 200
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
@api_bp.route("/api/tasks/<int:task_id>/tags/<int:tag_id>", methods=["DELETE"])
|
| 514 |
+
def remove_task_tag(task_id, tag_id):
|
| 515 |
+
task = Task.query.get(task_id)
|
| 516 |
+
if not task:
|
| 517 |
+
return jsonify({"error": "Task not found"}), 404
|
| 518 |
+
|
| 519 |
+
tag = Tag.query.get(tag_id)
|
| 520 |
+
if not tag or tag not in task.tags:
|
| 521 |
+
return jsonify({"error": "Tag not found on this task"}), 404
|
| 522 |
+
|
| 523 |
+
task.tags.remove(tag)
|
| 524 |
+
_log_activity(task_id, None, "tags_removed", "tags", tag.name, None)
|
| 525 |
+
db.session.commit()
|
| 526 |
+
return jsonify(task.to_dict()), 200
|
| 527 |
+
|
| 528 |
+
|
| 529 |
+
# ---------------------------------------------------------------------------
|
| 530 |
+
# Comments
|
| 531 |
+
# ---------------------------------------------------------------------------
|
| 532 |
+
|
| 533 |
+
@api_bp.route("/api/tasks/<int:task_id>/comments", methods=["POST"])
|
| 534 |
+
def create_comment(task_id):
|
| 535 |
+
task = Task.query.get(task_id)
|
| 536 |
+
if not task:
|
| 537 |
+
return jsonify({"error": "Task not found"}), 404
|
| 538 |
+
|
| 539 |
+
data = request.get_json()
|
| 540 |
+
if not data:
|
| 541 |
+
return jsonify({"error": "Request body is required"}), 400
|
| 542 |
+
|
| 543 |
+
user_id = data.get("user_id")
|
| 544 |
+
text = data.get("text")
|
| 545 |
+
|
| 546 |
+
if not user_id or not text:
|
| 547 |
+
return jsonify({"error": "user_id and text are required"}), 400
|
| 548 |
+
|
| 549 |
+
user = User.query.get(user_id)
|
| 550 |
+
if not user:
|
| 551 |
+
return jsonify({"error": "User not found"}), 404
|
| 552 |
+
|
| 553 |
+
comment = Comment(
|
| 554 |
+
task_id=task_id,
|
| 555 |
+
user_id=user_id,
|
| 556 |
+
text=text,
|
| 557 |
+
)
|
| 558 |
+
db.session.add(comment)
|
| 559 |
+
_log_activity(task_id, user_id, "commented")
|
| 560 |
+
db.session.commit()
|
| 561 |
+
return jsonify(comment.to_dict()), 201
|
| 562 |
+
|
| 563 |
+
|
| 564 |
+
@api_bp.route("/api/tasks/<int:task_id>/comments", methods=["GET"])
|
| 565 |
+
def list_comments(task_id):
|
| 566 |
+
task = Task.query.get(task_id)
|
| 567 |
+
if not task:
|
| 568 |
+
return jsonify({"error": "Task not found"}), 404
|
| 569 |
+
return jsonify([c.to_dict() for c in task.comments])
|
| 570 |
+
|
| 571 |
+
|
| 572 |
+
# ---------------------------------------------------------------------------
|
| 573 |
+
# Activity Log
|
| 574 |
+
# ---------------------------------------------------------------------------
|
| 575 |
+
|
| 576 |
+
@api_bp.route("/api/tasks/<int:task_id>/activities", methods=["GET"])
|
| 577 |
+
def list_activities(task_id):
|
| 578 |
+
task = Task.query.get(task_id)
|
| 579 |
+
if not task:
|
| 580 |
+
return jsonify({"error": "Task not found"}), 404
|
| 581 |
+
activities = Activity.query.filter_by(task_id=task_id).order_by(Activity.created_at.desc()).all()
|
| 582 |
+
return jsonify([a.to_dict() for a in activities])
|
| 583 |
+
|
| 584 |
+
|
| 585 |
+
@api_bp.route("/api/projects/<int:project_id>/activities", methods=["GET"])
|
| 586 |
+
def list_project_activities(project_id):
|
| 587 |
+
project = Project.query.get(project_id)
|
| 588 |
+
if not project:
|
| 589 |
+
return jsonify({"error": "Project not found"}), 404
|
| 590 |
+
|
| 591 |
+
task_ids = [t.id for t in project.tasks]
|
| 592 |
+
if not task_ids:
|
| 593 |
+
return jsonify([])
|
| 594 |
+
|
| 595 |
+
limit = request.args.get("limit", 20, type=int)
|
| 596 |
+
activities = (
|
| 597 |
+
Activity.query
|
| 598 |
+
.filter(Activity.task_id.in_(task_ids))
|
| 599 |
+
.order_by(Activity.created_at.desc())
|
| 600 |
+
.limit(limit)
|
| 601 |
+
.all()
|
| 602 |
+
)
|
| 603 |
+
result = []
|
| 604 |
+
for a in activities:
|
| 605 |
+
d = a.to_dict()
|
| 606 |
+
d["task_title"] = a.task.title if a.task else None
|
| 607 |
+
result.append(d)
|
| 608 |
+
return jsonify(result)
|
| 609 |
+
|
| 610 |
+
|
| 611 |
+
# ---------------------------------------------------------------------------
|
| 612 |
+
# Search
|
| 613 |
+
# ---------------------------------------------------------------------------
|
| 614 |
+
|
| 615 |
+
@api_bp.route("/api/search", methods=["GET"])
|
| 616 |
+
def search_tasks():
|
| 617 |
+
q = request.args.get("q", "").strip()
|
| 618 |
+
if not q:
|
| 619 |
+
return jsonify([])
|
| 620 |
+
|
| 621 |
+
tasks = Task.query.filter(
|
| 622 |
+
db.or_(
|
| 623 |
+
Task.title.ilike(f"%{q}%"),
|
| 624 |
+
Task.description.ilike(f"%{q}%"),
|
| 625 |
+
)
|
| 626 |
+
).order_by(Task.created_at.desc()).limit(50).all()
|
| 627 |
+
|
| 628 |
+
return jsonify([t.to_dict() for t in tasks])
|
| 629 |
+
|
| 630 |
+
|
| 631 |
+
# ---------------------------------------------------------------------------
|
| 632 |
+
# Reset
|
| 633 |
+
# ---------------------------------------------------------------------------
|
| 634 |
+
|
| 635 |
+
@api_bp.route("/api/reset", methods=["POST"])
|
| 636 |
+
def reset_db():
|
| 637 |
+
meta = db.metadata
|
| 638 |
+
for table in reversed(meta.sorted_tables):
|
| 639 |
+
db.session.execute(table.delete())
|
| 640 |
+
db.session.commit()
|
| 641 |
+
return jsonify({"status": "reset"}), 200
|
screenshot42-taskmanager-projectdetail/environment/app/backend/requirements.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
flask
|
| 2 |
+
flask-cors
|
| 3 |
+
flask-sqlalchemy
|
| 4 |
+
flask-migrate
|
screenshot42-taskmanager-projectdetail/environment/app/backend/run.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from app import create_app
|
| 2 |
+
|
| 3 |
+
app = create_app()
|
| 4 |
+
|
| 5 |
+
if __name__ == "__main__":
|
| 6 |
+
app.run(debug=True, port=5101)
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/index.html
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>TaskFlow</title>
|
| 7 |
+
</head>
|
| 8 |
+
<body>
|
| 9 |
+
<div id="root"></div>
|
| 10 |
+
<script type="module" src="/src/main.jsx"></script>
|
| 11 |
+
</body>
|
| 12 |
+
</html>
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/package-lock.json
ADDED
|
@@ -0,0 +1,991 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "taskflow-frontend",
|
| 3 |
+
"version": "0.0.0",
|
| 4 |
+
"lockfileVersion": 3,
|
| 5 |
+
"requires": true,
|
| 6 |
+
"packages": {
|
| 7 |
+
"": {
|
| 8 |
+
"name": "taskflow-frontend",
|
| 9 |
+
"version": "0.0.0",
|
| 10 |
+
"dependencies": {
|
| 11 |
+
"react": "^19.2.4",
|
| 12 |
+
"react-dom": "^19.2.4",
|
| 13 |
+
"react-router-dom": "^7.13.1"
|
| 14 |
+
},
|
| 15 |
+
"devDependencies": {
|
| 16 |
+
"@vitejs/plugin-react": "^6.0.0",
|
| 17 |
+
"vite": "^8.0.0"
|
| 18 |
+
}
|
| 19 |
+
},
|
| 20 |
+
"node_modules/@emnapi/core": {
|
| 21 |
+
"version": "1.9.1",
|
| 22 |
+
"resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.1.tgz",
|
| 23 |
+
"integrity": "sha512-mukuNALVsoix/w1BJwFzwXBN/dHeejQtuVzcDsfOEsdpCumXb/E9j8w11h5S54tT1xhifGfbbSm/ICrObRb3KA==",
|
| 24 |
+
"dev": true,
|
| 25 |
+
"license": "MIT",
|
| 26 |
+
"optional": true,
|
| 27 |
+
"dependencies": {
|
| 28 |
+
"@emnapi/wasi-threads": "1.2.0",
|
| 29 |
+
"tslib": "^2.4.0"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
"node_modules/@emnapi/runtime": {
|
| 33 |
+
"version": "1.9.1",
|
| 34 |
+
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.1.tgz",
|
| 35 |
+
"integrity": "sha512-VYi5+ZVLhpgK4hQ0TAjiQiZ6ol0oe4mBx7mVv7IflsiEp0OWoVsp/+f9Vc1hOhE0TtkORVrI1GvzyreqpgWtkA==",
|
| 36 |
+
"dev": true,
|
| 37 |
+
"license": "MIT",
|
| 38 |
+
"optional": true,
|
| 39 |
+
"dependencies": {
|
| 40 |
+
"tslib": "^2.4.0"
|
| 41 |
+
}
|
| 42 |
+
},
|
| 43 |
+
"node_modules/@emnapi/wasi-threads": {
|
| 44 |
+
"version": "1.2.0",
|
| 45 |
+
"resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.0.tgz",
|
| 46 |
+
"integrity": "sha512-N10dEJNSsUx41Z6pZsXU8FjPjpBEplgH24sfkmITrBED1/U2Esum9F3lfLrMjKHHjmi557zQn7kR9R+XWXu5Rg==",
|
| 47 |
+
"dev": true,
|
| 48 |
+
"license": "MIT",
|
| 49 |
+
"optional": true,
|
| 50 |
+
"dependencies": {
|
| 51 |
+
"tslib": "^2.4.0"
|
| 52 |
+
}
|
| 53 |
+
},
|
| 54 |
+
"node_modules/@napi-rs/wasm-runtime": {
|
| 55 |
+
"version": "1.1.1",
|
| 56 |
+
"resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.1.tgz",
|
| 57 |
+
"integrity": "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==",
|
| 58 |
+
"dev": true,
|
| 59 |
+
"license": "MIT",
|
| 60 |
+
"optional": true,
|
| 61 |
+
"dependencies": {
|
| 62 |
+
"@emnapi/core": "^1.7.1",
|
| 63 |
+
"@emnapi/runtime": "^1.7.1",
|
| 64 |
+
"@tybys/wasm-util": "^0.10.1"
|
| 65 |
+
},
|
| 66 |
+
"funding": {
|
| 67 |
+
"type": "github",
|
| 68 |
+
"url": "https://github.com/sponsors/Brooooooklyn"
|
| 69 |
+
}
|
| 70 |
+
},
|
| 71 |
+
"node_modules/@oxc-project/types": {
|
| 72 |
+
"version": "0.122.0",
|
| 73 |
+
"resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.122.0.tgz",
|
| 74 |
+
"integrity": "sha512-oLAl5kBpV4w69UtFZ9xqcmTi+GENWOcPF7FCrczTiBbmC0ibXxCwyvZGbO39rCVEuLGAZM84DH0pUIyyv/YJzA==",
|
| 75 |
+
"dev": true,
|
| 76 |
+
"license": "MIT",
|
| 77 |
+
"funding": {
|
| 78 |
+
"url": "https://github.com/sponsors/Boshen"
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
"node_modules/@rolldown/binding-android-arm64": {
|
| 82 |
+
"version": "1.0.0-rc.11",
|
| 83 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.11.tgz",
|
| 84 |
+
"integrity": "sha512-SJ+/g+xNnOh6NqYxD0V3uVN4W3VfnrGsC9/hoglicgTNfABFG9JjISvkkU0dNY84MNHLWyOgxP9v9Y9pX4S7+A==",
|
| 85 |
+
"cpu": [
|
| 86 |
+
"arm64"
|
| 87 |
+
],
|
| 88 |
+
"dev": true,
|
| 89 |
+
"license": "MIT",
|
| 90 |
+
"optional": true,
|
| 91 |
+
"os": [
|
| 92 |
+
"android"
|
| 93 |
+
],
|
| 94 |
+
"engines": {
|
| 95 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 96 |
+
}
|
| 97 |
+
},
|
| 98 |
+
"node_modules/@rolldown/binding-darwin-arm64": {
|
| 99 |
+
"version": "1.0.0-rc.11",
|
| 100 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.11.tgz",
|
| 101 |
+
"integrity": "sha512-7WQgR8SfOPwmDZGFkThUvsmd/nwAWv91oCO4I5LS7RKrssPZmOt7jONN0cW17ydGC1n/+puol1IpoieKqQidmg==",
|
| 102 |
+
"cpu": [
|
| 103 |
+
"arm64"
|
| 104 |
+
],
|
| 105 |
+
"dev": true,
|
| 106 |
+
"license": "MIT",
|
| 107 |
+
"optional": true,
|
| 108 |
+
"os": [
|
| 109 |
+
"darwin"
|
| 110 |
+
],
|
| 111 |
+
"engines": {
|
| 112 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 113 |
+
}
|
| 114 |
+
},
|
| 115 |
+
"node_modules/@rolldown/binding-darwin-x64": {
|
| 116 |
+
"version": "1.0.0-rc.11",
|
| 117 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.11.tgz",
|
| 118 |
+
"integrity": "sha512-39Ks6UvIHq4rEogIfQBoBRusj0Q0nPVWIvqmwBLaT6aqQGIakHdESBVOPRRLacy4WwUPIx4ZKzfZ9PMW+IeyUQ==",
|
| 119 |
+
"cpu": [
|
| 120 |
+
"x64"
|
| 121 |
+
],
|
| 122 |
+
"dev": true,
|
| 123 |
+
"license": "MIT",
|
| 124 |
+
"optional": true,
|
| 125 |
+
"os": [
|
| 126 |
+
"darwin"
|
| 127 |
+
],
|
| 128 |
+
"engines": {
|
| 129 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 130 |
+
}
|
| 131 |
+
},
|
| 132 |
+
"node_modules/@rolldown/binding-freebsd-x64": {
|
| 133 |
+
"version": "1.0.0-rc.11",
|
| 134 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.11.tgz",
|
| 135 |
+
"integrity": "sha512-jfsm0ZHfhiqrvWjJAmzsqiIFPz5e7mAoCOPBNTcNgkiid/LaFKiq92+0ojH+nmJmKYkre4t71BWXUZDNp7vsag==",
|
| 136 |
+
"cpu": [
|
| 137 |
+
"x64"
|
| 138 |
+
],
|
| 139 |
+
"dev": true,
|
| 140 |
+
"license": "MIT",
|
| 141 |
+
"optional": true,
|
| 142 |
+
"os": [
|
| 143 |
+
"freebsd"
|
| 144 |
+
],
|
| 145 |
+
"engines": {
|
| 146 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 147 |
+
}
|
| 148 |
+
},
|
| 149 |
+
"node_modules/@rolldown/binding-linux-arm-gnueabihf": {
|
| 150 |
+
"version": "1.0.0-rc.11",
|
| 151 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.11.tgz",
|
| 152 |
+
"integrity": "sha512-zjQaUtSyq1nVe3nxmlSCuR96T1LPlpvmJ0SZy0WJFEsV4kFbXcq2u68L4E6O0XeFj4aex9bEauqjW8UQBeAvfQ==",
|
| 153 |
+
"cpu": [
|
| 154 |
+
"arm"
|
| 155 |
+
],
|
| 156 |
+
"dev": true,
|
| 157 |
+
"license": "MIT",
|
| 158 |
+
"optional": true,
|
| 159 |
+
"os": [
|
| 160 |
+
"linux"
|
| 161 |
+
],
|
| 162 |
+
"engines": {
|
| 163 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 164 |
+
}
|
| 165 |
+
},
|
| 166 |
+
"node_modules/@rolldown/binding-linux-arm64-gnu": {
|
| 167 |
+
"version": "1.0.0-rc.11",
|
| 168 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.11.tgz",
|
| 169 |
+
"integrity": "sha512-WMW1yE6IOnehTcFE9eipFkm3XN63zypWlrJQ2iF7NrQ9b2LDRjumFoOGJE8RJJTJCTBAdmLMnJ8uVitACUUo1Q==",
|
| 170 |
+
"cpu": [
|
| 171 |
+
"arm64"
|
| 172 |
+
],
|
| 173 |
+
"dev": true,
|
| 174 |
+
"license": "MIT",
|
| 175 |
+
"optional": true,
|
| 176 |
+
"os": [
|
| 177 |
+
"linux"
|
| 178 |
+
],
|
| 179 |
+
"engines": {
|
| 180 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 181 |
+
}
|
| 182 |
+
},
|
| 183 |
+
"node_modules/@rolldown/binding-linux-arm64-musl": {
|
| 184 |
+
"version": "1.0.0-rc.11",
|
| 185 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.11.tgz",
|
| 186 |
+
"integrity": "sha512-jfndI9tsfm4APzjNt6QdBkYwre5lRPUgHeDHoI7ydKUuJvz3lZeCfMsI56BZj+7BYqiKsJm7cfd/6KYV7ubrBg==",
|
| 187 |
+
"cpu": [
|
| 188 |
+
"arm64"
|
| 189 |
+
],
|
| 190 |
+
"dev": true,
|
| 191 |
+
"license": "MIT",
|
| 192 |
+
"optional": true,
|
| 193 |
+
"os": [
|
| 194 |
+
"linux"
|
| 195 |
+
],
|
| 196 |
+
"engines": {
|
| 197 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 198 |
+
}
|
| 199 |
+
},
|
| 200 |
+
"node_modules/@rolldown/binding-linux-ppc64-gnu": {
|
| 201 |
+
"version": "1.0.0-rc.11",
|
| 202 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.11.tgz",
|
| 203 |
+
"integrity": "sha512-ZlFgw46NOAGMgcdvdYwAGu2Q+SLFA9LzbJLW+iyMOJyhj5wk6P3KEE9Gct4xWwSzFoPI7JCdYmYMzVtlgQ+zfw==",
|
| 204 |
+
"cpu": [
|
| 205 |
+
"ppc64"
|
| 206 |
+
],
|
| 207 |
+
"dev": true,
|
| 208 |
+
"license": "MIT",
|
| 209 |
+
"optional": true,
|
| 210 |
+
"os": [
|
| 211 |
+
"linux"
|
| 212 |
+
],
|
| 213 |
+
"engines": {
|
| 214 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 215 |
+
}
|
| 216 |
+
},
|
| 217 |
+
"node_modules/@rolldown/binding-linux-s390x-gnu": {
|
| 218 |
+
"version": "1.0.0-rc.11",
|
| 219 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.11.tgz",
|
| 220 |
+
"integrity": "sha512-hIOYmuT6ofM4K04XAZd3OzMySEO4K0/nc9+jmNcxNAxRi6c5UWpqfw3KMFV4MVFWL+jQsSh+bGw2VqmaPMTLyw==",
|
| 221 |
+
"cpu": [
|
| 222 |
+
"s390x"
|
| 223 |
+
],
|
| 224 |
+
"dev": true,
|
| 225 |
+
"license": "MIT",
|
| 226 |
+
"optional": true,
|
| 227 |
+
"os": [
|
| 228 |
+
"linux"
|
| 229 |
+
],
|
| 230 |
+
"engines": {
|
| 231 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 232 |
+
}
|
| 233 |
+
},
|
| 234 |
+
"node_modules/@rolldown/binding-linux-x64-gnu": {
|
| 235 |
+
"version": "1.0.0-rc.11",
|
| 236 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.11.tgz",
|
| 237 |
+
"integrity": "sha512-qXBQQO9OvkjjQPLdUVr7Nr2t3QTZI7s4KZtfw7HzBgjbmAPSFwSv4rmET9lLSgq3rH/ndA3ngv3Qb8l2njoPNA==",
|
| 238 |
+
"cpu": [
|
| 239 |
+
"x64"
|
| 240 |
+
],
|
| 241 |
+
"dev": true,
|
| 242 |
+
"license": "MIT",
|
| 243 |
+
"optional": true,
|
| 244 |
+
"os": [
|
| 245 |
+
"linux"
|
| 246 |
+
],
|
| 247 |
+
"engines": {
|
| 248 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 249 |
+
}
|
| 250 |
+
},
|
| 251 |
+
"node_modules/@rolldown/binding-linux-x64-musl": {
|
| 252 |
+
"version": "1.0.0-rc.11",
|
| 253 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.11.tgz",
|
| 254 |
+
"integrity": "sha512-/tpFfoSTzUkH9LPY+cYbqZBDyyX62w5fICq9qzsHLL8uTI6BHip3Q9Uzft0wylk/i8OOwKik8OxW+QAhDmzwmg==",
|
| 255 |
+
"cpu": [
|
| 256 |
+
"x64"
|
| 257 |
+
],
|
| 258 |
+
"dev": true,
|
| 259 |
+
"license": "MIT",
|
| 260 |
+
"optional": true,
|
| 261 |
+
"os": [
|
| 262 |
+
"linux"
|
| 263 |
+
],
|
| 264 |
+
"engines": {
|
| 265 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 266 |
+
}
|
| 267 |
+
},
|
| 268 |
+
"node_modules/@rolldown/binding-openharmony-arm64": {
|
| 269 |
+
"version": "1.0.0-rc.11",
|
| 270 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.11.tgz",
|
| 271 |
+
"integrity": "sha512-mcp3Rio2w72IvdZG0oQ4bM2c2oumtwHfUfKncUM6zGgz0KgPz4YmDPQfnXEiY5t3+KD/i8HG2rOB/LxdmieK2g==",
|
| 272 |
+
"cpu": [
|
| 273 |
+
"arm64"
|
| 274 |
+
],
|
| 275 |
+
"dev": true,
|
| 276 |
+
"license": "MIT",
|
| 277 |
+
"optional": true,
|
| 278 |
+
"os": [
|
| 279 |
+
"openharmony"
|
| 280 |
+
],
|
| 281 |
+
"engines": {
|
| 282 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 283 |
+
}
|
| 284 |
+
},
|
| 285 |
+
"node_modules/@rolldown/binding-wasm32-wasi": {
|
| 286 |
+
"version": "1.0.0-rc.11",
|
| 287 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.11.tgz",
|
| 288 |
+
"integrity": "sha512-LXk5Hii1Ph9asuGRjBuz8TUxdc1lWzB7nyfdoRgI0WGPZKmCxvlKk8KfYysqtr4MfGElu/f/pEQRh8fcEgkrWw==",
|
| 289 |
+
"cpu": [
|
| 290 |
+
"wasm32"
|
| 291 |
+
],
|
| 292 |
+
"dev": true,
|
| 293 |
+
"license": "MIT",
|
| 294 |
+
"optional": true,
|
| 295 |
+
"dependencies": {
|
| 296 |
+
"@napi-rs/wasm-runtime": "^1.1.1"
|
| 297 |
+
},
|
| 298 |
+
"engines": {
|
| 299 |
+
"node": ">=14.0.0"
|
| 300 |
+
}
|
| 301 |
+
},
|
| 302 |
+
"node_modules/@rolldown/binding-win32-arm64-msvc": {
|
| 303 |
+
"version": "1.0.0-rc.11",
|
| 304 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.11.tgz",
|
| 305 |
+
"integrity": "sha512-dDwf5otnx0XgRY1yqxOC4ITizcdzS/8cQ3goOWv3jFAo4F+xQYni+hnMuO6+LssHHdJW7+OCVL3CoU4ycnh35Q==",
|
| 306 |
+
"cpu": [
|
| 307 |
+
"arm64"
|
| 308 |
+
],
|
| 309 |
+
"dev": true,
|
| 310 |
+
"license": "MIT",
|
| 311 |
+
"optional": true,
|
| 312 |
+
"os": [
|
| 313 |
+
"win32"
|
| 314 |
+
],
|
| 315 |
+
"engines": {
|
| 316 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 317 |
+
}
|
| 318 |
+
},
|
| 319 |
+
"node_modules/@rolldown/binding-win32-x64-msvc": {
|
| 320 |
+
"version": "1.0.0-rc.11",
|
| 321 |
+
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.11.tgz",
|
| 322 |
+
"integrity": "sha512-LN4/skhSggybX71ews7dAj6r2geaMJfm3kMbK2KhFMg9B10AZXnKoLCVVgzhMHL0S+aKtr4p8QbAW8k+w95bAA==",
|
| 323 |
+
"cpu": [
|
| 324 |
+
"x64"
|
| 325 |
+
],
|
| 326 |
+
"dev": true,
|
| 327 |
+
"license": "MIT",
|
| 328 |
+
"optional": true,
|
| 329 |
+
"os": [
|
| 330 |
+
"win32"
|
| 331 |
+
],
|
| 332 |
+
"engines": {
|
| 333 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 334 |
+
}
|
| 335 |
+
},
|
| 336 |
+
"node_modules/@rolldown/pluginutils": {
|
| 337 |
+
"version": "1.0.0-rc.7",
|
| 338 |
+
"resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.7.tgz",
|
| 339 |
+
"integrity": "sha512-qujRfC8sFVInYSPPMLQByRh7zhwkGFS4+tyMQ83srV1qrxL4g8E2tyxVVyxd0+8QeBM1mIk9KbWxkegRr76XzA==",
|
| 340 |
+
"dev": true,
|
| 341 |
+
"license": "MIT"
|
| 342 |
+
},
|
| 343 |
+
"node_modules/@tybys/wasm-util": {
|
| 344 |
+
"version": "0.10.1",
|
| 345 |
+
"resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",
|
| 346 |
+
"integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",
|
| 347 |
+
"dev": true,
|
| 348 |
+
"license": "MIT",
|
| 349 |
+
"optional": true,
|
| 350 |
+
"dependencies": {
|
| 351 |
+
"tslib": "^2.4.0"
|
| 352 |
+
}
|
| 353 |
+
},
|
| 354 |
+
"node_modules/@vitejs/plugin-react": {
|
| 355 |
+
"version": "6.0.1",
|
| 356 |
+
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.0.1.tgz",
|
| 357 |
+
"integrity": "sha512-l9X/E3cDb+xY3SWzlG1MOGt2usfEHGMNIaegaUGFsLkb3RCn/k8/TOXBcab+OndDI4TBtktT8/9BwwW8Vi9KUQ==",
|
| 358 |
+
"dev": true,
|
| 359 |
+
"license": "MIT",
|
| 360 |
+
"dependencies": {
|
| 361 |
+
"@rolldown/pluginutils": "1.0.0-rc.7"
|
| 362 |
+
},
|
| 363 |
+
"engines": {
|
| 364 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 365 |
+
},
|
| 366 |
+
"peerDependencies": {
|
| 367 |
+
"@rolldown/plugin-babel": "^0.1.7 || ^0.2.0",
|
| 368 |
+
"babel-plugin-react-compiler": "^1.0.0",
|
| 369 |
+
"vite": "^8.0.0"
|
| 370 |
+
},
|
| 371 |
+
"peerDependenciesMeta": {
|
| 372 |
+
"@rolldown/plugin-babel": {
|
| 373 |
+
"optional": true
|
| 374 |
+
},
|
| 375 |
+
"babel-plugin-react-compiler": {
|
| 376 |
+
"optional": true
|
| 377 |
+
}
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
"node_modules/cookie": {
|
| 381 |
+
"version": "1.1.1",
|
| 382 |
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
|
| 383 |
+
"integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
|
| 384 |
+
"license": "MIT",
|
| 385 |
+
"engines": {
|
| 386 |
+
"node": ">=18"
|
| 387 |
+
},
|
| 388 |
+
"funding": {
|
| 389 |
+
"type": "opencollective",
|
| 390 |
+
"url": "https://opencollective.com/express"
|
| 391 |
+
}
|
| 392 |
+
},
|
| 393 |
+
"node_modules/detect-libc": {
|
| 394 |
+
"version": "2.1.2",
|
| 395 |
+
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
|
| 396 |
+
"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
|
| 397 |
+
"dev": true,
|
| 398 |
+
"license": "Apache-2.0",
|
| 399 |
+
"engines": {
|
| 400 |
+
"node": ">=8"
|
| 401 |
+
}
|
| 402 |
+
},
|
| 403 |
+
"node_modules/fdir": {
|
| 404 |
+
"version": "6.5.0",
|
| 405 |
+
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
|
| 406 |
+
"integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
|
| 407 |
+
"dev": true,
|
| 408 |
+
"license": "MIT",
|
| 409 |
+
"engines": {
|
| 410 |
+
"node": ">=12.0.0"
|
| 411 |
+
},
|
| 412 |
+
"peerDependencies": {
|
| 413 |
+
"picomatch": "^3 || ^4"
|
| 414 |
+
},
|
| 415 |
+
"peerDependenciesMeta": {
|
| 416 |
+
"picomatch": {
|
| 417 |
+
"optional": true
|
| 418 |
+
}
|
| 419 |
+
}
|
| 420 |
+
},
|
| 421 |
+
"node_modules/fsevents": {
|
| 422 |
+
"version": "2.3.3",
|
| 423 |
+
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
|
| 424 |
+
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
|
| 425 |
+
"dev": true,
|
| 426 |
+
"hasInstallScript": true,
|
| 427 |
+
"license": "MIT",
|
| 428 |
+
"optional": true,
|
| 429 |
+
"os": [
|
| 430 |
+
"darwin"
|
| 431 |
+
],
|
| 432 |
+
"engines": {
|
| 433 |
+
"node": "^8.16.0 || ^10.6.0 || >=11.0.0"
|
| 434 |
+
}
|
| 435 |
+
},
|
| 436 |
+
"node_modules/lightningcss": {
|
| 437 |
+
"version": "1.32.0",
|
| 438 |
+
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
|
| 439 |
+
"integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
|
| 440 |
+
"dev": true,
|
| 441 |
+
"license": "MPL-2.0",
|
| 442 |
+
"dependencies": {
|
| 443 |
+
"detect-libc": "^2.0.3"
|
| 444 |
+
},
|
| 445 |
+
"engines": {
|
| 446 |
+
"node": ">= 12.0.0"
|
| 447 |
+
},
|
| 448 |
+
"funding": {
|
| 449 |
+
"type": "opencollective",
|
| 450 |
+
"url": "https://opencollective.com/parcel"
|
| 451 |
+
},
|
| 452 |
+
"optionalDependencies": {
|
| 453 |
+
"lightningcss-android-arm64": "1.32.0",
|
| 454 |
+
"lightningcss-darwin-arm64": "1.32.0",
|
| 455 |
+
"lightningcss-darwin-x64": "1.32.0",
|
| 456 |
+
"lightningcss-freebsd-x64": "1.32.0",
|
| 457 |
+
"lightningcss-linux-arm-gnueabihf": "1.32.0",
|
| 458 |
+
"lightningcss-linux-arm64-gnu": "1.32.0",
|
| 459 |
+
"lightningcss-linux-arm64-musl": "1.32.0",
|
| 460 |
+
"lightningcss-linux-x64-gnu": "1.32.0",
|
| 461 |
+
"lightningcss-linux-x64-musl": "1.32.0",
|
| 462 |
+
"lightningcss-win32-arm64-msvc": "1.32.0",
|
| 463 |
+
"lightningcss-win32-x64-msvc": "1.32.0"
|
| 464 |
+
}
|
| 465 |
+
},
|
| 466 |
+
"node_modules/lightningcss-android-arm64": {
|
| 467 |
+
"version": "1.32.0",
|
| 468 |
+
"resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",
|
| 469 |
+
"integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",
|
| 470 |
+
"cpu": [
|
| 471 |
+
"arm64"
|
| 472 |
+
],
|
| 473 |
+
"dev": true,
|
| 474 |
+
"license": "MPL-2.0",
|
| 475 |
+
"optional": true,
|
| 476 |
+
"os": [
|
| 477 |
+
"android"
|
| 478 |
+
],
|
| 479 |
+
"engines": {
|
| 480 |
+
"node": ">= 12.0.0"
|
| 481 |
+
},
|
| 482 |
+
"funding": {
|
| 483 |
+
"type": "opencollective",
|
| 484 |
+
"url": "https://opencollective.com/parcel"
|
| 485 |
+
}
|
| 486 |
+
},
|
| 487 |
+
"node_modules/lightningcss-darwin-arm64": {
|
| 488 |
+
"version": "1.32.0",
|
| 489 |
+
"resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",
|
| 490 |
+
"integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",
|
| 491 |
+
"cpu": [
|
| 492 |
+
"arm64"
|
| 493 |
+
],
|
| 494 |
+
"dev": true,
|
| 495 |
+
"license": "MPL-2.0",
|
| 496 |
+
"optional": true,
|
| 497 |
+
"os": [
|
| 498 |
+
"darwin"
|
| 499 |
+
],
|
| 500 |
+
"engines": {
|
| 501 |
+
"node": ">= 12.0.0"
|
| 502 |
+
},
|
| 503 |
+
"funding": {
|
| 504 |
+
"type": "opencollective",
|
| 505 |
+
"url": "https://opencollective.com/parcel"
|
| 506 |
+
}
|
| 507 |
+
},
|
| 508 |
+
"node_modules/lightningcss-darwin-x64": {
|
| 509 |
+
"version": "1.32.0",
|
| 510 |
+
"resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",
|
| 511 |
+
"integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",
|
| 512 |
+
"cpu": [
|
| 513 |
+
"x64"
|
| 514 |
+
],
|
| 515 |
+
"dev": true,
|
| 516 |
+
"license": "MPL-2.0",
|
| 517 |
+
"optional": true,
|
| 518 |
+
"os": [
|
| 519 |
+
"darwin"
|
| 520 |
+
],
|
| 521 |
+
"engines": {
|
| 522 |
+
"node": ">= 12.0.0"
|
| 523 |
+
},
|
| 524 |
+
"funding": {
|
| 525 |
+
"type": "opencollective",
|
| 526 |
+
"url": "https://opencollective.com/parcel"
|
| 527 |
+
}
|
| 528 |
+
},
|
| 529 |
+
"node_modules/lightningcss-freebsd-x64": {
|
| 530 |
+
"version": "1.32.0",
|
| 531 |
+
"resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",
|
| 532 |
+
"integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",
|
| 533 |
+
"cpu": [
|
| 534 |
+
"x64"
|
| 535 |
+
],
|
| 536 |
+
"dev": true,
|
| 537 |
+
"license": "MPL-2.0",
|
| 538 |
+
"optional": true,
|
| 539 |
+
"os": [
|
| 540 |
+
"freebsd"
|
| 541 |
+
],
|
| 542 |
+
"engines": {
|
| 543 |
+
"node": ">= 12.0.0"
|
| 544 |
+
},
|
| 545 |
+
"funding": {
|
| 546 |
+
"type": "opencollective",
|
| 547 |
+
"url": "https://opencollective.com/parcel"
|
| 548 |
+
}
|
| 549 |
+
},
|
| 550 |
+
"node_modules/lightningcss-linux-arm-gnueabihf": {
|
| 551 |
+
"version": "1.32.0",
|
| 552 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",
|
| 553 |
+
"integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",
|
| 554 |
+
"cpu": [
|
| 555 |
+
"arm"
|
| 556 |
+
],
|
| 557 |
+
"dev": true,
|
| 558 |
+
"license": "MPL-2.0",
|
| 559 |
+
"optional": true,
|
| 560 |
+
"os": [
|
| 561 |
+
"linux"
|
| 562 |
+
],
|
| 563 |
+
"engines": {
|
| 564 |
+
"node": ">= 12.0.0"
|
| 565 |
+
},
|
| 566 |
+
"funding": {
|
| 567 |
+
"type": "opencollective",
|
| 568 |
+
"url": "https://opencollective.com/parcel"
|
| 569 |
+
}
|
| 570 |
+
},
|
| 571 |
+
"node_modules/lightningcss-linux-arm64-gnu": {
|
| 572 |
+
"version": "1.32.0",
|
| 573 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",
|
| 574 |
+
"integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",
|
| 575 |
+
"cpu": [
|
| 576 |
+
"arm64"
|
| 577 |
+
],
|
| 578 |
+
"dev": true,
|
| 579 |
+
"license": "MPL-2.0",
|
| 580 |
+
"optional": true,
|
| 581 |
+
"os": [
|
| 582 |
+
"linux"
|
| 583 |
+
],
|
| 584 |
+
"engines": {
|
| 585 |
+
"node": ">= 12.0.0"
|
| 586 |
+
},
|
| 587 |
+
"funding": {
|
| 588 |
+
"type": "opencollective",
|
| 589 |
+
"url": "https://opencollective.com/parcel"
|
| 590 |
+
}
|
| 591 |
+
},
|
| 592 |
+
"node_modules/lightningcss-linux-arm64-musl": {
|
| 593 |
+
"version": "1.32.0",
|
| 594 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",
|
| 595 |
+
"integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",
|
| 596 |
+
"cpu": [
|
| 597 |
+
"arm64"
|
| 598 |
+
],
|
| 599 |
+
"dev": true,
|
| 600 |
+
"license": "MPL-2.0",
|
| 601 |
+
"optional": true,
|
| 602 |
+
"os": [
|
| 603 |
+
"linux"
|
| 604 |
+
],
|
| 605 |
+
"engines": {
|
| 606 |
+
"node": ">= 12.0.0"
|
| 607 |
+
},
|
| 608 |
+
"funding": {
|
| 609 |
+
"type": "opencollective",
|
| 610 |
+
"url": "https://opencollective.com/parcel"
|
| 611 |
+
}
|
| 612 |
+
},
|
| 613 |
+
"node_modules/lightningcss-linux-x64-gnu": {
|
| 614 |
+
"version": "1.32.0",
|
| 615 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
|
| 616 |
+
"integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
|
| 617 |
+
"cpu": [
|
| 618 |
+
"x64"
|
| 619 |
+
],
|
| 620 |
+
"dev": true,
|
| 621 |
+
"license": "MPL-2.0",
|
| 622 |
+
"optional": true,
|
| 623 |
+
"os": [
|
| 624 |
+
"linux"
|
| 625 |
+
],
|
| 626 |
+
"engines": {
|
| 627 |
+
"node": ">= 12.0.0"
|
| 628 |
+
},
|
| 629 |
+
"funding": {
|
| 630 |
+
"type": "opencollective",
|
| 631 |
+
"url": "https://opencollective.com/parcel"
|
| 632 |
+
}
|
| 633 |
+
},
|
| 634 |
+
"node_modules/lightningcss-linux-x64-musl": {
|
| 635 |
+
"version": "1.32.0",
|
| 636 |
+
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
|
| 637 |
+
"integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
|
| 638 |
+
"cpu": [
|
| 639 |
+
"x64"
|
| 640 |
+
],
|
| 641 |
+
"dev": true,
|
| 642 |
+
"license": "MPL-2.0",
|
| 643 |
+
"optional": true,
|
| 644 |
+
"os": [
|
| 645 |
+
"linux"
|
| 646 |
+
],
|
| 647 |
+
"engines": {
|
| 648 |
+
"node": ">= 12.0.0"
|
| 649 |
+
},
|
| 650 |
+
"funding": {
|
| 651 |
+
"type": "opencollective",
|
| 652 |
+
"url": "https://opencollective.com/parcel"
|
| 653 |
+
}
|
| 654 |
+
},
|
| 655 |
+
"node_modules/lightningcss-win32-arm64-msvc": {
|
| 656 |
+
"version": "1.32.0",
|
| 657 |
+
"resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",
|
| 658 |
+
"integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",
|
| 659 |
+
"cpu": [
|
| 660 |
+
"arm64"
|
| 661 |
+
],
|
| 662 |
+
"dev": true,
|
| 663 |
+
"license": "MPL-2.0",
|
| 664 |
+
"optional": true,
|
| 665 |
+
"os": [
|
| 666 |
+
"win32"
|
| 667 |
+
],
|
| 668 |
+
"engines": {
|
| 669 |
+
"node": ">= 12.0.0"
|
| 670 |
+
},
|
| 671 |
+
"funding": {
|
| 672 |
+
"type": "opencollective",
|
| 673 |
+
"url": "https://opencollective.com/parcel"
|
| 674 |
+
}
|
| 675 |
+
},
|
| 676 |
+
"node_modules/lightningcss-win32-x64-msvc": {
|
| 677 |
+
"version": "1.32.0",
|
| 678 |
+
"resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",
|
| 679 |
+
"integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",
|
| 680 |
+
"cpu": [
|
| 681 |
+
"x64"
|
| 682 |
+
],
|
| 683 |
+
"dev": true,
|
| 684 |
+
"license": "MPL-2.0",
|
| 685 |
+
"optional": true,
|
| 686 |
+
"os": [
|
| 687 |
+
"win32"
|
| 688 |
+
],
|
| 689 |
+
"engines": {
|
| 690 |
+
"node": ">= 12.0.0"
|
| 691 |
+
},
|
| 692 |
+
"funding": {
|
| 693 |
+
"type": "opencollective",
|
| 694 |
+
"url": "https://opencollective.com/parcel"
|
| 695 |
+
}
|
| 696 |
+
},
|
| 697 |
+
"node_modules/nanoid": {
|
| 698 |
+
"version": "3.3.11",
|
| 699 |
+
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
|
| 700 |
+
"integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
|
| 701 |
+
"dev": true,
|
| 702 |
+
"funding": [
|
| 703 |
+
{
|
| 704 |
+
"type": "github",
|
| 705 |
+
"url": "https://github.com/sponsors/ai"
|
| 706 |
+
}
|
| 707 |
+
],
|
| 708 |
+
"license": "MIT",
|
| 709 |
+
"bin": {
|
| 710 |
+
"nanoid": "bin/nanoid.cjs"
|
| 711 |
+
},
|
| 712 |
+
"engines": {
|
| 713 |
+
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
|
| 714 |
+
}
|
| 715 |
+
},
|
| 716 |
+
"node_modules/picocolors": {
|
| 717 |
+
"version": "1.1.1",
|
| 718 |
+
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
|
| 719 |
+
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
|
| 720 |
+
"dev": true,
|
| 721 |
+
"license": "ISC"
|
| 722 |
+
},
|
| 723 |
+
"node_modules/picomatch": {
|
| 724 |
+
"version": "4.0.4",
|
| 725 |
+
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
|
| 726 |
+
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
|
| 727 |
+
"dev": true,
|
| 728 |
+
"license": "MIT",
|
| 729 |
+
"engines": {
|
| 730 |
+
"node": ">=12"
|
| 731 |
+
},
|
| 732 |
+
"funding": {
|
| 733 |
+
"url": "https://github.com/sponsors/jonschlinkert"
|
| 734 |
+
}
|
| 735 |
+
},
|
| 736 |
+
"node_modules/postcss": {
|
| 737 |
+
"version": "8.5.8",
|
| 738 |
+
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",
|
| 739 |
+
"integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",
|
| 740 |
+
"dev": true,
|
| 741 |
+
"funding": [
|
| 742 |
+
{
|
| 743 |
+
"type": "opencollective",
|
| 744 |
+
"url": "https://opencollective.com/postcss/"
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "tidelift",
|
| 748 |
+
"url": "https://tidelift.com/funding/github/npm/postcss"
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "github",
|
| 752 |
+
"url": "https://github.com/sponsors/ai"
|
| 753 |
+
}
|
| 754 |
+
],
|
| 755 |
+
"license": "MIT",
|
| 756 |
+
"dependencies": {
|
| 757 |
+
"nanoid": "^3.3.11",
|
| 758 |
+
"picocolors": "^1.1.1",
|
| 759 |
+
"source-map-js": "^1.2.1"
|
| 760 |
+
},
|
| 761 |
+
"engines": {
|
| 762 |
+
"node": "^10 || ^12 || >=14"
|
| 763 |
+
}
|
| 764 |
+
},
|
| 765 |
+
"node_modules/react": {
|
| 766 |
+
"version": "19.2.4",
|
| 767 |
+
"resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
|
| 768 |
+
"integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==",
|
| 769 |
+
"license": "MIT",
|
| 770 |
+
"engines": {
|
| 771 |
+
"node": ">=0.10.0"
|
| 772 |
+
}
|
| 773 |
+
},
|
| 774 |
+
"node_modules/react-dom": {
|
| 775 |
+
"version": "19.2.4",
|
| 776 |
+
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz",
|
| 777 |
+
"integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==",
|
| 778 |
+
"license": "MIT",
|
| 779 |
+
"dependencies": {
|
| 780 |
+
"scheduler": "^0.27.0"
|
| 781 |
+
},
|
| 782 |
+
"peerDependencies": {
|
| 783 |
+
"react": "^19.2.4"
|
| 784 |
+
}
|
| 785 |
+
},
|
| 786 |
+
"node_modules/react-router": {
|
| 787 |
+
"version": "7.13.2",
|
| 788 |
+
"resolved": "https://registry.npmjs.org/react-router/-/react-router-7.13.2.tgz",
|
| 789 |
+
"integrity": "sha512-tX1Aee+ArlKQP+NIUd7SE6Li+CiGKwQtbS+FfRxPX6Pe4vHOo6nr9d++u5cwg+Z8K/x8tP+7qLmujDtfrAoUJA==",
|
| 790 |
+
"license": "MIT",
|
| 791 |
+
"dependencies": {
|
| 792 |
+
"cookie": "^1.0.1",
|
| 793 |
+
"set-cookie-parser": "^2.6.0"
|
| 794 |
+
},
|
| 795 |
+
"engines": {
|
| 796 |
+
"node": ">=20.0.0"
|
| 797 |
+
},
|
| 798 |
+
"peerDependencies": {
|
| 799 |
+
"react": ">=18",
|
| 800 |
+
"react-dom": ">=18"
|
| 801 |
+
},
|
| 802 |
+
"peerDependenciesMeta": {
|
| 803 |
+
"react-dom": {
|
| 804 |
+
"optional": true
|
| 805 |
+
}
|
| 806 |
+
}
|
| 807 |
+
},
|
| 808 |
+
"node_modules/react-router-dom": {
|
| 809 |
+
"version": "7.13.2",
|
| 810 |
+
"resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.13.2.tgz",
|
| 811 |
+
"integrity": "sha512-aR7SUORwTqAW0JDeiWF07e9SBE9qGpByR9I8kJT5h/FrBKxPMS6TiC7rmVO+gC0q52Bx7JnjWe8Z1sR9faN4YA==",
|
| 812 |
+
"license": "MIT",
|
| 813 |
+
"dependencies": {
|
| 814 |
+
"react-router": "7.13.2"
|
| 815 |
+
},
|
| 816 |
+
"engines": {
|
| 817 |
+
"node": ">=20.0.0"
|
| 818 |
+
},
|
| 819 |
+
"peerDependencies": {
|
| 820 |
+
"react": ">=18",
|
| 821 |
+
"react-dom": ">=18"
|
| 822 |
+
}
|
| 823 |
+
},
|
| 824 |
+
"node_modules/rolldown": {
|
| 825 |
+
"version": "1.0.0-rc.11",
|
| 826 |
+
"resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.11.tgz",
|
| 827 |
+
"integrity": "sha512-NRjoKMusSjfRbSYiH3VSumlkgFe7kYAa3pzVOsVYVFY3zb5d7nS+a3KGQ7hJKXuYWbzJKPVQ9Wxq2UvyK+ENpw==",
|
| 828 |
+
"dev": true,
|
| 829 |
+
"license": "MIT",
|
| 830 |
+
"dependencies": {
|
| 831 |
+
"@oxc-project/types": "=0.122.0",
|
| 832 |
+
"@rolldown/pluginutils": "1.0.0-rc.11"
|
| 833 |
+
},
|
| 834 |
+
"bin": {
|
| 835 |
+
"rolldown": "bin/cli.mjs"
|
| 836 |
+
},
|
| 837 |
+
"engines": {
|
| 838 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 839 |
+
},
|
| 840 |
+
"optionalDependencies": {
|
| 841 |
+
"@rolldown/binding-android-arm64": "1.0.0-rc.11",
|
| 842 |
+
"@rolldown/binding-darwin-arm64": "1.0.0-rc.11",
|
| 843 |
+
"@rolldown/binding-darwin-x64": "1.0.0-rc.11",
|
| 844 |
+
"@rolldown/binding-freebsd-x64": "1.0.0-rc.11",
|
| 845 |
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.11",
|
| 846 |
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.11",
|
| 847 |
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-rc.11",
|
| 848 |
+
"@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.11",
|
| 849 |
+
"@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.11",
|
| 850 |
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-rc.11",
|
| 851 |
+
"@rolldown/binding-linux-x64-musl": "1.0.0-rc.11",
|
| 852 |
+
"@rolldown/binding-openharmony-arm64": "1.0.0-rc.11",
|
| 853 |
+
"@rolldown/binding-wasm32-wasi": "1.0.0-rc.11",
|
| 854 |
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.11",
|
| 855 |
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-rc.11"
|
| 856 |
+
}
|
| 857 |
+
},
|
| 858 |
+
"node_modules/rolldown/node_modules/@rolldown/pluginutils": {
|
| 859 |
+
"version": "1.0.0-rc.11",
|
| 860 |
+
"resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.11.tgz",
|
| 861 |
+
"integrity": "sha512-xQO9vbwBecJRv9EUcQ/y0dzSTJgA7Q6UVN7xp6B81+tBGSLVAK03yJ9NkJaUA7JFD91kbjxRSC/mDnmvXzbHoQ==",
|
| 862 |
+
"dev": true,
|
| 863 |
+
"license": "MIT"
|
| 864 |
+
},
|
| 865 |
+
"node_modules/scheduler": {
|
| 866 |
+
"version": "0.27.0",
|
| 867 |
+
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
|
| 868 |
+
"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
|
| 869 |
+
"license": "MIT"
|
| 870 |
+
},
|
| 871 |
+
"node_modules/set-cookie-parser": {
|
| 872 |
+
"version": "2.7.2",
|
| 873 |
+
"resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",
|
| 874 |
+
"integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==",
|
| 875 |
+
"license": "MIT"
|
| 876 |
+
},
|
| 877 |
+
"node_modules/source-map-js": {
|
| 878 |
+
"version": "1.2.1",
|
| 879 |
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
|
| 880 |
+
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
|
| 881 |
+
"dev": true,
|
| 882 |
+
"license": "BSD-3-Clause",
|
| 883 |
+
"engines": {
|
| 884 |
+
"node": ">=0.10.0"
|
| 885 |
+
}
|
| 886 |
+
},
|
| 887 |
+
"node_modules/tinyglobby": {
|
| 888 |
+
"version": "0.2.15",
|
| 889 |
+
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
|
| 890 |
+
"integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
|
| 891 |
+
"dev": true,
|
| 892 |
+
"license": "MIT",
|
| 893 |
+
"dependencies": {
|
| 894 |
+
"fdir": "^6.5.0",
|
| 895 |
+
"picomatch": "^4.0.3"
|
| 896 |
+
},
|
| 897 |
+
"engines": {
|
| 898 |
+
"node": ">=12.0.0"
|
| 899 |
+
},
|
| 900 |
+
"funding": {
|
| 901 |
+
"url": "https://github.com/sponsors/SuperchupuDev"
|
| 902 |
+
}
|
| 903 |
+
},
|
| 904 |
+
"node_modules/tslib": {
|
| 905 |
+
"version": "2.8.1",
|
| 906 |
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
|
| 907 |
+
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
|
| 908 |
+
"dev": true,
|
| 909 |
+
"license": "0BSD",
|
| 910 |
+
"optional": true
|
| 911 |
+
},
|
| 912 |
+
"node_modules/vite": {
|
| 913 |
+
"version": "8.0.2",
|
| 914 |
+
"resolved": "https://registry.npmjs.org/vite/-/vite-8.0.2.tgz",
|
| 915 |
+
"integrity": "sha512-1gFhNi+bHhRE/qKZOJXACm6tX4bA3Isy9KuKF15AgSRuRazNBOJfdDemPBU16/mpMxApDPrWvZ08DcLPEoRnuA==",
|
| 916 |
+
"dev": true,
|
| 917 |
+
"license": "MIT",
|
| 918 |
+
"dependencies": {
|
| 919 |
+
"lightningcss": "^1.32.0",
|
| 920 |
+
"picomatch": "^4.0.3",
|
| 921 |
+
"postcss": "^8.5.8",
|
| 922 |
+
"rolldown": "1.0.0-rc.11",
|
| 923 |
+
"tinyglobby": "^0.2.15"
|
| 924 |
+
},
|
| 925 |
+
"bin": {
|
| 926 |
+
"vite": "bin/vite.js"
|
| 927 |
+
},
|
| 928 |
+
"engines": {
|
| 929 |
+
"node": "^20.19.0 || >=22.12.0"
|
| 930 |
+
},
|
| 931 |
+
"funding": {
|
| 932 |
+
"url": "https://github.com/vitejs/vite?sponsor=1"
|
| 933 |
+
},
|
| 934 |
+
"optionalDependencies": {
|
| 935 |
+
"fsevents": "~2.3.3"
|
| 936 |
+
},
|
| 937 |
+
"peerDependencies": {
|
| 938 |
+
"@types/node": "^20.19.0 || >=22.12.0",
|
| 939 |
+
"@vitejs/devtools": "^0.1.0",
|
| 940 |
+
"esbuild": "^0.27.0",
|
| 941 |
+
"jiti": ">=1.21.0",
|
| 942 |
+
"less": "^4.0.0",
|
| 943 |
+
"sass": "^1.70.0",
|
| 944 |
+
"sass-embedded": "^1.70.0",
|
| 945 |
+
"stylus": ">=0.54.8",
|
| 946 |
+
"sugarss": "^5.0.0",
|
| 947 |
+
"terser": "^5.16.0",
|
| 948 |
+
"tsx": "^4.8.1",
|
| 949 |
+
"yaml": "^2.4.2"
|
| 950 |
+
},
|
| 951 |
+
"peerDependenciesMeta": {
|
| 952 |
+
"@types/node": {
|
| 953 |
+
"optional": true
|
| 954 |
+
},
|
| 955 |
+
"@vitejs/devtools": {
|
| 956 |
+
"optional": true
|
| 957 |
+
},
|
| 958 |
+
"esbuild": {
|
| 959 |
+
"optional": true
|
| 960 |
+
},
|
| 961 |
+
"jiti": {
|
| 962 |
+
"optional": true
|
| 963 |
+
},
|
| 964 |
+
"less": {
|
| 965 |
+
"optional": true
|
| 966 |
+
},
|
| 967 |
+
"sass": {
|
| 968 |
+
"optional": true
|
| 969 |
+
},
|
| 970 |
+
"sass-embedded": {
|
| 971 |
+
"optional": true
|
| 972 |
+
},
|
| 973 |
+
"stylus": {
|
| 974 |
+
"optional": true
|
| 975 |
+
},
|
| 976 |
+
"sugarss": {
|
| 977 |
+
"optional": true
|
| 978 |
+
},
|
| 979 |
+
"terser": {
|
| 980 |
+
"optional": true
|
| 981 |
+
},
|
| 982 |
+
"tsx": {
|
| 983 |
+
"optional": true
|
| 984 |
+
},
|
| 985 |
+
"yaml": {
|
| 986 |
+
"optional": true
|
| 987 |
+
}
|
| 988 |
+
}
|
| 989 |
+
}
|
| 990 |
+
}
|
| 991 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "taskflow-frontend",
|
| 3 |
+
"private": true,
|
| 4 |
+
"version": "0.0.0",
|
| 5 |
+
"type": "module",
|
| 6 |
+
"scripts": {
|
| 7 |
+
"dev": "vite",
|
| 8 |
+
"build": "vite build",
|
| 9 |
+
"preview": "vite preview"
|
| 10 |
+
},
|
| 11 |
+
"dependencies": {
|
| 12 |
+
"react": "^19.2.4",
|
| 13 |
+
"react-dom": "^19.2.4",
|
| 14 |
+
"react-router-dom": "^7.13.1"
|
| 15 |
+
},
|
| 16 |
+
"devDependencies": {
|
| 17 |
+
"@vitejs/plugin-react": "^6.0.0",
|
| 18 |
+
"vite": "^8.0.0"
|
| 19 |
+
}
|
| 20 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/src/App.css
ADDED
|
@@ -0,0 +1,922 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 8 |
+
}
|
| 9 |
+
|
| 10 |
+
:root {
|
| 11 |
+
--primary: #4f46e5;
|
| 12 |
+
--primary-dark: #4338ca;
|
| 13 |
+
--primary-light: #eef2ff;
|
| 14 |
+
--primary-subtle: #e0e7ff;
|
| 15 |
+
--danger: #dc2626;
|
| 16 |
+
--danger-light: #fef2f2;
|
| 17 |
+
--amber: #d97706;
|
| 18 |
+
--amber-light: #fffbeb;
|
| 19 |
+
--sky: #0284c7;
|
| 20 |
+
--sky-light: #f0f9ff;
|
| 21 |
+
--emerald: #059669;
|
| 22 |
+
--emerald-light: #ecfdf5;
|
| 23 |
+
--bg: #f8fafc;
|
| 24 |
+
--bg-secondary: #f1f5f9;
|
| 25 |
+
--white: #ffffff;
|
| 26 |
+
--text: #1e293b;
|
| 27 |
+
--text-secondary: #475569;
|
| 28 |
+
--text-muted: #94a3b8;
|
| 29 |
+
--border: #e2e8f0;
|
| 30 |
+
--border-light: #f1f5f9;
|
| 31 |
+
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
|
| 32 |
+
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
|
| 33 |
+
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
|
| 34 |
+
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
|
| 35 |
+
--radius: 8px;
|
| 36 |
+
--radius-sm: 6px;
|
| 37 |
+
--radius-lg: 12px;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
body {
|
| 41 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
| 42 |
+
background: var(--bg);
|
| 43 |
+
color: var(--text);
|
| 44 |
+
line-height: 1.5;
|
| 45 |
+
-webkit-font-smoothing: antialiased;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
a {
|
| 49 |
+
color: var(--primary);
|
| 50 |
+
text-decoration: none;
|
| 51 |
+
}
|
| 52 |
+
a:hover {
|
| 53 |
+
color: var(--primary-dark);
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
/* ===== App Layout ===== */
|
| 57 |
+
.app {
|
| 58 |
+
min-height: 100vh;
|
| 59 |
+
display: flex;
|
| 60 |
+
flex-direction: column;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.app-header {
|
| 64 |
+
background: var(--white);
|
| 65 |
+
border-bottom: 1px solid var(--border);
|
| 66 |
+
padding: 0 28px;
|
| 67 |
+
height: 56px;
|
| 68 |
+
display: flex;
|
| 69 |
+
align-items: center;
|
| 70 |
+
position: sticky;
|
| 71 |
+
top: 0;
|
| 72 |
+
z-index: 100;
|
| 73 |
+
box-shadow: var(--shadow-xs);
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
.logo {
|
| 77 |
+
display: flex;
|
| 78 |
+
align-items: center;
|
| 79 |
+
gap: 10px;
|
| 80 |
+
text-decoration: none;
|
| 81 |
+
}
|
| 82 |
+
.logo-icon {
|
| 83 |
+
background: var(--primary);
|
| 84 |
+
color: white;
|
| 85 |
+
width: 32px;
|
| 86 |
+
height: 32px;
|
| 87 |
+
border-radius: var(--radius-sm);
|
| 88 |
+
display: flex;
|
| 89 |
+
align-items: center;
|
| 90 |
+
justify-content: center;
|
| 91 |
+
font-weight: 700;
|
| 92 |
+
font-size: 16px;
|
| 93 |
+
letter-spacing: -0.5px;
|
| 94 |
+
}
|
| 95 |
+
.logo-text {
|
| 96 |
+
font-size: 18px;
|
| 97 |
+
font-weight: 700;
|
| 98 |
+
color: var(--text);
|
| 99 |
+
letter-spacing: -0.3px;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.app-main {
|
| 103 |
+
flex: 1;
|
| 104 |
+
max-width: 1040px;
|
| 105 |
+
width: 100%;
|
| 106 |
+
margin: 0 auto;
|
| 107 |
+
padding: 28px 24px;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
/* ===== Cards ===== */
|
| 111 |
+
.card {
|
| 112 |
+
background: var(--white);
|
| 113 |
+
border-radius: var(--radius);
|
| 114 |
+
box-shadow: var(--shadow-xs);
|
| 115 |
+
border: 1px solid var(--border);
|
| 116 |
+
overflow: hidden;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
.card-header {
|
| 120 |
+
padding: 14px 18px;
|
| 121 |
+
border-bottom: 1px solid var(--border-light);
|
| 122 |
+
display: flex;
|
| 123 |
+
align-items: center;
|
| 124 |
+
justify-content: space-between;
|
| 125 |
+
}
|
| 126 |
+
.card-header h2 {
|
| 127 |
+
font-size: 14px;
|
| 128 |
+
font-weight: 600;
|
| 129 |
+
color: var(--text);
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
.card-body {
|
| 133 |
+
padding: 18px;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
/* ===== Buttons ===== */
|
| 137 |
+
.btn {
|
| 138 |
+
display: inline-flex;
|
| 139 |
+
align-items: center;
|
| 140 |
+
justify-content: center;
|
| 141 |
+
padding: 8px 14px;
|
| 142 |
+
border-radius: var(--radius-sm);
|
| 143 |
+
font-size: 13px;
|
| 144 |
+
font-weight: 500;
|
| 145 |
+
cursor: pointer;
|
| 146 |
+
border: none;
|
| 147 |
+
transition: all 0.15s ease;
|
| 148 |
+
text-decoration: none;
|
| 149 |
+
letter-spacing: -0.01em;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
.btn-primary {
|
| 153 |
+
background: var(--primary);
|
| 154 |
+
color: white;
|
| 155 |
+
}
|
| 156 |
+
.btn-primary:hover {
|
| 157 |
+
background: var(--primary-dark);
|
| 158 |
+
color: white;
|
| 159 |
+
box-shadow: var(--shadow-sm);
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
.btn-secondary {
|
| 163 |
+
background: var(--white);
|
| 164 |
+
color: var(--text-secondary);
|
| 165 |
+
border: 1px solid var(--border);
|
| 166 |
+
}
|
| 167 |
+
.btn-secondary:hover {
|
| 168 |
+
background: var(--bg);
|
| 169 |
+
color: var(--text);
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
.btn-danger {
|
| 173 |
+
background: var(--danger);
|
| 174 |
+
color: white;
|
| 175 |
+
}
|
| 176 |
+
.btn-danger:hover {
|
| 177 |
+
background: #b91c1c;
|
| 178 |
+
color: white;
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
.btn-sm {
|
| 182 |
+
padding: 4px 10px;
|
| 183 |
+
font-size: 12px;
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
/* ===== Forms ===== */
|
| 187 |
+
.form-group {
|
| 188 |
+
margin-bottom: 16px;
|
| 189 |
+
}
|
| 190 |
+
.form-group label {
|
| 191 |
+
display: block;
|
| 192 |
+
font-size: 13px;
|
| 193 |
+
font-weight: 500;
|
| 194 |
+
margin-bottom: 5px;
|
| 195 |
+
color: var(--text-secondary);
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
.form-input {
|
| 199 |
+
width: 100%;
|
| 200 |
+
padding: 8px 12px;
|
| 201 |
+
border: 1px solid var(--border);
|
| 202 |
+
border-radius: var(--radius-sm);
|
| 203 |
+
font-size: 14px;
|
| 204 |
+
color: var(--text);
|
| 205 |
+
background: var(--white);
|
| 206 |
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
| 207 |
+
}
|
| 208 |
+
.form-input:focus {
|
| 209 |
+
outline: none;
|
| 210 |
+
border-color: var(--primary);
|
| 211 |
+
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
textarea.form-input {
|
| 215 |
+
resize: vertical;
|
| 216 |
+
min-height: 76px;
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
.form-actions {
|
| 220 |
+
display: flex;
|
| 221 |
+
gap: 10px;
|
| 222 |
+
justify-content: flex-end;
|
| 223 |
+
margin-top: 20px;
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
/* ===== Checkbox list ===== */
|
| 227 |
+
.checkbox-list {
|
| 228 |
+
display: flex;
|
| 229 |
+
flex-direction: column;
|
| 230 |
+
gap: 4px;
|
| 231 |
+
}
|
| 232 |
+
.checkbox-item {
|
| 233 |
+
display: flex;
|
| 234 |
+
align-items: center;
|
| 235 |
+
gap: 8px;
|
| 236 |
+
padding: 7px 10px;
|
| 237 |
+
border-radius: var(--radius-sm);
|
| 238 |
+
cursor: pointer;
|
| 239 |
+
transition: background 0.12s;
|
| 240 |
+
font-size: 14px;
|
| 241 |
+
color: var(--text);
|
| 242 |
+
}
|
| 243 |
+
.checkbox-item:hover {
|
| 244 |
+
background: var(--bg);
|
| 245 |
+
}
|
| 246 |
+
.checkbox-item.checked {
|
| 247 |
+
background: var(--primary-light);
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
/* ===== Dashboard ===== */
|
| 251 |
+
.dashboard-grid {
|
| 252 |
+
display: grid;
|
| 253 |
+
grid-template-columns: 1fr 300px;
|
| 254 |
+
gap: 24px;
|
| 255 |
+
}
|
| 256 |
+
@media (max-width: 768px) {
|
| 257 |
+
.dashboard-grid {
|
| 258 |
+
grid-template-columns: 1fr;
|
| 259 |
+
}
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
.section-title {
|
| 263 |
+
font-size: 11px;
|
| 264 |
+
font-weight: 600;
|
| 265 |
+
text-transform: uppercase;
|
| 266 |
+
letter-spacing: 0.6px;
|
| 267 |
+
color: var(--text-muted);
|
| 268 |
+
margin-bottom: 10px;
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
/* ===== Project Cards ===== */
|
| 272 |
+
.projects-list {
|
| 273 |
+
display: flex;
|
| 274 |
+
flex-direction: column;
|
| 275 |
+
gap: 6px;
|
| 276 |
+
}
|
| 277 |
+
.project-card {
|
| 278 |
+
display: flex;
|
| 279 |
+
align-items: center;
|
| 280 |
+
gap: 12px;
|
| 281 |
+
padding: 14px 16px;
|
| 282 |
+
background: var(--white);
|
| 283 |
+
border-radius: var(--radius);
|
| 284 |
+
border: 1px solid var(--border);
|
| 285 |
+
text-decoration: none;
|
| 286 |
+
color: var(--text);
|
| 287 |
+
transition: all 0.15s ease;
|
| 288 |
+
}
|
| 289 |
+
.project-card:hover {
|
| 290 |
+
box-shadow: var(--shadow-sm);
|
| 291 |
+
border-color: var(--primary);
|
| 292 |
+
color: var(--text);
|
| 293 |
+
}
|
| 294 |
+
.project-card-icon {
|
| 295 |
+
width: 40px;
|
| 296 |
+
height: 40px;
|
| 297 |
+
border-radius: var(--radius);
|
| 298 |
+
background: var(--primary-light);
|
| 299 |
+
color: var(--primary);
|
| 300 |
+
display: flex;
|
| 301 |
+
align-items: center;
|
| 302 |
+
justify-content: center;
|
| 303 |
+
font-weight: 600;
|
| 304 |
+
font-size: 16px;
|
| 305 |
+
flex-shrink: 0;
|
| 306 |
+
}
|
| 307 |
+
.project-card-info {
|
| 308 |
+
flex: 1;
|
| 309 |
+
min-width: 0;
|
| 310 |
+
}
|
| 311 |
+
.project-card-name {
|
| 312 |
+
font-weight: 600;
|
| 313 |
+
font-size: 14px;
|
| 314 |
+
color: var(--text);
|
| 315 |
+
}
|
| 316 |
+
.project-card-meta {
|
| 317 |
+
font-size: 12px;
|
| 318 |
+
color: var(--text-muted);
|
| 319 |
+
margin-top: 1px;
|
| 320 |
+
}
|
| 321 |
+
.project-card-arrow {
|
| 322 |
+
font-size: 20px;
|
| 323 |
+
color: var(--text-muted);
|
| 324 |
+
}
|
| 325 |
+
|
| 326 |
+
/* ===== Sidebar ===== */
|
| 327 |
+
.sidebar {
|
| 328 |
+
display: flex;
|
| 329 |
+
flex-direction: column;
|
| 330 |
+
gap: 14px;
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
/* ===== User List ===== */
|
| 334 |
+
.user-list {
|
| 335 |
+
list-style: none;
|
| 336 |
+
display: flex;
|
| 337 |
+
flex-direction: column;
|
| 338 |
+
gap: 6px;
|
| 339 |
+
}
|
| 340 |
+
.user-list li {
|
| 341 |
+
display: flex;
|
| 342 |
+
align-items: center;
|
| 343 |
+
gap: 8px;
|
| 344 |
+
font-size: 13px;
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
.user-avatar {
|
| 348 |
+
width: 28px;
|
| 349 |
+
height: 28px;
|
| 350 |
+
border-radius: 50%;
|
| 351 |
+
background: var(--primary);
|
| 352 |
+
color: white;
|
| 353 |
+
display: flex;
|
| 354 |
+
align-items: center;
|
| 355 |
+
justify-content: center;
|
| 356 |
+
font-weight: 600;
|
| 357 |
+
font-size: 12px;
|
| 358 |
+
flex-shrink: 0;
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
.user-info-name {
|
| 362 |
+
font-weight: 500;
|
| 363 |
+
color: var(--text);
|
| 364 |
+
}
|
| 365 |
+
.user-info-email {
|
| 366 |
+
font-size: 11px;
|
| 367 |
+
color: var(--text-muted);
|
| 368 |
+
}
|
| 369 |
+
|
| 370 |
+
/* ===== Empty state ===== */
|
| 371 |
+
.empty-state {
|
| 372 |
+
text-align: center;
|
| 373 |
+
padding: 28px 16px;
|
| 374 |
+
color: var(--text-muted);
|
| 375 |
+
}
|
| 376 |
+
.empty-state-icon {
|
| 377 |
+
width: 48px;
|
| 378 |
+
height: 48px;
|
| 379 |
+
border-radius: 50%;
|
| 380 |
+
background: var(--bg-secondary);
|
| 381 |
+
margin: 0 auto 12px;
|
| 382 |
+
display: flex;
|
| 383 |
+
align-items: center;
|
| 384 |
+
justify-content: center;
|
| 385 |
+
font-size: 20px;
|
| 386 |
+
font-weight: 700;
|
| 387 |
+
color: var(--text-muted);
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
/* ===== Project Detail ===== */
|
| 391 |
+
.project-header {
|
| 392 |
+
display: flex;
|
| 393 |
+
align-items: flex-start;
|
| 394 |
+
justify-content: space-between;
|
| 395 |
+
margin-bottom: 20px;
|
| 396 |
+
flex-wrap: wrap;
|
| 397 |
+
gap: 12px;
|
| 398 |
+
}
|
| 399 |
+
.project-header h1 {
|
| 400 |
+
font-size: 22px;
|
| 401 |
+
font-weight: 700;
|
| 402 |
+
letter-spacing: -0.3px;
|
| 403 |
+
}
|
| 404 |
+
.project-header-actions {
|
| 405 |
+
display: flex;
|
| 406 |
+
gap: 8px;
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
.members-bar {
|
| 410 |
+
display: flex;
|
| 411 |
+
gap: 6px;
|
| 412 |
+
margin-bottom: 20px;
|
| 413 |
+
flex-wrap: wrap;
|
| 414 |
+
}
|
| 415 |
+
.member-chip {
|
| 416 |
+
display: flex;
|
| 417 |
+
align-items: center;
|
| 418 |
+
gap: 5px;
|
| 419 |
+
padding: 3px 10px 3px 3px;
|
| 420 |
+
background: var(--white);
|
| 421 |
+
border-radius: 20px;
|
| 422 |
+
border: 1px solid var(--border);
|
| 423 |
+
font-size: 12px;
|
| 424 |
+
font-weight: 500;
|
| 425 |
+
color: var(--text-secondary);
|
| 426 |
+
}
|
| 427 |
+
.member-chip .user-avatar {
|
| 428 |
+
width: 22px;
|
| 429 |
+
height: 22px;
|
| 430 |
+
font-size: 10px;
|
| 431 |
+
}
|
| 432 |
+
|
| 433 |
+
.detail-grid {
|
| 434 |
+
display: grid;
|
| 435 |
+
grid-template-columns: 1fr;
|
| 436 |
+
gap: 16px;
|
| 437 |
+
}
|
| 438 |
+
|
| 439 |
+
/* ===== Kanban Board ===== */
|
| 440 |
+
.kanban-board {
|
| 441 |
+
display: grid;
|
| 442 |
+
grid-template-columns: repeat(3, 1fr);
|
| 443 |
+
gap: 14px;
|
| 444 |
+
margin-top: 16px;
|
| 445 |
+
}
|
| 446 |
+
@media (max-width: 768px) {
|
| 447 |
+
.kanban-board {
|
| 448 |
+
grid-template-columns: 1fr;
|
| 449 |
+
}
|
| 450 |
+
}
|
| 451 |
+
.kanban-column {
|
| 452 |
+
background: var(--bg-secondary);
|
| 453 |
+
border-radius: var(--radius);
|
| 454 |
+
padding: 14px;
|
| 455 |
+
min-height: 180px;
|
| 456 |
+
}
|
| 457 |
+
.kanban-column-title {
|
| 458 |
+
font-size: 11px;
|
| 459 |
+
font-weight: 600;
|
| 460 |
+
text-transform: uppercase;
|
| 461 |
+
letter-spacing: 0.5px;
|
| 462 |
+
color: var(--text-muted);
|
| 463 |
+
margin-bottom: 10px;
|
| 464 |
+
display: flex;
|
| 465 |
+
align-items: center;
|
| 466 |
+
gap: 6px;
|
| 467 |
+
}
|
| 468 |
+
.kanban-column-count {
|
| 469 |
+
background: var(--border);
|
| 470 |
+
padding: 1px 6px;
|
| 471 |
+
border-radius: 8px;
|
| 472 |
+
font-size: 10px;
|
| 473 |
+
color: var(--text-secondary);
|
| 474 |
+
}
|
| 475 |
+
.kanban-card {
|
| 476 |
+
background: var(--white);
|
| 477 |
+
border-radius: var(--radius-sm);
|
| 478 |
+
padding: 12px;
|
| 479 |
+
margin-bottom: 6px;
|
| 480 |
+
border: 1px solid var(--border);
|
| 481 |
+
text-decoration: none;
|
| 482 |
+
color: var(--text);
|
| 483 |
+
display: block;
|
| 484 |
+
transition: box-shadow 0.12s ease;
|
| 485 |
+
}
|
| 486 |
+
.kanban-card:hover {
|
| 487 |
+
box-shadow: var(--shadow-sm);
|
| 488 |
+
color: var(--text);
|
| 489 |
+
}
|
| 490 |
+
.kanban-card-title {
|
| 491 |
+
font-weight: 500;
|
| 492 |
+
font-size: 13px;
|
| 493 |
+
margin-bottom: 6px;
|
| 494 |
+
color: var(--text);
|
| 495 |
+
}
|
| 496 |
+
.kanban-card-tags {
|
| 497 |
+
display: flex;
|
| 498 |
+
gap: 3px;
|
| 499 |
+
flex-wrap: wrap;
|
| 500 |
+
margin-bottom: 6px;
|
| 501 |
+
}
|
| 502 |
+
.kanban-card-meta {
|
| 503 |
+
font-size: 11px;
|
| 504 |
+
color: var(--text-muted);
|
| 505 |
+
display: flex;
|
| 506 |
+
justify-content: space-between;
|
| 507 |
+
align-items: center;
|
| 508 |
+
}
|
| 509 |
+
|
| 510 |
+
/* ===== Priority Badges ===== */
|
| 511 |
+
.priority-badge {
|
| 512 |
+
padding: 1px 6px;
|
| 513 |
+
border-radius: 3px;
|
| 514 |
+
font-size: 10px;
|
| 515 |
+
font-weight: 600;
|
| 516 |
+
text-transform: uppercase;
|
| 517 |
+
letter-spacing: 0.3px;
|
| 518 |
+
}
|
| 519 |
+
.priority-badge.high {
|
| 520 |
+
background: var(--danger-light);
|
| 521 |
+
color: var(--danger);
|
| 522 |
+
}
|
| 523 |
+
.priority-badge.medium {
|
| 524 |
+
background: var(--amber-light);
|
| 525 |
+
color: var(--amber);
|
| 526 |
+
}
|
| 527 |
+
.priority-badge.low {
|
| 528 |
+
background: var(--sky-light);
|
| 529 |
+
color: var(--sky);
|
| 530 |
+
}
|
| 531 |
+
|
| 532 |
+
.status-select {
|
| 533 |
+
padding: 3px 6px;
|
| 534 |
+
border: 1px solid var(--border);
|
| 535 |
+
border-radius: var(--radius-sm);
|
| 536 |
+
font-size: 11px;
|
| 537 |
+
background: var(--white);
|
| 538 |
+
color: var(--text-secondary);
|
| 539 |
+
cursor: pointer;
|
| 540 |
+
}
|
| 541 |
+
|
| 542 |
+
/* ===== Task Detail ===== */
|
| 543 |
+
.task-detail-header {
|
| 544 |
+
margin-bottom: 20px;
|
| 545 |
+
}
|
| 546 |
+
.task-detail-header h1 {
|
| 547 |
+
font-size: 22px;
|
| 548 |
+
font-weight: 700;
|
| 549 |
+
margin-bottom: 6px;
|
| 550 |
+
letter-spacing: -0.3px;
|
| 551 |
+
}
|
| 552 |
+
.task-detail-meta {
|
| 553 |
+
display: flex;
|
| 554 |
+
gap: 14px;
|
| 555 |
+
flex-wrap: wrap;
|
| 556 |
+
font-size: 12px;
|
| 557 |
+
color: var(--text-muted);
|
| 558 |
+
}
|
| 559 |
+
.task-detail-meta span {
|
| 560 |
+
display: flex;
|
| 561 |
+
align-items: center;
|
| 562 |
+
gap: 3px;
|
| 563 |
+
}
|
| 564 |
+
|
| 565 |
+
.task-detail-grid {
|
| 566 |
+
display: grid;
|
| 567 |
+
grid-template-columns: 1fr 280px;
|
| 568 |
+
gap: 20px;
|
| 569 |
+
}
|
| 570 |
+
@media (max-width: 768px) {
|
| 571 |
+
.task-detail-grid {
|
| 572 |
+
grid-template-columns: 1fr;
|
| 573 |
+
}
|
| 574 |
+
}
|
| 575 |
+
|
| 576 |
+
.task-description {
|
| 577 |
+
padding: 14px;
|
| 578 |
+
background: var(--bg);
|
| 579 |
+
border-radius: var(--radius-sm);
|
| 580 |
+
font-size: 13px;
|
| 581 |
+
line-height: 1.65;
|
| 582 |
+
white-space: pre-wrap;
|
| 583 |
+
min-height: 48px;
|
| 584 |
+
color: var(--text-secondary);
|
| 585 |
+
}
|
| 586 |
+
|
| 587 |
+
/* ===== Comments ===== */
|
| 588 |
+
.comment-list {
|
| 589 |
+
display: flex;
|
| 590 |
+
flex-direction: column;
|
| 591 |
+
gap: 14px;
|
| 592 |
+
}
|
| 593 |
+
.comment-item {
|
| 594 |
+
display: flex;
|
| 595 |
+
gap: 8px;
|
| 596 |
+
}
|
| 597 |
+
.comment-body {
|
| 598 |
+
flex: 1;
|
| 599 |
+
}
|
| 600 |
+
.comment-author {
|
| 601 |
+
font-weight: 600;
|
| 602 |
+
font-size: 12px;
|
| 603 |
+
color: var(--text);
|
| 604 |
+
}
|
| 605 |
+
.comment-time {
|
| 606 |
+
font-size: 11px;
|
| 607 |
+
color: var(--text-muted);
|
| 608 |
+
margin-left: 6px;
|
| 609 |
+
font-weight: 400;
|
| 610 |
+
}
|
| 611 |
+
.comment-text {
|
| 612 |
+
font-size: 13px;
|
| 613 |
+
margin-top: 2px;
|
| 614 |
+
line-height: 1.5;
|
| 615 |
+
color: var(--text-secondary);
|
| 616 |
+
}
|
| 617 |
+
|
| 618 |
+
.comment-form {
|
| 619 |
+
display: flex;
|
| 620 |
+
gap: 8px;
|
| 621 |
+
margin-top: 14px;
|
| 622 |
+
}
|
| 623 |
+
.comment-form .form-input {
|
| 624 |
+
flex: 1;
|
| 625 |
+
}
|
| 626 |
+
|
| 627 |
+
/* ===== Page form ===== */
|
| 628 |
+
.page-form {
|
| 629 |
+
max-width: 580px;
|
| 630 |
+
margin: 0 auto;
|
| 631 |
+
}
|
| 632 |
+
.page-form h1 {
|
| 633 |
+
font-size: 22px;
|
| 634 |
+
font-weight: 700;
|
| 635 |
+
margin-bottom: 18px;
|
| 636 |
+
letter-spacing: -0.3px;
|
| 637 |
+
}
|
| 638 |
+
|
| 639 |
+
/* ===== Back link ===== */
|
| 640 |
+
.back-link {
|
| 641 |
+
display: inline-flex;
|
| 642 |
+
align-items: center;
|
| 643 |
+
gap: 4px;
|
| 644 |
+
font-size: 13px;
|
| 645 |
+
color: var(--text-muted);
|
| 646 |
+
margin-bottom: 14px;
|
| 647 |
+
}
|
| 648 |
+
.back-link:hover {
|
| 649 |
+
color: var(--primary);
|
| 650 |
+
}
|
| 651 |
+
|
| 652 |
+
/* ===== Loading & Error ===== */
|
| 653 |
+
.loading {
|
| 654 |
+
text-align: center;
|
| 655 |
+
padding: 40px;
|
| 656 |
+
color: var(--text-muted);
|
| 657 |
+
font-size: 14px;
|
| 658 |
+
}
|
| 659 |
+
|
| 660 |
+
.error-msg {
|
| 661 |
+
background: var(--danger-light);
|
| 662 |
+
color: var(--danger);
|
| 663 |
+
padding: 10px 14px;
|
| 664 |
+
border-radius: var(--radius-sm);
|
| 665 |
+
font-size: 13px;
|
| 666 |
+
margin-bottom: 14px;
|
| 667 |
+
}
|
| 668 |
+
|
| 669 |
+
/* ===== Search Bar ===== */
|
| 670 |
+
.search-bar {
|
| 671 |
+
display: flex;
|
| 672 |
+
gap: 6px;
|
| 673 |
+
margin-left: auto;
|
| 674 |
+
}
|
| 675 |
+
.search-input {
|
| 676 |
+
padding: 6px 12px;
|
| 677 |
+
border: 1px solid var(--border);
|
| 678 |
+
border-radius: var(--radius-sm);
|
| 679 |
+
font-size: 13px;
|
| 680 |
+
width: 240px;
|
| 681 |
+
color: var(--text);
|
| 682 |
+
background: var(--bg);
|
| 683 |
+
transition: border-color 0.15s ease;
|
| 684 |
+
}
|
| 685 |
+
.search-input:focus {
|
| 686 |
+
outline: none;
|
| 687 |
+
border-color: var(--primary);
|
| 688 |
+
background: var(--white);
|
| 689 |
+
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
|
| 690 |
+
}
|
| 691 |
+
.search-btn {
|
| 692 |
+
padding: 6px 14px;
|
| 693 |
+
background: var(--primary);
|
| 694 |
+
color: white;
|
| 695 |
+
border: none;
|
| 696 |
+
border-radius: var(--radius-sm);
|
| 697 |
+
font-size: 12px;
|
| 698 |
+
font-weight: 500;
|
| 699 |
+
cursor: pointer;
|
| 700 |
+
}
|
| 701 |
+
.search-btn:hover {
|
| 702 |
+
background: var(--primary-dark);
|
| 703 |
+
}
|
| 704 |
+
|
| 705 |
+
/* ===== Tags ===== */
|
| 706 |
+
.tag-list {
|
| 707 |
+
display: flex;
|
| 708 |
+
flex-direction: column;
|
| 709 |
+
gap: 5px;
|
| 710 |
+
}
|
| 711 |
+
.tag-item {
|
| 712 |
+
display: flex;
|
| 713 |
+
align-items: center;
|
| 714 |
+
justify-content: space-between;
|
| 715 |
+
}
|
| 716 |
+
.tag-badge {
|
| 717 |
+
display: inline-flex;
|
| 718 |
+
align-items: center;
|
| 719 |
+
padding: 2px 8px;
|
| 720 |
+
border-radius: 10px;
|
| 721 |
+
font-size: 11px;
|
| 722 |
+
font-weight: 500;
|
| 723 |
+
border: 1px solid;
|
| 724 |
+
background: transparent;
|
| 725 |
+
}
|
| 726 |
+
.tag-badge-sm {
|
| 727 |
+
display: inline-flex;
|
| 728 |
+
align-items: center;
|
| 729 |
+
padding: 1px 6px;
|
| 730 |
+
border-radius: 6px;
|
| 731 |
+
font-size: 10px;
|
| 732 |
+
font-weight: 600;
|
| 733 |
+
}
|
| 734 |
+
.tag-delete {
|
| 735 |
+
background: none;
|
| 736 |
+
border: none;
|
| 737 |
+
font-size: 15px;
|
| 738 |
+
color: var(--text-muted);
|
| 739 |
+
cursor: pointer;
|
| 740 |
+
padding: 0 3px;
|
| 741 |
+
}
|
| 742 |
+
.tag-delete:hover {
|
| 743 |
+
color: var(--danger);
|
| 744 |
+
}
|
| 745 |
+
.tag-add-btn {
|
| 746 |
+
background: none;
|
| 747 |
+
border: 1px dashed var(--border);
|
| 748 |
+
padding: 2px 8px;
|
| 749 |
+
border-radius: 10px;
|
| 750 |
+
font-size: 11px;
|
| 751 |
+
cursor: pointer;
|
| 752 |
+
color: var(--text-muted);
|
| 753 |
+
}
|
| 754 |
+
.tag-add-btn:hover {
|
| 755 |
+
border-color: var(--primary);
|
| 756 |
+
color: var(--primary);
|
| 757 |
+
}
|
| 758 |
+
.tag-picker {
|
| 759 |
+
display: flex;
|
| 760 |
+
gap: 5px;
|
| 761 |
+
flex-wrap: wrap;
|
| 762 |
+
margin-top: 6px;
|
| 763 |
+
}
|
| 764 |
+
|
| 765 |
+
/* ===== Stats Bar ===== */
|
| 766 |
+
.stats-bar {
|
| 767 |
+
display: flex;
|
| 768 |
+
gap: 12px;
|
| 769 |
+
margin-bottom: 18px;
|
| 770 |
+
flex-wrap: wrap;
|
| 771 |
+
}
|
| 772 |
+
.stat-item {
|
| 773 |
+
background: var(--white);
|
| 774 |
+
border: 1px solid var(--border);
|
| 775 |
+
border-radius: var(--radius);
|
| 776 |
+
padding: 12px 18px;
|
| 777 |
+
flex: 1;
|
| 778 |
+
min-width: 90px;
|
| 779 |
+
text-align: center;
|
| 780 |
+
}
|
| 781 |
+
.stat-value {
|
| 782 |
+
font-size: 22px;
|
| 783 |
+
font-weight: 700;
|
| 784 |
+
color: var(--primary);
|
| 785 |
+
letter-spacing: -0.5px;
|
| 786 |
+
}
|
| 787 |
+
.stat-value.stat-overdue {
|
| 788 |
+
color: var(--danger);
|
| 789 |
+
}
|
| 790 |
+
.stat-label {
|
| 791 |
+
font-size: 11px;
|
| 792 |
+
color: var(--text-muted);
|
| 793 |
+
margin-top: 1px;
|
| 794 |
+
}
|
| 795 |
+
|
| 796 |
+
/* ===== Filter Bar ===== */
|
| 797 |
+
.filter-bar {
|
| 798 |
+
display: flex;
|
| 799 |
+
gap: 6px;
|
| 800 |
+
margin-bottom: 14px;
|
| 801 |
+
flex-wrap: wrap;
|
| 802 |
+
align-items: center;
|
| 803 |
+
}
|
| 804 |
+
.filter-select {
|
| 805 |
+
padding: 5px 10px;
|
| 806 |
+
border: 1px solid var(--border);
|
| 807 |
+
border-radius: var(--radius-sm);
|
| 808 |
+
font-size: 12px;
|
| 809 |
+
background: var(--white);
|
| 810 |
+
color: var(--text-secondary);
|
| 811 |
+
cursor: pointer;
|
| 812 |
+
}
|
| 813 |
+
.filter-select:focus {
|
| 814 |
+
outline: none;
|
| 815 |
+
border-color: var(--primary);
|
| 816 |
+
}
|
| 817 |
+
|
| 818 |
+
/* ===== Activity Feed ===== */
|
| 819 |
+
.activity-feed {
|
| 820 |
+
display: flex;
|
| 821 |
+
flex-direction: column;
|
| 822 |
+
}
|
| 823 |
+
.activity-item {
|
| 824 |
+
display: flex;
|
| 825 |
+
gap: 10px;
|
| 826 |
+
padding: 8px 0;
|
| 827 |
+
border-bottom: 1px solid var(--border-light);
|
| 828 |
+
}
|
| 829 |
+
.activity-item:last-child {
|
| 830 |
+
border-bottom: none;
|
| 831 |
+
}
|
| 832 |
+
.activity-dot {
|
| 833 |
+
width: 6px;
|
| 834 |
+
height: 6px;
|
| 835 |
+
border-radius: 50%;
|
| 836 |
+
background: var(--primary);
|
| 837 |
+
flex-shrink: 0;
|
| 838 |
+
margin-top: 6px;
|
| 839 |
+
}
|
| 840 |
+
.activity-content {
|
| 841 |
+
flex: 1;
|
| 842 |
+
}
|
| 843 |
+
.activity-text {
|
| 844 |
+
font-size: 12px;
|
| 845 |
+
color: var(--text-secondary);
|
| 846 |
+
}
|
| 847 |
+
.activity-time {
|
| 848 |
+
font-size: 10px;
|
| 849 |
+
color: var(--text-muted);
|
| 850 |
+
margin-top: 1px;
|
| 851 |
+
}
|
| 852 |
+
|
| 853 |
+
/* ===== Badges ===== */
|
| 854 |
+
.archived-badge {
|
| 855 |
+
display: inline-block;
|
| 856 |
+
padding: 1px 6px;
|
| 857 |
+
background: var(--bg-secondary);
|
| 858 |
+
color: var(--text-muted);
|
| 859 |
+
border-radius: 3px;
|
| 860 |
+
font-size: 10px;
|
| 861 |
+
font-weight: 500;
|
| 862 |
+
margin-left: 8px;
|
| 863 |
+
vertical-align: middle;
|
| 864 |
+
}
|
| 865 |
+
|
| 866 |
+
.role-badge {
|
| 867 |
+
font-size: 9px;
|
| 868 |
+
padding: 1px 4px;
|
| 869 |
+
background: var(--primary-light);
|
| 870 |
+
color: var(--primary);
|
| 871 |
+
border-radius: 3px;
|
| 872 |
+
margin-left: 3px;
|
| 873 |
+
font-weight: 600;
|
| 874 |
+
text-transform: uppercase;
|
| 875 |
+
letter-spacing: 0.3px;
|
| 876 |
+
}
|
| 877 |
+
|
| 878 |
+
/* ===== Task status dots ===== */
|
| 879 |
+
.task-status-dot {
|
| 880 |
+
width: 8px;
|
| 881 |
+
height: 8px;
|
| 882 |
+
border-radius: 50%;
|
| 883 |
+
flex-shrink: 0;
|
| 884 |
+
}
|
| 885 |
+
.task-status-dot.todo {
|
| 886 |
+
background: var(--text-muted);
|
| 887 |
+
}
|
| 888 |
+
.task-status-dot.in_progress {
|
| 889 |
+
background: var(--sky);
|
| 890 |
+
}
|
| 891 |
+
.task-status-dot.done {
|
| 892 |
+
background: var(--emerald);
|
| 893 |
+
}
|
| 894 |
+
|
| 895 |
+
.task-item {
|
| 896 |
+
display: flex;
|
| 897 |
+
align-items: center;
|
| 898 |
+
gap: 10px;
|
| 899 |
+
padding: 12px 0;
|
| 900 |
+
border-bottom: 1px solid var(--border-light);
|
| 901 |
+
text-decoration: none;
|
| 902 |
+
color: var(--text);
|
| 903 |
+
}
|
| 904 |
+
.task-item:last-child {
|
| 905 |
+
border-bottom: none;
|
| 906 |
+
}
|
| 907 |
+
.task-info {
|
| 908 |
+
flex: 1;
|
| 909 |
+
min-width: 0;
|
| 910 |
+
}
|
| 911 |
+
.task-title {
|
| 912 |
+
font-weight: 500;
|
| 913 |
+
font-size: 13px;
|
| 914 |
+
color: var(--text);
|
| 915 |
+
}
|
| 916 |
+
.task-meta {
|
| 917 |
+
font-size: 11px;
|
| 918 |
+
color: var(--text-muted);
|
| 919 |
+
display: flex;
|
| 920 |
+
gap: 10px;
|
| 921 |
+
margin-top: 2px;
|
| 922 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/src/App.jsx
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState } from 'react';
|
| 2 |
+
import { Routes, Route, Link, useNavigate } from 'react-router-dom';
|
| 3 |
+
import { searchTasks } from './api';
|
| 4 |
+
import Dashboard from './components/Dashboard';
|
| 5 |
+
// ProjectDetail intentionally unimplemented — implement /components/ProjectDetail.jsx
|
| 6 |
+
// and re-add the matching <Route path="/projects/:id" element={<ProjectDetail />} /> below.
|
| 7 |
+
import CreateProject from './components/CreateProject';
|
| 8 |
+
import AddTask from './components/AddTask';
|
| 9 |
+
import TaskDetail from './components/TaskDetail';
|
| 10 |
+
import SearchResults from './components/SearchResults';
|
| 11 |
+
|
| 12 |
+
function App() {
|
| 13 |
+
const [searchQuery, setSearchQuery] = useState('');
|
| 14 |
+
const [searchResults, setSearchResults] = useState(null);
|
| 15 |
+
const [searching, setSearching] = useState(false);
|
| 16 |
+
const navigate = useNavigate();
|
| 17 |
+
|
| 18 |
+
async function handleSearch(e) {
|
| 19 |
+
e.preventDefault();
|
| 20 |
+
if (!searchQuery.trim()) return;
|
| 21 |
+
setSearching(true);
|
| 22 |
+
try {
|
| 23 |
+
const results = await searchTasks(searchQuery.trim());
|
| 24 |
+
setSearchResults(results);
|
| 25 |
+
navigate('/search');
|
| 26 |
+
} catch (err) {
|
| 27 |
+
console.error(err);
|
| 28 |
+
} finally {
|
| 29 |
+
setSearching(false);
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
return (
|
| 34 |
+
<div className="app">
|
| 35 |
+
<header className="app-header">
|
| 36 |
+
<Link to="/" className="logo">
|
| 37 |
+
<span className="logo-icon">T</span>
|
| 38 |
+
<span className="logo-text">TaskFlow</span>
|
| 39 |
+
</Link>
|
| 40 |
+
<form onSubmit={handleSearch} className="search-bar">
|
| 41 |
+
<input
|
| 42 |
+
className="search-input"
|
| 43 |
+
type="text"
|
| 44 |
+
placeholder="Search tasks..."
|
| 45 |
+
value={searchQuery}
|
| 46 |
+
onChange={(e) => setSearchQuery(e.target.value)}
|
| 47 |
+
/>
|
| 48 |
+
<button type="submit" className="search-btn" disabled={searching}>
|
| 49 |
+
{searching ? '...' : 'Search'}
|
| 50 |
+
</button>
|
| 51 |
+
</form>
|
| 52 |
+
</header>
|
| 53 |
+
<main className="app-main">
|
| 54 |
+
<Routes>
|
| 55 |
+
<Route path="/" element={<Dashboard />} />
|
| 56 |
+
<Route path="/create-project" element={<CreateProject />} />
|
| 57 |
+
<Route path="/projects/:projectId/add-task" element={<AddTask />} />
|
| 58 |
+
<Route path="/tasks/:id" element={<TaskDetail />} />
|
| 59 |
+
<Route
|
| 60 |
+
path="/search"
|
| 61 |
+
element={
|
| 62 |
+
<SearchResults
|
| 63 |
+
results={searchResults}
|
| 64 |
+
query={searchQuery}
|
| 65 |
+
/>
|
| 66 |
+
}
|
| 67 |
+
/>
|
| 68 |
+
</Routes>
|
| 69 |
+
</main>
|
| 70 |
+
</div>
|
| 71 |
+
);
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
export default App;
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/src/api.js
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const BASE_URL = import.meta.env.VITE_API_URL || `http://localhost:${import.meta.env.VITE_API_PORT || 5101}/api`;
|
| 2 |
+
|
| 3 |
+
async function request(path, options = {}) {
|
| 4 |
+
const res = await fetch(`${BASE_URL}${path}`, {
|
| 5 |
+
headers: { 'Content-Type': 'application/json' },
|
| 6 |
+
...options,
|
| 7 |
+
});
|
| 8 |
+
if (!res.ok) {
|
| 9 |
+
const err = await res.json().catch(() => ({ error: res.statusText }));
|
| 10 |
+
throw new Error(err.error || 'Request failed');
|
| 11 |
+
}
|
| 12 |
+
return res.json();
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
// Users
|
| 16 |
+
export function getUsers() {
|
| 17 |
+
return request('/users');
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
export function createUser(name, email) {
|
| 21 |
+
return request('/users', {
|
| 22 |
+
method: 'POST',
|
| 23 |
+
body: JSON.stringify({ name, email }),
|
| 24 |
+
});
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
// Tags
|
| 28 |
+
export function getTags() {
|
| 29 |
+
return request('/tags');
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
export function createTag(name, color) {
|
| 33 |
+
return request('/tags', {
|
| 34 |
+
method: 'POST',
|
| 35 |
+
body: JSON.stringify({ name, color }),
|
| 36 |
+
});
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
export function deleteTag(tagId) {
|
| 40 |
+
return request(`/tags/${tagId}`, { method: 'DELETE' });
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
// Projects
|
| 44 |
+
export function getProjects(includeArchived = false) {
|
| 45 |
+
const qs = includeArchived ? '?include_archived=true' : '';
|
| 46 |
+
return request(`/projects${qs}`);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
export function createProject(name, description, memberIds) {
|
| 50 |
+
return request('/projects', {
|
| 51 |
+
method: 'POST',
|
| 52 |
+
body: JSON.stringify({ name, description, member_ids: memberIds }),
|
| 53 |
+
});
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
export function getProjectDetail(projectId) {
|
| 57 |
+
return request(`/projects/${projectId}`);
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
export function updateProject(projectId, data) {
|
| 61 |
+
return request(`/projects/${projectId}`, {
|
| 62 |
+
method: 'PUT',
|
| 63 |
+
body: JSON.stringify(data),
|
| 64 |
+
});
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
export function getProjectStats(projectId) {
|
| 68 |
+
return request(`/projects/${projectId}/stats`);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
export function getProjectActivities(projectId, limit = 20) {
|
| 72 |
+
return request(`/projects/${projectId}/activities?limit=${limit}`);
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
export function addProjectMember(projectId, userId, role = 'member') {
|
| 76 |
+
return request(`/projects/${projectId}/members`, {
|
| 77 |
+
method: 'POST',
|
| 78 |
+
body: JSON.stringify({ user_id: userId, role }),
|
| 79 |
+
});
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
export function removeProjectMember(projectId, userId) {
|
| 83 |
+
return request(`/projects/${projectId}/members/${userId}`, {
|
| 84 |
+
method: 'DELETE',
|
| 85 |
+
});
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
// Tasks
|
| 89 |
+
export function getProjectTasks(projectId, filters = {}) {
|
| 90 |
+
const params = new URLSearchParams();
|
| 91 |
+
if (filters.status) params.set('status', filters.status);
|
| 92 |
+
if (filters.priority) params.set('priority', filters.priority);
|
| 93 |
+
if (filters.assigned_to) params.set('assigned_to', filters.assigned_to);
|
| 94 |
+
if (filters.tag) params.set('tag', filters.tag);
|
| 95 |
+
if (filters.sort) params.set('sort', filters.sort);
|
| 96 |
+
const qs = params.toString() ? `?${params.toString()}` : '';
|
| 97 |
+
return request(`/projects/${projectId}/tasks${qs}`);
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
export function createTask(projectId, data) {
|
| 101 |
+
return request(`/projects/${projectId}/tasks`, {
|
| 102 |
+
method: 'POST',
|
| 103 |
+
body: JSON.stringify(data),
|
| 104 |
+
});
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
export function getTask(taskId) {
|
| 108 |
+
return request(`/tasks/${taskId}`);
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
export function updateTask(taskId, data) {
|
| 112 |
+
return request(`/tasks/${taskId}`, {
|
| 113 |
+
method: 'PUT',
|
| 114 |
+
body: JSON.stringify(data),
|
| 115 |
+
});
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
export function deleteTask(taskId) {
|
| 119 |
+
return request(`/tasks/${taskId}`, {
|
| 120 |
+
method: 'DELETE',
|
| 121 |
+
});
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
// Task Tags
|
| 125 |
+
export function addTaskTag(taskId, tagId) {
|
| 126 |
+
return request(`/tasks/${taskId}/tags`, {
|
| 127 |
+
method: 'POST',
|
| 128 |
+
body: JSON.stringify({ tag_id: tagId }),
|
| 129 |
+
});
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
export function removeTaskTag(taskId, tagId) {
|
| 133 |
+
return request(`/tasks/${taskId}/tags/${tagId}`, {
|
| 134 |
+
method: 'DELETE',
|
| 135 |
+
});
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
// Comments
|
| 139 |
+
export function createComment(taskId, userId, text) {
|
| 140 |
+
return request(`/tasks/${taskId}/comments`, {
|
| 141 |
+
method: 'POST',
|
| 142 |
+
body: JSON.stringify({ user_id: userId, text }),
|
| 143 |
+
});
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
export function getComments(taskId) {
|
| 147 |
+
return request(`/tasks/${taskId}/comments`);
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
// Activities
|
| 151 |
+
export function getTaskActivities(taskId) {
|
| 152 |
+
return request(`/tasks/${taskId}/activities`);
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
// Search
|
| 156 |
+
export function searchTasks(query) {
|
| 157 |
+
return request(`/search?q=${encodeURIComponent(query)}`);
|
| 158 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/src/components/AddTask.jsx
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState, useEffect } from 'react';
|
| 2 |
+
import { useParams, useNavigate, Link } from 'react-router-dom';
|
| 3 |
+
import { getProjectDetail, createTask, getTags } from '../api';
|
| 4 |
+
|
| 5 |
+
export default function AddTask() {
|
| 6 |
+
const { projectId } = useParams();
|
| 7 |
+
const navigate = useNavigate();
|
| 8 |
+
const [project, setProject] = useState(null);
|
| 9 |
+
const [allTags, setAllTags] = useState([]);
|
| 10 |
+
const [title, setTitle] = useState('');
|
| 11 |
+
const [description, setDescription] = useState('');
|
| 12 |
+
const [priority, setPriority] = useState('medium');
|
| 13 |
+
const [assignedTo, setAssignedTo] = useState('');
|
| 14 |
+
const [createdBy, setCreatedBy] = useState('');
|
| 15 |
+
const [dueDate, setDueDate] = useState('');
|
| 16 |
+
const [selectedTagIds, setSelectedTagIds] = useState([]);
|
| 17 |
+
const [error, setError] = useState('');
|
| 18 |
+
const [loading, setLoading] = useState(false);
|
| 19 |
+
|
| 20 |
+
useEffect(() => {
|
| 21 |
+
Promise.all([getProjectDetail(projectId), getTags()])
|
| 22 |
+
.then(([p, tags]) => {
|
| 23 |
+
setProject(p);
|
| 24 |
+
setAllTags(tags);
|
| 25 |
+
const members = p.members || [];
|
| 26 |
+
if (members.length > 0) setCreatedBy(String(members[0].id));
|
| 27 |
+
})
|
| 28 |
+
.catch((e) => setError(e.message));
|
| 29 |
+
}, [projectId]);
|
| 30 |
+
|
| 31 |
+
function toggleTag(tagId) {
|
| 32 |
+
setSelectedTagIds((prev) =>
|
| 33 |
+
prev.includes(tagId) ? prev.filter((id) => id !== tagId) : [...prev, tagId]
|
| 34 |
+
);
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
async function handleSubmit(e) {
|
| 38 |
+
e.preventDefault();
|
| 39 |
+
setError('');
|
| 40 |
+
if (!title.trim() || !createdBy) {
|
| 41 |
+
setError('Title and creator are required');
|
| 42 |
+
return;
|
| 43 |
+
}
|
| 44 |
+
setLoading(true);
|
| 45 |
+
try {
|
| 46 |
+
const data = {
|
| 47 |
+
title: title.trim(),
|
| 48 |
+
description: description.trim(),
|
| 49 |
+
priority,
|
| 50 |
+
created_by: parseInt(createdBy),
|
| 51 |
+
tag_ids: selectedTagIds,
|
| 52 |
+
};
|
| 53 |
+
if (assignedTo) data.assigned_to = parseInt(assignedTo);
|
| 54 |
+
if (dueDate) data.due_date = dueDate;
|
| 55 |
+
await createTask(projectId, data);
|
| 56 |
+
navigate(`/projects/${projectId}`);
|
| 57 |
+
} catch (e) {
|
| 58 |
+
setError(e.message);
|
| 59 |
+
} finally {
|
| 60 |
+
setLoading(false);
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
if (!project) {
|
| 65 |
+
return error ? (
|
| 66 |
+
<div className="error-msg">{error}</div>
|
| 67 |
+
) : (
|
| 68 |
+
<div className="loading">Loading...</div>
|
| 69 |
+
);
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
const members = project.members || [];
|
| 73 |
+
|
| 74 |
+
return (
|
| 75 |
+
<div className="page-form">
|
| 76 |
+
<Link to={`/projects/${projectId}`} className="back-link">
|
| 77 |
+
← Back to {project.name}
|
| 78 |
+
</Link>
|
| 79 |
+
<h1>Add Task</h1>
|
| 80 |
+
|
| 81 |
+
<div className="card">
|
| 82 |
+
<div className="card-body">
|
| 83 |
+
{error && <div className="error-msg">{error}</div>}
|
| 84 |
+
|
| 85 |
+
<form onSubmit={handleSubmit}>
|
| 86 |
+
<div className="form-group">
|
| 87 |
+
<label>Title</label>
|
| 88 |
+
<input
|
| 89 |
+
className="form-input"
|
| 90 |
+
type="text"
|
| 91 |
+
placeholder="e.g. Design homepage mockup"
|
| 92 |
+
value={title}
|
| 93 |
+
onChange={(e) => setTitle(e.target.value)}
|
| 94 |
+
required
|
| 95 |
+
/>
|
| 96 |
+
</div>
|
| 97 |
+
|
| 98 |
+
<div className="form-group">
|
| 99 |
+
<label>Description</label>
|
| 100 |
+
<textarea
|
| 101 |
+
className="form-input"
|
| 102 |
+
placeholder="Describe the task..."
|
| 103 |
+
value={description}
|
| 104 |
+
onChange={(e) => setDescription(e.target.value)}
|
| 105 |
+
/>
|
| 106 |
+
</div>
|
| 107 |
+
|
| 108 |
+
<div className="form-group">
|
| 109 |
+
<label>Priority</label>
|
| 110 |
+
<select
|
| 111 |
+
className="form-input"
|
| 112 |
+
value={priority}
|
| 113 |
+
onChange={(e) => setPriority(e.target.value)}
|
| 114 |
+
>
|
| 115 |
+
<option value="low">Low</option>
|
| 116 |
+
<option value="medium">Medium</option>
|
| 117 |
+
<option value="high">High</option>
|
| 118 |
+
</select>
|
| 119 |
+
</div>
|
| 120 |
+
|
| 121 |
+
<div className="form-group">
|
| 122 |
+
<label>Created by</label>
|
| 123 |
+
<select
|
| 124 |
+
className="form-input"
|
| 125 |
+
value={createdBy}
|
| 126 |
+
onChange={(e) => setCreatedBy(e.target.value)}
|
| 127 |
+
required
|
| 128 |
+
>
|
| 129 |
+
<option value="">Select creator...</option>
|
| 130 |
+
{members.map((m) => (
|
| 131 |
+
<option key={m.id} value={m.id}>
|
| 132 |
+
{m.name}
|
| 133 |
+
</option>
|
| 134 |
+
))}
|
| 135 |
+
</select>
|
| 136 |
+
</div>
|
| 137 |
+
|
| 138 |
+
<div className="form-group">
|
| 139 |
+
<label>Assigned to</label>
|
| 140 |
+
<select
|
| 141 |
+
className="form-input"
|
| 142 |
+
value={assignedTo}
|
| 143 |
+
onChange={(e) => setAssignedTo(e.target.value)}
|
| 144 |
+
>
|
| 145 |
+
<option value="">Unassigned</option>
|
| 146 |
+
{members.map((m) => (
|
| 147 |
+
<option key={m.id} value={m.id}>
|
| 148 |
+
{m.name}
|
| 149 |
+
</option>
|
| 150 |
+
))}
|
| 151 |
+
</select>
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
<div className="form-group">
|
| 155 |
+
<label>Due Date</label>
|
| 156 |
+
<input
|
| 157 |
+
className="form-input"
|
| 158 |
+
type="date"
|
| 159 |
+
value={dueDate}
|
| 160 |
+
onChange={(e) => setDueDate(e.target.value)}
|
| 161 |
+
/>
|
| 162 |
+
</div>
|
| 163 |
+
|
| 164 |
+
<div className="form-group">
|
| 165 |
+
<label>Tags</label>
|
| 166 |
+
{allTags.length === 0 ? (
|
| 167 |
+
<p style={{ color: 'var(--text-light)', fontSize: 14 }}>
|
| 168 |
+
No tags available. Create tags from the dashboard.
|
| 169 |
+
</p>
|
| 170 |
+
) : (
|
| 171 |
+
<div className="checkbox-list">
|
| 172 |
+
{allTags.map((t) => (
|
| 173 |
+
<label
|
| 174 |
+
key={t.id}
|
| 175 |
+
className={`checkbox-item ${selectedTagIds.includes(t.id) ? 'checked' : ''}`}
|
| 176 |
+
>
|
| 177 |
+
<input
|
| 178 |
+
type="checkbox"
|
| 179 |
+
checked={selectedTagIds.includes(t.id)}
|
| 180 |
+
onChange={() => toggleTag(t.id)}
|
| 181 |
+
/>
|
| 182 |
+
<span
|
| 183 |
+
className="tag-badge-sm"
|
| 184 |
+
style={{ backgroundColor: t.color + '22', color: t.color }}
|
| 185 |
+
>
|
| 186 |
+
{t.name}
|
| 187 |
+
</span>
|
| 188 |
+
</label>
|
| 189 |
+
))}
|
| 190 |
+
</div>
|
| 191 |
+
)}
|
| 192 |
+
</div>
|
| 193 |
+
|
| 194 |
+
<div className="form-actions">
|
| 195 |
+
<Link to={`/projects/${projectId}`} className="btn btn-secondary">
|
| 196 |
+
Cancel
|
| 197 |
+
</Link>
|
| 198 |
+
<button
|
| 199 |
+
type="submit"
|
| 200 |
+
className="btn btn-primary"
|
| 201 |
+
disabled={loading}
|
| 202 |
+
>
|
| 203 |
+
{loading ? 'Adding...' : 'Add Task'}
|
| 204 |
+
</button>
|
| 205 |
+
</div>
|
| 206 |
+
</form>
|
| 207 |
+
</div>
|
| 208 |
+
</div>
|
| 209 |
+
</div>
|
| 210 |
+
);
|
| 211 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/src/components/CreateProject.jsx
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState, useEffect } from 'react';
|
| 2 |
+
import { useNavigate, Link } from 'react-router-dom';
|
| 3 |
+
import { getUsers, createProject } from '../api';
|
| 4 |
+
|
| 5 |
+
export default function CreateProject() {
|
| 6 |
+
const navigate = useNavigate();
|
| 7 |
+
const [users, setUsers] = useState([]);
|
| 8 |
+
const [name, setName] = useState('');
|
| 9 |
+
const [description, setDescription] = useState('');
|
| 10 |
+
const [selectedIds, setSelectedIds] = useState([]);
|
| 11 |
+
const [error, setError] = useState('');
|
| 12 |
+
const [loading, setLoading] = useState(false);
|
| 13 |
+
|
| 14 |
+
useEffect(() => {
|
| 15 |
+
getUsers()
|
| 16 |
+
.then(setUsers)
|
| 17 |
+
.catch((e) => setError(e.message));
|
| 18 |
+
}, []);
|
| 19 |
+
|
| 20 |
+
function toggleUser(id) {
|
| 21 |
+
setSelectedIds((prev) =>
|
| 22 |
+
prev.includes(id) ? prev.filter((x) => x !== id) : [...prev, id]
|
| 23 |
+
);
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
async function handleSubmit(e) {
|
| 27 |
+
e.preventDefault();
|
| 28 |
+
setError('');
|
| 29 |
+
if (!name.trim()) {
|
| 30 |
+
setError('Project name is required');
|
| 31 |
+
return;
|
| 32 |
+
}
|
| 33 |
+
if (selectedIds.length < 1) {
|
| 34 |
+
setError('Select at least 1 member');
|
| 35 |
+
return;
|
| 36 |
+
}
|
| 37 |
+
setLoading(true);
|
| 38 |
+
try {
|
| 39 |
+
await createProject(name.trim(), description.trim(), selectedIds);
|
| 40 |
+
navigate('/');
|
| 41 |
+
} catch (e) {
|
| 42 |
+
setError(e.message);
|
| 43 |
+
} finally {
|
| 44 |
+
setLoading(false);
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
return (
|
| 49 |
+
<div className="page-form">
|
| 50 |
+
<Link to="/" className="back-link">
|
| 51 |
+
← Back to Dashboard
|
| 52 |
+
</Link>
|
| 53 |
+
<h1>Create Project</h1>
|
| 54 |
+
|
| 55 |
+
<div className="card">
|
| 56 |
+
<div className="card-body">
|
| 57 |
+
{error && <div className="error-msg">{error}</div>}
|
| 58 |
+
|
| 59 |
+
<form onSubmit={handleSubmit}>
|
| 60 |
+
<div className="form-group">
|
| 61 |
+
<label>Project Name</label>
|
| 62 |
+
<input
|
| 63 |
+
className="form-input"
|
| 64 |
+
type="text"
|
| 65 |
+
placeholder="e.g. Website Redesign"
|
| 66 |
+
value={name}
|
| 67 |
+
onChange={(e) => setName(e.target.value)}
|
| 68 |
+
required
|
| 69 |
+
/>
|
| 70 |
+
</div>
|
| 71 |
+
|
| 72 |
+
<div className="form-group">
|
| 73 |
+
<label>Description</label>
|
| 74 |
+
<textarea
|
| 75 |
+
className="form-input"
|
| 76 |
+
placeholder="Brief description of the project..."
|
| 77 |
+
value={description}
|
| 78 |
+
onChange={(e) => setDescription(e.target.value)}
|
| 79 |
+
/>
|
| 80 |
+
</div>
|
| 81 |
+
|
| 82 |
+
<div className="form-group">
|
| 83 |
+
<label>Select Members</label>
|
| 84 |
+
{users.length === 0 ? (
|
| 85 |
+
<p style={{ color: 'var(--text-light)', fontSize: 14 }}>
|
| 86 |
+
No users available. Add users from the dashboard first.
|
| 87 |
+
</p>
|
| 88 |
+
) : (
|
| 89 |
+
<div className="checkbox-list">
|
| 90 |
+
{users.map((u) => (
|
| 91 |
+
<label
|
| 92 |
+
key={u.id}
|
| 93 |
+
className={`checkbox-item ${selectedIds.includes(u.id) ? 'checked' : ''}`}
|
| 94 |
+
>
|
| 95 |
+
<input
|
| 96 |
+
type="checkbox"
|
| 97 |
+
checked={selectedIds.includes(u.id)}
|
| 98 |
+
onChange={() => toggleUser(u.id)}
|
| 99 |
+
/>
|
| 100 |
+
{u.name}
|
| 101 |
+
</label>
|
| 102 |
+
))}
|
| 103 |
+
</div>
|
| 104 |
+
)}
|
| 105 |
+
</div>
|
| 106 |
+
|
| 107 |
+
<div className="form-actions">
|
| 108 |
+
<Link to="/" className="btn btn-secondary">
|
| 109 |
+
Cancel
|
| 110 |
+
</Link>
|
| 111 |
+
<button
|
| 112 |
+
type="submit"
|
| 113 |
+
className="btn btn-primary"
|
| 114 |
+
disabled={loading}
|
| 115 |
+
>
|
| 116 |
+
{loading ? 'Creating...' : 'Create Project'}
|
| 117 |
+
</button>
|
| 118 |
+
</div>
|
| 119 |
+
</form>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
);
|
| 124 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/src/components/Dashboard.jsx
ADDED
|
@@ -0,0 +1,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState, useEffect } from 'react';
|
| 2 |
+
import { Link } from 'react-router-dom';
|
| 3 |
+
import { getUsers, createUser, getProjects, getTags, createTag, deleteTag } from '../api';
|
| 4 |
+
|
| 5 |
+
export default function Dashboard() {
|
| 6 |
+
const [users, setUsers] = useState([]);
|
| 7 |
+
const [projects, setProjects] = useState([]);
|
| 8 |
+
const [tags, setTags] = useState([]);
|
| 9 |
+
const [name, setName] = useState('');
|
| 10 |
+
const [email, setEmail] = useState('');
|
| 11 |
+
const [tagName, setTagName] = useState('');
|
| 12 |
+
const [tagColor, setTagColor] = useState('#6b7280');
|
| 13 |
+
const [error, setError] = useState('');
|
| 14 |
+
const [loading, setLoading] = useState(true);
|
| 15 |
+
|
| 16 |
+
useEffect(() => {
|
| 17 |
+
loadData();
|
| 18 |
+
}, []);
|
| 19 |
+
|
| 20 |
+
async function loadData() {
|
| 21 |
+
try {
|
| 22 |
+
const [u, p, t] = await Promise.all([getUsers(), getProjects(), getTags()]);
|
| 23 |
+
setUsers(u);
|
| 24 |
+
setProjects(p);
|
| 25 |
+
setTags(t);
|
| 26 |
+
} catch (e) {
|
| 27 |
+
setError(e.message);
|
| 28 |
+
} finally {
|
| 29 |
+
setLoading(false);
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
async function handleAddUser(e) {
|
| 34 |
+
e.preventDefault();
|
| 35 |
+
setError('');
|
| 36 |
+
if (!name.trim() || !email.trim()) return;
|
| 37 |
+
try {
|
| 38 |
+
const user = await createUser(name.trim(), email.trim());
|
| 39 |
+
setUsers((prev) => [...prev, user]);
|
| 40 |
+
setName('');
|
| 41 |
+
setEmail('');
|
| 42 |
+
} catch (e) {
|
| 43 |
+
setError(e.message);
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
async function handleAddTag(e) {
|
| 48 |
+
e.preventDefault();
|
| 49 |
+
setError('');
|
| 50 |
+
if (!tagName.trim()) return;
|
| 51 |
+
try {
|
| 52 |
+
const tag = await createTag(tagName.trim(), tagColor);
|
| 53 |
+
setTags((prev) => [...prev, tag]);
|
| 54 |
+
setTagName('');
|
| 55 |
+
setTagColor('#6b7280');
|
| 56 |
+
} catch (e) {
|
| 57 |
+
setError(e.message);
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
async function handleDeleteTag(tagId) {
|
| 62 |
+
try {
|
| 63 |
+
await deleteTag(tagId);
|
| 64 |
+
setTags((prev) => prev.filter((t) => t.id !== tagId));
|
| 65 |
+
} catch (e) {
|
| 66 |
+
setError(e.message);
|
| 67 |
+
}
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
if (loading) return <div className="loading">Loading...</div>;
|
| 71 |
+
|
| 72 |
+
return (
|
| 73 |
+
<div>
|
| 74 |
+
<div
|
| 75 |
+
style={{
|
| 76 |
+
display: 'flex',
|
| 77 |
+
alignItems: 'center',
|
| 78 |
+
justifyContent: 'space-between',
|
| 79 |
+
marginBottom: 24,
|
| 80 |
+
}}
|
| 81 |
+
>
|
| 82 |
+
<h1 style={{ fontSize: 28, fontWeight: 700 }}>Dashboard</h1>
|
| 83 |
+
<Link to="/create-project" className="btn btn-primary">
|
| 84 |
+
+ New Project
|
| 85 |
+
</Link>
|
| 86 |
+
</div>
|
| 87 |
+
|
| 88 |
+
{error && <div className="error-msg">{error}</div>}
|
| 89 |
+
|
| 90 |
+
<div className="dashboard-grid">
|
| 91 |
+
<div>
|
| 92 |
+
<div className="section-title">Projects</div>
|
| 93 |
+
{projects.length === 0 ? (
|
| 94 |
+
<div className="card">
|
| 95 |
+
<div className="empty-state">
|
| 96 |
+
<div className="empty-state-icon">P</div>
|
| 97 |
+
<p>No projects yet. Create one to get started!</p>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
) : (
|
| 101 |
+
<div className="projects-list">
|
| 102 |
+
{projects.map((p) => (
|
| 103 |
+
<Link
|
| 104 |
+
key={p.id}
|
| 105 |
+
to={`/projects/${p.id}`}
|
| 106 |
+
className="project-card"
|
| 107 |
+
>
|
| 108 |
+
<div className="project-card-icon">
|
| 109 |
+
{p.name.charAt(0).toUpperCase()}
|
| 110 |
+
</div>
|
| 111 |
+
<div className="project-card-info">
|
| 112 |
+
<div className="project-card-name">
|
| 113 |
+
{p.name}
|
| 114 |
+
{p.archived && <span className="archived-badge">Archived</span>}
|
| 115 |
+
</div>
|
| 116 |
+
<div className="project-card-meta">
|
| 117 |
+
{p.members
|
| 118 |
+
? `${p.members.length} member${p.members.length !== 1 ? 's' : ''}`
|
| 119 |
+
: ''}
|
| 120 |
+
{p.description ? ` · ${p.description}` : ''}
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
<div className="project-card-arrow">›</div>
|
| 124 |
+
</Link>
|
| 125 |
+
))}
|
| 126 |
+
</div>
|
| 127 |
+
)}
|
| 128 |
+
</div>
|
| 129 |
+
|
| 130 |
+
<div className="sidebar">
|
| 131 |
+
<div className="card">
|
| 132 |
+
<div className="card-header">
|
| 133 |
+
<h2>Add User</h2>
|
| 134 |
+
</div>
|
| 135 |
+
<div className="card-body">
|
| 136 |
+
<form onSubmit={handleAddUser}>
|
| 137 |
+
<div className="form-group">
|
| 138 |
+
<label>Name</label>
|
| 139 |
+
<input
|
| 140 |
+
className="form-input"
|
| 141 |
+
type="text"
|
| 142 |
+
placeholder="John Doe"
|
| 143 |
+
value={name}
|
| 144 |
+
onChange={(e) => setName(e.target.value)}
|
| 145 |
+
required
|
| 146 |
+
/>
|
| 147 |
+
</div>
|
| 148 |
+
<div className="form-group">
|
| 149 |
+
<label>Email</label>
|
| 150 |
+
<input
|
| 151 |
+
className="form-input"
|
| 152 |
+
type="email"
|
| 153 |
+
placeholder="john@example.com"
|
| 154 |
+
value={email}
|
| 155 |
+
onChange={(e) => setEmail(e.target.value)}
|
| 156 |
+
required
|
| 157 |
+
/>
|
| 158 |
+
</div>
|
| 159 |
+
<button className="btn btn-primary" style={{ width: '100%' }}>
|
| 160 |
+
Add User
|
| 161 |
+
</button>
|
| 162 |
+
</form>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
|
| 166 |
+
<div className="card">
|
| 167 |
+
<div className="card-header">
|
| 168 |
+
<h2>Users ({users.length})</h2>
|
| 169 |
+
</div>
|
| 170 |
+
<div className="card-body">
|
| 171 |
+
{users.length === 0 ? (
|
| 172 |
+
<p style={{ color: 'var(--text-light)', fontSize: 14 }}>
|
| 173 |
+
No users yet.
|
| 174 |
+
</p>
|
| 175 |
+
) : (
|
| 176 |
+
<ul className="user-list">
|
| 177 |
+
{users.map((u) => (
|
| 178 |
+
<li key={u.id}>
|
| 179 |
+
<div className="user-avatar">
|
| 180 |
+
{u.name.charAt(0).toUpperCase()}
|
| 181 |
+
</div>
|
| 182 |
+
<div>
|
| 183 |
+
<div className="user-info-name">{u.name}</div>
|
| 184 |
+
<div className="user-info-email">{u.email}</div>
|
| 185 |
+
</div>
|
| 186 |
+
</li>
|
| 187 |
+
))}
|
| 188 |
+
</ul>
|
| 189 |
+
)}
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
|
| 193 |
+
<div className="card">
|
| 194 |
+
<div className="card-header">
|
| 195 |
+
<h2>Tags ({tags.length})</h2>
|
| 196 |
+
</div>
|
| 197 |
+
<div className="card-body">
|
| 198 |
+
<form onSubmit={handleAddTag} style={{ marginBottom: 12 }}>
|
| 199 |
+
<div style={{ display: 'flex', gap: 8 }}>
|
| 200 |
+
<input
|
| 201 |
+
className="form-input"
|
| 202 |
+
type="text"
|
| 203 |
+
placeholder="Tag name"
|
| 204 |
+
value={tagName}
|
| 205 |
+
onChange={(e) => setTagName(e.target.value)}
|
| 206 |
+
style={{ flex: 1 }}
|
| 207 |
+
required
|
| 208 |
+
/>
|
| 209 |
+
<input
|
| 210 |
+
type="color"
|
| 211 |
+
value={tagColor}
|
| 212 |
+
onChange={(e) => setTagColor(e.target.value)}
|
| 213 |
+
style={{ width: 40, height: 38, padding: 2, border: '1px solid var(--border)', borderRadius: 4, cursor: 'pointer' }}
|
| 214 |
+
/>
|
| 215 |
+
<button className="btn btn-primary btn-sm" type="submit">Add</button>
|
| 216 |
+
</div>
|
| 217 |
+
</form>
|
| 218 |
+
{tags.length === 0 ? (
|
| 219 |
+
<p style={{ color: 'var(--text-light)', fontSize: 14 }}>
|
| 220 |
+
No tags yet.
|
| 221 |
+
</p>
|
| 222 |
+
) : (
|
| 223 |
+
<div className="tag-list">
|
| 224 |
+
{tags.map((t) => (
|
| 225 |
+
<div key={t.id} className="tag-item">
|
| 226 |
+
<span
|
| 227 |
+
className="tag-badge"
|
| 228 |
+
style={{ backgroundColor: t.color + '22', color: t.color, borderColor: t.color }}
|
| 229 |
+
>
|
| 230 |
+
{t.name}
|
| 231 |
+
</span>
|
| 232 |
+
<button
|
| 233 |
+
className="tag-delete"
|
| 234 |
+
onClick={() => handleDeleteTag(t.id)}
|
| 235 |
+
title="Delete tag"
|
| 236 |
+
>
|
| 237 |
+
×
|
| 238 |
+
</button>
|
| 239 |
+
</div>
|
| 240 |
+
))}
|
| 241 |
+
</div>
|
| 242 |
+
)}
|
| 243 |
+
</div>
|
| 244 |
+
</div>
|
| 245 |
+
</div>
|
| 246 |
+
</div>
|
| 247 |
+
</div>
|
| 248 |
+
);
|
| 249 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/src/components/SearchResults.jsx
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Link } from 'react-router-dom';
|
| 2 |
+
|
| 3 |
+
export default function SearchResults({ results, query }) {
|
| 4 |
+
if (!results) {
|
| 5 |
+
return (
|
| 6 |
+
<div className="loading">
|
| 7 |
+
Enter a search query to find tasks.
|
| 8 |
+
</div>
|
| 9 |
+
);
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
function formatDate(dateStr) {
|
| 13 |
+
if (!dateStr) return '';
|
| 14 |
+
const d = new Date(dateStr);
|
| 15 |
+
return d.toLocaleDateString('en-US', {
|
| 16 |
+
month: 'short',
|
| 17 |
+
day: 'numeric',
|
| 18 |
+
year: 'numeric',
|
| 19 |
+
});
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
return (
|
| 23 |
+
<div>
|
| 24 |
+
<Link to="/" className="back-link">
|
| 25 |
+
← Back to Dashboard
|
| 26 |
+
</Link>
|
| 27 |
+
<h1 style={{ fontSize: 24, fontWeight: 700, marginBottom: 20 }}>
|
| 28 |
+
Search Results {query && <span style={{ color: 'var(--text-light)', fontWeight: 400 }}>for "{query}"</span>}
|
| 29 |
+
</h1>
|
| 30 |
+
|
| 31 |
+
{results.length === 0 ? (
|
| 32 |
+
<div className="card">
|
| 33 |
+
<div className="empty-state">
|
| 34 |
+
<div className="empty-state-icon">?</div>
|
| 35 |
+
<p>No tasks found matching your search.</p>
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
| 38 |
+
) : (
|
| 39 |
+
<div className="card">
|
| 40 |
+
<div className="card-header">
|
| 41 |
+
<h2>{results.length} task{results.length !== 1 ? 's' : ''} found</h2>
|
| 42 |
+
</div>
|
| 43 |
+
<div className="card-body">
|
| 44 |
+
{results.map((task) => (
|
| 45 |
+
<div key={task.id} className="task-item">
|
| 46 |
+
<div className={`task-status-dot ${task.status}`} />
|
| 47 |
+
<div className="task-info">
|
| 48 |
+
<Link to={`/tasks/${task.id}`} className="task-title">
|
| 49 |
+
{task.title}
|
| 50 |
+
</Link>
|
| 51 |
+
<div className="task-meta">
|
| 52 |
+
<span className={`priority-badge ${task.priority}`}>
|
| 53 |
+
{task.priority}
|
| 54 |
+
</span>
|
| 55 |
+
<span>{task.assigned_to_name || 'Unassigned'}</span>
|
| 56 |
+
{task.due_date && <span>Due {formatDate(task.due_date)}</span>}
|
| 57 |
+
{task.tags && task.tags.length > 0 && (
|
| 58 |
+
<span>
|
| 59 |
+
{task.tags.map((t) => (
|
| 60 |
+
<span
|
| 61 |
+
key={t.id}
|
| 62 |
+
className="tag-badge-sm"
|
| 63 |
+
style={{ backgroundColor: t.color + '22', color: t.color, marginLeft: 4 }}
|
| 64 |
+
>
|
| 65 |
+
{t.name}
|
| 66 |
+
</span>
|
| 67 |
+
))}
|
| 68 |
+
</span>
|
| 69 |
+
)}
|
| 70 |
+
</div>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
+
))}
|
| 74 |
+
</div>
|
| 75 |
+
</div>
|
| 76 |
+
)}
|
| 77 |
+
</div>
|
| 78 |
+
);
|
| 79 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/src/components/TaskDetail.jsx
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState, useEffect, useCallback } from 'react';
|
| 2 |
+
import { useParams, Link } from 'react-router-dom';
|
| 3 |
+
import { getTask, updateTask, createComment, getTags, addTaskTag, removeTaskTag } from '../api';
|
| 4 |
+
|
| 5 |
+
export default function TaskDetail() {
|
| 6 |
+
const { id } = useParams();
|
| 7 |
+
const [task, setTask] = useState(null);
|
| 8 |
+
const [allTags, setAllTags] = useState([]);
|
| 9 |
+
const [loading, setLoading] = useState(true);
|
| 10 |
+
const [error, setError] = useState('');
|
| 11 |
+
const [commentText, setCommentText] = useState('');
|
| 12 |
+
const [commentLoading, setCommentLoading] = useState(false);
|
| 13 |
+
const [showTagPicker, setShowTagPicker] = useState(false);
|
| 14 |
+
|
| 15 |
+
const loadData = useCallback(async () => {
|
| 16 |
+
try {
|
| 17 |
+
const [t, tags] = await Promise.all([getTask(id), getTags()]);
|
| 18 |
+
setTask(t);
|
| 19 |
+
setAllTags(tags);
|
| 20 |
+
} catch (e) {
|
| 21 |
+
setError(e.message);
|
| 22 |
+
} finally {
|
| 23 |
+
setLoading(false);
|
| 24 |
+
}
|
| 25 |
+
}, [id]);
|
| 26 |
+
|
| 27 |
+
useEffect(() => {
|
| 28 |
+
loadData();
|
| 29 |
+
}, [loadData]);
|
| 30 |
+
|
| 31 |
+
async function handleStatusChange(newStatus) {
|
| 32 |
+
try {
|
| 33 |
+
await updateTask(id, { status: newStatus, updated_by: task.created_by });
|
| 34 |
+
await loadData();
|
| 35 |
+
} catch (e) {
|
| 36 |
+
setError(e.message);
|
| 37 |
+
}
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
async function handlePriorityChange(newPriority) {
|
| 41 |
+
try {
|
| 42 |
+
await updateTask(id, { priority: newPriority, updated_by: task.created_by });
|
| 43 |
+
await loadData();
|
| 44 |
+
} catch (e) {
|
| 45 |
+
setError(e.message);
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
async function handleAddComment(e) {
|
| 50 |
+
e.preventDefault();
|
| 51 |
+
if (!commentText.trim() || !task.created_by) return;
|
| 52 |
+
setCommentLoading(true);
|
| 53 |
+
try {
|
| 54 |
+
await createComment(id, task.created_by, commentText.trim());
|
| 55 |
+
setCommentText('');
|
| 56 |
+
await loadData();
|
| 57 |
+
} catch (e) {
|
| 58 |
+
setError(e.message);
|
| 59 |
+
} finally {
|
| 60 |
+
setCommentLoading(false);
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
async function handleAddTag(tagId) {
|
| 65 |
+
try {
|
| 66 |
+
await addTaskTag(id, tagId);
|
| 67 |
+
await loadData();
|
| 68 |
+
} catch (e) {
|
| 69 |
+
setError(e.message);
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
async function handleRemoveTag(tagId) {
|
| 74 |
+
try {
|
| 75 |
+
await removeTaskTag(id, tagId);
|
| 76 |
+
await loadData();
|
| 77 |
+
} catch (e) {
|
| 78 |
+
setError(e.message);
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
function formatDate(dateStr) {
|
| 83 |
+
if (!dateStr) return '';
|
| 84 |
+
const d = new Date(dateStr);
|
| 85 |
+
return d.toLocaleDateString('en-US', {
|
| 86 |
+
month: 'short',
|
| 87 |
+
day: 'numeric',
|
| 88 |
+
year: 'numeric',
|
| 89 |
+
});
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
function formatDateTime(dateStr) {
|
| 93 |
+
if (!dateStr) return '';
|
| 94 |
+
const d = new Date(dateStr);
|
| 95 |
+
return d.toLocaleDateString('en-US', {
|
| 96 |
+
month: 'short',
|
| 97 |
+
day: 'numeric',
|
| 98 |
+
hour: 'numeric',
|
| 99 |
+
minute: '2-digit',
|
| 100 |
+
});
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
function formatRelative(dateStr) {
|
| 104 |
+
if (!dateStr) return '';
|
| 105 |
+
const d = new Date(dateStr);
|
| 106 |
+
const now = new Date();
|
| 107 |
+
const diff = Math.floor((now - d) / 1000);
|
| 108 |
+
if (diff < 60) return 'just now';
|
| 109 |
+
if (diff < 3600) return `${Math.floor(diff / 60)}m ago`;
|
| 110 |
+
if (diff < 86400) return `${Math.floor(diff / 3600)}h ago`;
|
| 111 |
+
return `${Math.floor(diff / 86400)}d ago`;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
function activityDescription(act) {
|
| 115 |
+
const who = act.user_name || 'Someone';
|
| 116 |
+
switch (act.action) {
|
| 117 |
+
case 'created': return `${who} created this task`;
|
| 118 |
+
case 'commented': return `${who} added a comment`;
|
| 119 |
+
case 'tags_added': return `${who} added tags: ${act.new_value}`;
|
| 120 |
+
case 'tags_removed': return `${who} removed tags: ${act.old_value}`;
|
| 121 |
+
case 'updated':
|
| 122 |
+
return `${who} changed ${act.field} from "${act.old_value || '—'}" to "${act.new_value || '—'}"`;
|
| 123 |
+
default: return `${who} ${act.action}`;
|
| 124 |
+
}
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
if (loading) return <div className="loading">Loading...</div>;
|
| 128 |
+
if (!task) return <div className="error-msg">Task not found</div>;
|
| 129 |
+
|
| 130 |
+
const comments = task.comments || [];
|
| 131 |
+
const activities = task.activities || [];
|
| 132 |
+
const taskTagIds = new Set((task.tags || []).map((t) => t.id));
|
| 133 |
+
const availableTags = allTags.filter((t) => !taskTagIds.has(t.id));
|
| 134 |
+
|
| 135 |
+
return (
|
| 136 |
+
<div>
|
| 137 |
+
<Link to={`/projects/${task.project_id}`} className="back-link">
|
| 138 |
+
← Back to Project
|
| 139 |
+
</Link>
|
| 140 |
+
|
| 141 |
+
{error && <div className="error-msg">{error}</div>}
|
| 142 |
+
|
| 143 |
+
<div className="task-detail-header">
|
| 144 |
+
<h1>{task.title}</h1>
|
| 145 |
+
<div className="task-detail-meta">
|
| 146 |
+
<span>Created by {task.created_by_name}</span>
|
| 147 |
+
<span>Created {formatDate(task.created_at)}</span>
|
| 148 |
+
{task.due_date && <span>Due {formatDate(task.due_date)}</span>}
|
| 149 |
+
</div>
|
| 150 |
+
{task.tags && task.tags.length > 0 && (
|
| 151 |
+
<div style={{ display: 'flex', gap: 6, marginTop: 8, flexWrap: 'wrap' }}>
|
| 152 |
+
{task.tags.map((t) => (
|
| 153 |
+
<span
|
| 154 |
+
key={t.id}
|
| 155 |
+
className="tag-badge"
|
| 156 |
+
style={{ backgroundColor: t.color + '22', color: t.color, borderColor: t.color, cursor: 'pointer' }}
|
| 157 |
+
onClick={() => handleRemoveTag(t.id)}
|
| 158 |
+
title="Click to remove"
|
| 159 |
+
>
|
| 160 |
+
{t.name} ×
|
| 161 |
+
</span>
|
| 162 |
+
))}
|
| 163 |
+
<button
|
| 164 |
+
className="tag-add-btn"
|
| 165 |
+
onClick={() => setShowTagPicker(!showTagPicker)}
|
| 166 |
+
>
|
| 167 |
+
+ Tag
|
| 168 |
+
</button>
|
| 169 |
+
</div>
|
| 170 |
+
)}
|
| 171 |
+
{(showTagPicker || (task.tags && task.tags.length === 0)) && availableTags.length > 0 && (
|
| 172 |
+
<div className="tag-picker">
|
| 173 |
+
{availableTags.map((t) => (
|
| 174 |
+
<button
|
| 175 |
+
key={t.id}
|
| 176 |
+
className="tag-badge"
|
| 177 |
+
style={{ backgroundColor: t.color + '22', color: t.color, borderColor: t.color, cursor: 'pointer', border: `1px dashed ${t.color}` }}
|
| 178 |
+
onClick={() => handleAddTag(t.id)}
|
| 179 |
+
>
|
| 180 |
+
+ {t.name}
|
| 181 |
+
</button>
|
| 182 |
+
))}
|
| 183 |
+
</div>
|
| 184 |
+
)}
|
| 185 |
+
</div>
|
| 186 |
+
|
| 187 |
+
<div className="task-detail-grid">
|
| 188 |
+
<div>
|
| 189 |
+
<div className="card" style={{ marginBottom: 20 }}>
|
| 190 |
+
<div className="card-header">
|
| 191 |
+
<h2>Description</h2>
|
| 192 |
+
</div>
|
| 193 |
+
<div className="card-body">
|
| 194 |
+
<div className="task-description">
|
| 195 |
+
{task.description || 'No description provided.'}
|
| 196 |
+
</div>
|
| 197 |
+
</div>
|
| 198 |
+
</div>
|
| 199 |
+
|
| 200 |
+
<div className="card" style={{ marginBottom: 20 }}>
|
| 201 |
+
<div className="card-header">
|
| 202 |
+
<h2>Comments ({comments.length})</h2>
|
| 203 |
+
</div>
|
| 204 |
+
<div className="card-body">
|
| 205 |
+
{comments.length === 0 ? (
|
| 206 |
+
<p style={{ color: 'var(--text-light)', fontSize: 14 }}>
|
| 207 |
+
No comments yet.
|
| 208 |
+
</p>
|
| 209 |
+
) : (
|
| 210 |
+
<div className="comment-list">
|
| 211 |
+
{comments.map((c) => (
|
| 212 |
+
<div key={c.id} className="comment-item">
|
| 213 |
+
<div className="user-avatar" style={{ width: 28, height: 28, fontSize: 12 }}>
|
| 214 |
+
{c.user_name ? c.user_name.charAt(0).toUpperCase() : '?'}
|
| 215 |
+
</div>
|
| 216 |
+
<div className="comment-body">
|
| 217 |
+
<div className="comment-author">
|
| 218 |
+
{c.user_name}
|
| 219 |
+
<span className="comment-time">{formatDateTime(c.created_at)}</span>
|
| 220 |
+
</div>
|
| 221 |
+
<div className="comment-text">{c.text}</div>
|
| 222 |
+
</div>
|
| 223 |
+
</div>
|
| 224 |
+
))}
|
| 225 |
+
</div>
|
| 226 |
+
)}
|
| 227 |
+
<form onSubmit={handleAddComment} className="comment-form">
|
| 228 |
+
<input
|
| 229 |
+
className="form-input"
|
| 230 |
+
type="text"
|
| 231 |
+
placeholder="Add a comment..."
|
| 232 |
+
value={commentText}
|
| 233 |
+
onChange={(e) => setCommentText(e.target.value)}
|
| 234 |
+
/>
|
| 235 |
+
<button
|
| 236 |
+
type="submit"
|
| 237 |
+
className="btn btn-primary"
|
| 238 |
+
disabled={commentLoading}
|
| 239 |
+
>
|
| 240 |
+
{commentLoading ? '...' : 'Post'}
|
| 241 |
+
</button>
|
| 242 |
+
</form>
|
| 243 |
+
</div>
|
| 244 |
+
</div>
|
| 245 |
+
|
| 246 |
+
{/* Activity Timeline */}
|
| 247 |
+
<div className="card">
|
| 248 |
+
<div className="card-header">
|
| 249 |
+
<h2>Activity ({activities.length})</h2>
|
| 250 |
+
</div>
|
| 251 |
+
<div className="card-body">
|
| 252 |
+
{activities.length === 0 ? (
|
| 253 |
+
<p style={{ color: 'var(--text-light)', fontSize: 14 }}>
|
| 254 |
+
No activity yet.
|
| 255 |
+
</p>
|
| 256 |
+
) : (
|
| 257 |
+
<div className="activity-feed">
|
| 258 |
+
{activities.map((a) => (
|
| 259 |
+
<div key={a.id} className="activity-item">
|
| 260 |
+
<div className="activity-dot" />
|
| 261 |
+
<div className="activity-content">
|
| 262 |
+
<div className="activity-text">{activityDescription(a)}</div>
|
| 263 |
+
<div className="activity-time">{formatRelative(a.created_at)}</div>
|
| 264 |
+
</div>
|
| 265 |
+
</div>
|
| 266 |
+
))}
|
| 267 |
+
</div>
|
| 268 |
+
)}
|
| 269 |
+
</div>
|
| 270 |
+
</div>
|
| 271 |
+
</div>
|
| 272 |
+
|
| 273 |
+
<div className="sidebar">
|
| 274 |
+
<div className="card">
|
| 275 |
+
<div className="card-header">
|
| 276 |
+
<h2>Details</h2>
|
| 277 |
+
</div>
|
| 278 |
+
<div className="card-body">
|
| 279 |
+
<div className="form-group">
|
| 280 |
+
<label>Status</label>
|
| 281 |
+
<select
|
| 282 |
+
className="form-input"
|
| 283 |
+
value={task.status}
|
| 284 |
+
onChange={(e) => handleStatusChange(e.target.value)}
|
| 285 |
+
>
|
| 286 |
+
<option value="todo">To Do</option>
|
| 287 |
+
<option value="in_progress">In Progress</option>
|
| 288 |
+
<option value="done">Done</option>
|
| 289 |
+
</select>
|
| 290 |
+
</div>
|
| 291 |
+
|
| 292 |
+
<div className="form-group">
|
| 293 |
+
<label>Priority</label>
|
| 294 |
+
<select
|
| 295 |
+
className="form-input"
|
| 296 |
+
value={task.priority}
|
| 297 |
+
onChange={(e) => handlePriorityChange(e.target.value)}
|
| 298 |
+
>
|
| 299 |
+
<option value="low">Low</option>
|
| 300 |
+
<option value="medium">Medium</option>
|
| 301 |
+
<option value="high">High</option>
|
| 302 |
+
</select>
|
| 303 |
+
</div>
|
| 304 |
+
|
| 305 |
+
<div className="form-group">
|
| 306 |
+
<label>Assigned to</label>
|
| 307 |
+
<p style={{ fontSize: 14 }}>
|
| 308 |
+
{task.assigned_to_name || 'Unassigned'}
|
| 309 |
+
</p>
|
| 310 |
+
</div>
|
| 311 |
+
|
| 312 |
+
{task.due_date && (
|
| 313 |
+
<div className="form-group">
|
| 314 |
+
<label>Due Date</label>
|
| 315 |
+
<p style={{ fontSize: 14 }}>{formatDate(task.due_date)}</p>
|
| 316 |
+
</div>
|
| 317 |
+
)}
|
| 318 |
+
</div>
|
| 319 |
+
</div>
|
| 320 |
+
</div>
|
| 321 |
+
</div>
|
| 322 |
+
</div>
|
| 323 |
+
);
|
| 324 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/src/index.css
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body {
|
| 2 |
+
margin: 0;
|
| 3 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/src/main.jsx
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { StrictMode } from 'react';
|
| 2 |
+
import { createRoot } from 'react-dom/client';
|
| 3 |
+
import { BrowserRouter } from 'react-router-dom';
|
| 4 |
+
import App from './App.jsx';
|
| 5 |
+
import './App.css';
|
| 6 |
+
|
| 7 |
+
createRoot(document.getElementById('root')).render(
|
| 8 |
+
<StrictMode>
|
| 9 |
+
<BrowserRouter basename={import.meta.env.BASE_URL}>
|
| 10 |
+
<App />
|
| 11 |
+
</BrowserRouter>
|
| 12 |
+
</StrictMode>
|
| 13 |
+
);
|
screenshot42-taskmanager-projectdetail/environment/app/frontend/vite.config.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { defineConfig } from 'vite'
|
| 2 |
+
import react from '@vitejs/plugin-react'
|
| 3 |
+
|
| 4 |
+
export default defineConfig({
|
| 5 |
+
plugins: [react()],
|
| 6 |
+
base: process.env.VITE_BASE_URL || '/',
|
| 7 |
+
server: {
|
| 8 |
+
port: 5273,
|
| 9 |
+
hmr: {
|
| 10 |
+
port: 5273,
|
| 11 |
+
},
|
| 12 |
+
},
|
| 13 |
+
})
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/config.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"job_name": "2026-05-10__01-14-57",
|
| 3 |
+
"jobs_dir": "jobs",
|
| 4 |
+
"n_attempts": 1,
|
| 5 |
+
"timeout_multiplier": 1.0,
|
| 6 |
+
"agent_timeout_multiplier": null,
|
| 7 |
+
"verifier_timeout_multiplier": null,
|
| 8 |
+
"agent_setup_timeout_multiplier": null,
|
| 9 |
+
"environment_build_timeout_multiplier": null,
|
| 10 |
+
"debug": false,
|
| 11 |
+
"n_concurrent_trials": 4,
|
| 12 |
+
"quiet": true,
|
| 13 |
+
"retry": {
|
| 14 |
+
"max_retries": 0,
|
| 15 |
+
"include_exceptions": null,
|
| 16 |
+
"exclude_exceptions": [
|
| 17 |
+
"RewardFileEmptyError",
|
| 18 |
+
"RewardFileNotFoundError",
|
| 19 |
+
"VerifierOutputParseError",
|
| 20 |
+
"VerifierTimeoutError",
|
| 21 |
+
"AgentTimeoutError"
|
| 22 |
+
],
|
| 23 |
+
"wait_multiplier": 1.0,
|
| 24 |
+
"min_wait_sec": 1.0,
|
| 25 |
+
"max_wait_sec": 60.0
|
| 26 |
+
},
|
| 27 |
+
"environment": {
|
| 28 |
+
"type": "docker",
|
| 29 |
+
"import_path": null,
|
| 30 |
+
"force_build": false,
|
| 31 |
+
"delete": true,
|
| 32 |
+
"override_cpus": null,
|
| 33 |
+
"override_memory_mb": null,
|
| 34 |
+
"override_storage_mb": null,
|
| 35 |
+
"override_gpus": null,
|
| 36 |
+
"suppress_override_warnings": false,
|
| 37 |
+
"mounts_json": null,
|
| 38 |
+
"env": {},
|
| 39 |
+
"kwargs": {}
|
| 40 |
+
},
|
| 41 |
+
"verifier": {
|
| 42 |
+
"override_timeout_sec": null,
|
| 43 |
+
"max_timeout_sec": null,
|
| 44 |
+
"env": {},
|
| 45 |
+
"disable": false
|
| 46 |
+
},
|
| 47 |
+
"metrics": [],
|
| 48 |
+
"agents": [
|
| 49 |
+
{
|
| 50 |
+
"name": "oracle",
|
| 51 |
+
"import_path": null,
|
| 52 |
+
"model_name": null,
|
| 53 |
+
"override_timeout_sec": null,
|
| 54 |
+
"override_setup_timeout_sec": null,
|
| 55 |
+
"max_timeout_sec": null,
|
| 56 |
+
"kwargs": {},
|
| 57 |
+
"env": {}
|
| 58 |
+
}
|
| 59 |
+
],
|
| 60 |
+
"datasets": [],
|
| 61 |
+
"tasks": [
|
| 62 |
+
{
|
| 63 |
+
"path": "/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard",
|
| 64 |
+
"git_url": null,
|
| 65 |
+
"git_commit_id": null,
|
| 66 |
+
"name": null,
|
| 67 |
+
"ref": null,
|
| 68 |
+
"overwrite": false,
|
| 69 |
+
"download_dir": null,
|
| 70 |
+
"source": null
|
| 71 |
+
}
|
| 72 |
+
],
|
| 73 |
+
"artifacts": []
|
| 74 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/job.log
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Skipping image OS validation for hb__loki-screenshot41-taskmanager-dashboard: docker inspect returned 1
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/lock.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"created_at": "2026-05-10T08:14:58.314996Z",
|
| 4 |
+
"harbor": {
|
| 5 |
+
"version": "0.6.6",
|
| 6 |
+
"is_editable": false
|
| 7 |
+
},
|
| 8 |
+
"invocation": [
|
| 9 |
+
"/Users/eric/Local/harbor-spike/.venv/bin/harbor",
|
| 10 |
+
"run",
|
| 11 |
+
"-p",
|
| 12 |
+
"/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard",
|
| 13 |
+
"-a",
|
| 14 |
+
"oracle",
|
| 15 |
+
"-y",
|
| 16 |
+
"-q"
|
| 17 |
+
],
|
| 18 |
+
"n_concurrent_trials": 4,
|
| 19 |
+
"retry": {
|
| 20 |
+
"max_retries": 0,
|
| 21 |
+
"exclude_exceptions": [
|
| 22 |
+
"RewardFileEmptyError",
|
| 23 |
+
"RewardFileNotFoundError",
|
| 24 |
+
"VerifierOutputParseError",
|
| 25 |
+
"VerifierTimeoutError",
|
| 26 |
+
"AgentTimeoutError"
|
| 27 |
+
],
|
| 28 |
+
"wait_multiplier": 1.0,
|
| 29 |
+
"min_wait_sec": 1.0,
|
| 30 |
+
"max_wait_sec": 60.0
|
| 31 |
+
},
|
| 32 |
+
"trials": [
|
| 33 |
+
{
|
| 34 |
+
"task": {
|
| 35 |
+
"name": "screenshot41-taskmanager-dashboard",
|
| 36 |
+
"type": "local",
|
| 37 |
+
"digest": "sha256:d223569351672cf334a0074767ba040b4094bbc0d4b47ee84199315177f12d55",
|
| 38 |
+
"path": "/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard"
|
| 39 |
+
},
|
| 40 |
+
"timeout_multiplier": 1.0,
|
| 41 |
+
"agent": {
|
| 42 |
+
"name": "oracle",
|
| 43 |
+
"kwargs": {},
|
| 44 |
+
"env": {}
|
| 45 |
+
},
|
| 46 |
+
"environment": {
|
| 47 |
+
"type": "docker",
|
| 48 |
+
"force_build": false,
|
| 49 |
+
"delete": true,
|
| 50 |
+
"suppress_override_warnings": false,
|
| 51 |
+
"env": {},
|
| 52 |
+
"kwargs": {}
|
| 53 |
+
},
|
| 54 |
+
"verifier": {
|
| 55 |
+
"env": {},
|
| 56 |
+
"disable": false
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
]
|
| 60 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/result.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "a070f9fa-5f61-4ccb-842e-2501f5db26f6",
|
| 3 |
+
"started_at": "2026-05-10T01:14:58.308875",
|
| 4 |
+
"updated_at": "2026-05-10T01:15:22.172493",
|
| 5 |
+
"finished_at": "2026-05-10T01:15:22.172493",
|
| 6 |
+
"n_total_trials": 1,
|
| 7 |
+
"stats": {
|
| 8 |
+
"n_completed_trials": 1,
|
| 9 |
+
"n_errored_trials": 0,
|
| 10 |
+
"n_running_trials": 0,
|
| 11 |
+
"n_pending_trials": 0,
|
| 12 |
+
"n_cancelled_trials": 0,
|
| 13 |
+
"n_retries": 0,
|
| 14 |
+
"evals": {
|
| 15 |
+
"oracle__adhoc": {
|
| 16 |
+
"n_trials": 1,
|
| 17 |
+
"n_errors": 0,
|
| 18 |
+
"metrics": [
|
| 19 |
+
{
|
| 20 |
+
"mean": 0.0
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"pass_at_k": {},
|
| 24 |
+
"reward_stats": {
|
| 25 |
+
"reward": {
|
| 26 |
+
"0.0": [
|
| 27 |
+
"screenshot41-taskmanager-dashboa__Ar3uDiT"
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
},
|
| 31 |
+
"exception_stats": {}
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
"n_input_tokens": null,
|
| 35 |
+
"n_cache_tokens": null,
|
| 36 |
+
"n_output_tokens": null,
|
| 37 |
+
"cost_usd": null
|
| 38 |
+
}
|
| 39 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/agent/oracle.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Oracle restored Dashboard.jsx + App.jsx from golden.
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/artifacts/agent-app.png
ADDED
|
Git LFS Details
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/artifacts/backend.log
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
* Serving Flask app 'app'
|
| 2 |
+
* Debug mode: on
|
| 3 |
+
[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
| 4 |
+
* Running on http://127.0.0.1:5101
|
| 5 |
+
[33mPress CTRL+C to quit[0m
|
| 6 |
+
* Restarting with stat
|
| 7 |
+
* Debugger is active!
|
| 8 |
+
* Debugger PIN: 128-730-405
|
| 9 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "GET /api/users HTTP/1.1" 200 -
|
| 10 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "[35m[1mPOST /api/users HTTP/1.1[0m" 201 -
|
| 11 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "[35m[1mPOST /api/users HTTP/1.1[0m" 201 -
|
| 12 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "[35m[1mPOST /api/tags HTTP/1.1[0m" 201 -
|
| 13 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "[35m[1mPOST /api/tags HTTP/1.1[0m" 201 -
|
| 14 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "[35m[1mPOST /api/projects HTTP/1.1[0m" 201 -
|
| 15 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "[35m[1mPOST /api/projects HTTP/1.1[0m" 201 -
|
| 16 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "OPTIONS /api/users HTTP/1.1" 200 -
|
| 17 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "OPTIONS /api/projects HTTP/1.1" 200 -
|
| 18 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "OPTIONS /api/tags HTTP/1.1" 200 -
|
| 19 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "OPTIONS /api/users HTTP/1.1" 200 -
|
| 20 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "OPTIONS /api/projects HTTP/1.1" 200 -
|
| 21 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "OPTIONS /api/tags HTTP/1.1" 200 -
|
| 22 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "GET /api/users HTTP/1.1" 200 -
|
| 23 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "GET /api/tags HTTP/1.1" 200 -
|
| 24 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "GET /api/projects HTTP/1.1" 200 -
|
| 25 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "GET /api/projects HTTP/1.1" 200 -
|
| 26 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "GET /api/users HTTP/1.1" 200 -
|
| 27 |
+
127.0.0.1 - - [10/May/2026 08:15:13] "GET /api/tags HTTP/1.1" 200 -
|
| 28 |
+
127.0.0.1 - - [10/May/2026 08:15:15] "OPTIONS /api/tags/1 HTTP/1.1" 200 -
|
| 29 |
+
127.0.0.1 - - [10/May/2026 08:15:15] "DELETE /api/tags/1 HTTP/1.1" 200 -
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/artifacts/frontend.log
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
> taskflow-frontend@0.0.0 dev
|
| 3 |
+
> vite --host 127.0.0.1 --port 5273
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
VITE v8.0.2 ready in 135 ms
|
| 7 |
+
|
| 8 |
+
➜ Local: http://127.0.0.1:5273/
|
| 9 |
+
Killed
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/artifacts/pageerrors.log
ADDED
|
File without changes
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/config.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task": {
|
| 3 |
+
"path": "/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard",
|
| 4 |
+
"git_url": null,
|
| 5 |
+
"git_commit_id": null,
|
| 6 |
+
"name": null,
|
| 7 |
+
"ref": null,
|
| 8 |
+
"overwrite": false,
|
| 9 |
+
"download_dir": null,
|
| 10 |
+
"source": null
|
| 11 |
+
},
|
| 12 |
+
"trial_name": "screenshot41-taskmanager-dashboa__Ar3uDiT",
|
| 13 |
+
"trials_dir": "jobs/2026-05-10__01-14-57",
|
| 14 |
+
"timeout_multiplier": 1.0,
|
| 15 |
+
"agent_timeout_multiplier": null,
|
| 16 |
+
"verifier_timeout_multiplier": null,
|
| 17 |
+
"agent_setup_timeout_multiplier": null,
|
| 18 |
+
"environment_build_timeout_multiplier": null,
|
| 19 |
+
"agent": {
|
| 20 |
+
"name": "oracle",
|
| 21 |
+
"import_path": null,
|
| 22 |
+
"model_name": null,
|
| 23 |
+
"override_timeout_sec": null,
|
| 24 |
+
"override_setup_timeout_sec": null,
|
| 25 |
+
"max_timeout_sec": null,
|
| 26 |
+
"kwargs": {},
|
| 27 |
+
"env": {}
|
| 28 |
+
},
|
| 29 |
+
"environment": {
|
| 30 |
+
"type": "docker",
|
| 31 |
+
"import_path": null,
|
| 32 |
+
"force_build": false,
|
| 33 |
+
"delete": true,
|
| 34 |
+
"override_cpus": null,
|
| 35 |
+
"override_memory_mb": null,
|
| 36 |
+
"override_storage_mb": null,
|
| 37 |
+
"override_gpus": null,
|
| 38 |
+
"suppress_override_warnings": false,
|
| 39 |
+
"mounts_json": null,
|
| 40 |
+
"env": {},
|
| 41 |
+
"kwargs": {}
|
| 42 |
+
},
|
| 43 |
+
"verifier": {
|
| 44 |
+
"override_timeout_sec": null,
|
| 45 |
+
"max_timeout_sec": null,
|
| 46 |
+
"env": {},
|
| 47 |
+
"disable": false
|
| 48 |
+
},
|
| 49 |
+
"artifacts": [],
|
| 50 |
+
"job_id": "a070f9fa-5f61-4ccb-842e-2501f5db26f6"
|
| 51 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/result.json
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "e9521e07-a064-4989-ab80-ddb15d336f32",
|
| 3 |
+
"task_name": "loki/screenshot41-taskmanager-dashboard",
|
| 4 |
+
"trial_name": "screenshot41-taskmanager-dashboa__Ar3uDiT",
|
| 5 |
+
"trial_uri": "file:///Users/eric/Local/loki-visual/apps/task-manager/app-versions/golden/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT",
|
| 6 |
+
"task_id": {
|
| 7 |
+
"path": "/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard"
|
| 8 |
+
},
|
| 9 |
+
"source": null,
|
| 10 |
+
"task_checksum": "43b9bb233d1dfd4e077bf43d84c29c7b5cbfb5783a14997598647d47536833b9",
|
| 11 |
+
"config": {
|
| 12 |
+
"task": {
|
| 13 |
+
"path": "/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard",
|
| 14 |
+
"git_url": null,
|
| 15 |
+
"git_commit_id": null,
|
| 16 |
+
"name": null,
|
| 17 |
+
"ref": null,
|
| 18 |
+
"overwrite": false,
|
| 19 |
+
"download_dir": null,
|
| 20 |
+
"source": null
|
| 21 |
+
},
|
| 22 |
+
"trial_name": "screenshot41-taskmanager-dashboa__Ar3uDiT",
|
| 23 |
+
"trials_dir": "jobs/2026-05-10__01-14-57",
|
| 24 |
+
"timeout_multiplier": 1.0,
|
| 25 |
+
"agent_timeout_multiplier": null,
|
| 26 |
+
"verifier_timeout_multiplier": null,
|
| 27 |
+
"agent_setup_timeout_multiplier": null,
|
| 28 |
+
"environment_build_timeout_multiplier": null,
|
| 29 |
+
"agent": {
|
| 30 |
+
"name": "oracle",
|
| 31 |
+
"import_path": null,
|
| 32 |
+
"model_name": null,
|
| 33 |
+
"override_timeout_sec": null,
|
| 34 |
+
"override_setup_timeout_sec": null,
|
| 35 |
+
"max_timeout_sec": null,
|
| 36 |
+
"kwargs": {},
|
| 37 |
+
"env": {}
|
| 38 |
+
},
|
| 39 |
+
"environment": {
|
| 40 |
+
"type": "docker",
|
| 41 |
+
"import_path": null,
|
| 42 |
+
"force_build": false,
|
| 43 |
+
"delete": true,
|
| 44 |
+
"override_cpus": null,
|
| 45 |
+
"override_memory_mb": null,
|
| 46 |
+
"override_storage_mb": null,
|
| 47 |
+
"override_gpus": null,
|
| 48 |
+
"suppress_override_warnings": false,
|
| 49 |
+
"mounts_json": null,
|
| 50 |
+
"env": {},
|
| 51 |
+
"kwargs": {}
|
| 52 |
+
},
|
| 53 |
+
"verifier": {
|
| 54 |
+
"override_timeout_sec": null,
|
| 55 |
+
"max_timeout_sec": null,
|
| 56 |
+
"env": {},
|
| 57 |
+
"disable": false
|
| 58 |
+
},
|
| 59 |
+
"artifacts": [],
|
| 60 |
+
"job_id": "a070f9fa-5f61-4ccb-842e-2501f5db26f6"
|
| 61 |
+
},
|
| 62 |
+
"agent_info": {
|
| 63 |
+
"name": "oracle",
|
| 64 |
+
"version": "1.0.0",
|
| 65 |
+
"model_info": null
|
| 66 |
+
},
|
| 67 |
+
"agent_result": {
|
| 68 |
+
"n_input_tokens": null,
|
| 69 |
+
"n_cache_tokens": null,
|
| 70 |
+
"n_output_tokens": null,
|
| 71 |
+
"cost_usd": null,
|
| 72 |
+
"rollout_details": null,
|
| 73 |
+
"metadata": null
|
| 74 |
+
},
|
| 75 |
+
"verifier_result": {
|
| 76 |
+
"rewards": {
|
| 77 |
+
"reward": 0.0
|
| 78 |
+
}
|
| 79 |
+
},
|
| 80 |
+
"exception_info": null,
|
| 81 |
+
"started_at": "2026-05-10T08:14:59.254012Z",
|
| 82 |
+
"finished_at": "2026-05-10T08:15:22.170076Z",
|
| 83 |
+
"environment_setup": {
|
| 84 |
+
"started_at": "2026-05-10T08:14:59.279578Z",
|
| 85 |
+
"finished_at": "2026-05-10T08:15:11.292753Z"
|
| 86 |
+
},
|
| 87 |
+
"agent_setup": {
|
| 88 |
+
"started_at": "2026-05-10T08:15:11.292896Z",
|
| 89 |
+
"finished_at": "2026-05-10T08:15:11.292983Z"
|
| 90 |
+
},
|
| 91 |
+
"agent_execution": {
|
| 92 |
+
"started_at": "2026-05-10T08:15:11.293108Z",
|
| 93 |
+
"finished_at": "2026-05-10T08:15:11.553318Z"
|
| 94 |
+
},
|
| 95 |
+
"verifier": {
|
| 96 |
+
"started_at": "2026-05-10T08:15:11.643048Z",
|
| 97 |
+
"finished_at": "2026-05-10T08:15:20.494891Z"
|
| 98 |
+
},
|
| 99 |
+
"step_results": null
|
| 100 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/trial.log
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Skipping image OS validation for hb__loki-screenshot41-taskmanager-dashboard: docker inspect returned 1
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/verifier/ctrf.json
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"results": {
|
| 3 |
+
"tool": {
|
| 4 |
+
"name": "pytest",
|
| 5 |
+
"version": "8.4.1"
|
| 6 |
+
},
|
| 7 |
+
"summary": {
|
| 8 |
+
"tests": 12,
|
| 9 |
+
"passed": 11,
|
| 10 |
+
"failed": 1,
|
| 11 |
+
"skipped": 0,
|
| 12 |
+
"pending": 0,
|
| 13 |
+
"other": 0,
|
| 14 |
+
"start": 1778400913.2177572,
|
| 15 |
+
"stop": 1778400920.4020169
|
| 16 |
+
},
|
| 17 |
+
"tests": [
|
| 18 |
+
{
|
| 19 |
+
"name": "test_dashboard.py::test_no_page_errors",
|
| 20 |
+
"status": "passed",
|
| 21 |
+
"duration": 0.0005417919892352074,
|
| 22 |
+
"start": 1778400913.3040528,
|
| 23 |
+
"stop": 1778400913.3047423,
|
| 24 |
+
"retries": 0,
|
| 25 |
+
"file_path": "test_dashboard.py"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"name": "test_dashboard.py::test_h1_dashboard",
|
| 29 |
+
"status": "passed",
|
| 30 |
+
"duration": 2.4916705419745995,
|
| 31 |
+
"start": 1778400913.3048213,
|
| 32 |
+
"stop": 1778400915.7967198,
|
| 33 |
+
"retries": 0,
|
| 34 |
+
"file_path": "test_dashboard.py"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "test_dashboard.py::test_new_project_link",
|
| 38 |
+
"status": "passed",
|
| 39 |
+
"duration": 0.005498583006556146,
|
| 40 |
+
"start": 1778400915.7968616,
|
| 41 |
+
"stop": 1778400915.8025553,
|
| 42 |
+
"retries": 0,
|
| 43 |
+
"file_path": "test_dashboard.py"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"name": "test_dashboard.py::test_projects_render",
|
| 47 |
+
"status": "passed",
|
| 48 |
+
"duration": 0.0037923759955447167,
|
| 49 |
+
"start": 1778400915.8026788,
|
| 50 |
+
"stop": 1778400915.8066359,
|
| 51 |
+
"retries": 0,
|
| 52 |
+
"file_path": "test_dashboard.py"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"name": "test_dashboard.py::test_users_render",
|
| 56 |
+
"status": "passed",
|
| 57 |
+
"duration": 0.0020640829898184165,
|
| 58 |
+
"start": 1778400915.8067505,
|
| 59 |
+
"stop": 1778400915.808945,
|
| 60 |
+
"retries": 0,
|
| 61 |
+
"file_path": "test_dashboard.py"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"name": "test_dashboard.py::test_tags_render",
|
| 65 |
+
"status": "passed",
|
| 66 |
+
"duration": 0.0019922079954994842,
|
| 67 |
+
"start": 1778400915.8090384,
|
| 68 |
+
"stop": 1778400915.8111653,
|
| 69 |
+
"retries": 0,
|
| 70 |
+
"file_path": "test_dashboard.py"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"name": "test_dashboard.py::test_users_count_badge",
|
| 74 |
+
"status": "passed",
|
| 75 |
+
"duration": 0.002058583006146364,
|
| 76 |
+
"start": 1778400915.8112621,
|
| 77 |
+
"stop": 1778400915.8134449,
|
| 78 |
+
"retries": 0,
|
| 79 |
+
"file_path": "test_dashboard.py"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"name": "test_dashboard.py::test_tags_count_badge",
|
| 83 |
+
"status": "passed",
|
| 84 |
+
"duration": 0.0021572910045506433,
|
| 85 |
+
"start": 1778400915.8135383,
|
| 86 |
+
"stop": 1778400915.8158133,
|
| 87 |
+
"retries": 0,
|
| 88 |
+
"file_path": "test_dashboard.py"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name": "test_dashboard.py::test_add_user_form_fields",
|
| 92 |
+
"status": "passed",
|
| 93 |
+
"duration": 0.0033200409961864352,
|
| 94 |
+
"start": 1778400915.8159025,
|
| 95 |
+
"stop": 1778400915.819342,
|
| 96 |
+
"retries": 0,
|
| 97 |
+
"file_path": "test_dashboard.py"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"name": "test_dashboard.py::test_add_tag_form_color_picker",
|
| 101 |
+
"status": "passed",
|
| 102 |
+
"duration": 0.0016644590214127675,
|
| 103 |
+
"start": 1778400915.8194387,
|
| 104 |
+
"stop": 1778400915.8212214,
|
| 105 |
+
"retries": 0,
|
| 106 |
+
"file_path": "test_dashboard.py"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"name": "test_dashboard.py::test_delete_tag_sends_delete_and_removes",
|
| 110 |
+
"status": "passed",
|
| 111 |
+
"duration": 1.5559643750020768,
|
| 112 |
+
"start": 1778400915.821312,
|
| 113 |
+
"stop": 1778400917.3778205,
|
| 114 |
+
"retries": 0,
|
| 115 |
+
"file_path": "test_dashboard.py"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"name": "test_dashboard.py::test_add_user_posts_and_count_updates",
|
| 119 |
+
"status": "failed",
|
| 120 |
+
"raw_status": "call_failed",
|
| 121 |
+
"duration": 3.0183813349867705,
|
| 122 |
+
"start": 1778400917.378078,
|
| 123 |
+
"stop": 1778400920.40166,
|
| 124 |
+
"retries": 0,
|
| 125 |
+
"file_path": "test_dashboard.py",
|
| 126 |
+
"trace": "page = <Page url='http://127.0.0.1:5273/'>\n\n def test_add_user_posts_and_count_updates(page):\n \"\"\"Fill Add User name+email, submit \u2192 POST /api/users AND 'Users (3)' appears.\"\"\"\n captured = []\n \n def on_request(req):\n if req.method == \"POST\" and req.url.endswith(\"/api/users\"):\n captured.append(req.post_data or \"\")\n \n page.on(\"request\", on_request)\n # Fill the first text input (Name) and the email input (Email).\n name_in = page.locator('input[type=\"text\"]').first\n email_in = page.locator('input[type=\"email\"]').first\n name_in.click(timeout=5_000)\n name_in.press_sequentially(\"Carol\", delay=20, timeout=5_000)\n email_in.click(timeout=5_000)\n email_in.press_sequentially(\"carol@example.com\", delay=20, timeout=5_000)\n page.wait_for_timeout(200)\n # Submit by clicking the Add User button (label match) \u2014 fall back to\n # pressing Enter in the email input.\n add_btn = [\n b for b in page.get_by_role(\"button\").all()\n if (b.inner_text() or \"\").strip().lower() == \"add user\"\n ]\n if add_btn:\n add_btn[0].click(timeout=5_000)\n else:\n email_in.press(\"Enter\", timeout=5_000)\n page.wait_for_timeout(2000)\n> assert captured, \"no POST to /api/users observed after Add User submit\"\nE AssertionError: no POST to /api/users observed after Add User submit\nE assert []\n\n/tests/test_dashboard.py:185: AssertionError",
|
| 127 |
+
"message": "The test failed in the call phase due to an assertion error"
|
| 128 |
+
}
|
| 129 |
+
]
|
| 130 |
+
}
|
| 131 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/verifier/reward.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
0
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-14-57/screenshot41-taskmanager-dashboa__Ar3uDiT/verifier/test-stdout.txt
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[test.sh] starting backend (Flask :5101)...
|
| 2 |
+
[test.sh] starting frontend (Vite :5273)...
|
| 3 |
+
[test.sh] backend up after 2s
|
| 4 |
+
[test.sh] frontend up after 1s
|
| 5 |
+
[test.sh] seeding...
|
| 6 |
+
[seed] alice=1 bob=2 urgent=1 backend=2 apollo=1 mercury=2
|
| 7 |
+
[test.sh] running pytest...
|
| 8 |
+
============================= test session starts ==============================
|
| 9 |
+
platform linux -- Python 3.11.2, pytest-8.4.1, pluggy-1.6.0
|
| 10 |
+
rootdir: /tests
|
| 11 |
+
plugins: json-ctrf-0.3.5
|
| 12 |
+
collected 12 items
|
| 13 |
+
|
| 14 |
+
../tests/test_dashboard.py ...........F [100%]
|
| 15 |
+
|
| 16 |
+
=================================== FAILURES ===================================
|
| 17 |
+
____________________ test_add_user_posts_and_count_updates _____________________
|
| 18 |
+
|
| 19 |
+
page = <Page url='http://127.0.0.1:5273/'>
|
| 20 |
+
|
| 21 |
+
def test_add_user_posts_and_count_updates(page):
|
| 22 |
+
"""Fill Add User name+email, submit → POST /api/users AND 'Users (3)' appears."""
|
| 23 |
+
captured = []
|
| 24 |
+
|
| 25 |
+
def on_request(req):
|
| 26 |
+
if req.method == "POST" and req.url.endswith("/api/users"):
|
| 27 |
+
captured.append(req.post_data or "")
|
| 28 |
+
|
| 29 |
+
page.on("request", on_request)
|
| 30 |
+
# Fill the first text input (Name) and the email input (Email).
|
| 31 |
+
name_in = page.locator('input[type="text"]').first
|
| 32 |
+
email_in = page.locator('input[type="email"]').first
|
| 33 |
+
name_in.click(timeout=5_000)
|
| 34 |
+
name_in.press_sequentially("Carol", delay=20, timeout=5_000)
|
| 35 |
+
email_in.click(timeout=5_000)
|
| 36 |
+
email_in.press_sequentially("carol@example.com", delay=20, timeout=5_000)
|
| 37 |
+
page.wait_for_timeout(200)
|
| 38 |
+
# Submit by clicking the Add User button (label match) — fall back to
|
| 39 |
+
# pressing Enter in the email input.
|
| 40 |
+
add_btn = [
|
| 41 |
+
b for b in page.get_by_role("button").all()
|
| 42 |
+
if (b.inner_text() or "").strip().lower() == "add user"
|
| 43 |
+
]
|
| 44 |
+
if add_btn:
|
| 45 |
+
add_btn[0].click(timeout=5_000)
|
| 46 |
+
else:
|
| 47 |
+
email_in.press("Enter", timeout=5_000)
|
| 48 |
+
page.wait_for_timeout(2000)
|
| 49 |
+
> assert captured, "no POST to /api/users observed after Add User submit"
|
| 50 |
+
E AssertionError: no POST to /api/users observed after Add User submit
|
| 51 |
+
E assert []
|
| 52 |
+
|
| 53 |
+
/tests/test_dashboard.py:185: AssertionError
|
| 54 |
+
==================================== PASSES ====================================
|
| 55 |
+
=========================== short test summary info ============================
|
| 56 |
+
PASSED ../tests/test_dashboard.py::test_no_page_errors
|
| 57 |
+
PASSED ../tests/test_dashboard.py::test_h1_dashboard
|
| 58 |
+
PASSED ../tests/test_dashboard.py::test_new_project_link
|
| 59 |
+
PASSED ../tests/test_dashboard.py::test_projects_render
|
| 60 |
+
PASSED ../tests/test_dashboard.py::test_users_render
|
| 61 |
+
PASSED ../tests/test_dashboard.py::test_tags_render
|
| 62 |
+
PASSED ../tests/test_dashboard.py::test_users_count_badge
|
| 63 |
+
PASSED ../tests/test_dashboard.py::test_tags_count_badge
|
| 64 |
+
PASSED ../tests/test_dashboard.py::test_add_user_form_fields
|
| 65 |
+
PASSED ../tests/test_dashboard.py::test_add_tag_form_color_picker
|
| 66 |
+
PASSED ../tests/test_dashboard.py::test_delete_tag_sends_delete_and_removes
|
| 67 |
+
FAILED ../tests/test_dashboard.py::test_add_user_posts_and_count_updates - As...
|
| 68 |
+
========================= 1 failed, 11 passed in 7.19s =========================
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/config.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"job_name": "2026-05-10__01-15-46",
|
| 3 |
+
"jobs_dir": "jobs",
|
| 4 |
+
"n_attempts": 1,
|
| 5 |
+
"timeout_multiplier": 1.0,
|
| 6 |
+
"agent_timeout_multiplier": null,
|
| 7 |
+
"verifier_timeout_multiplier": null,
|
| 8 |
+
"agent_setup_timeout_multiplier": null,
|
| 9 |
+
"environment_build_timeout_multiplier": null,
|
| 10 |
+
"debug": false,
|
| 11 |
+
"n_concurrent_trials": 4,
|
| 12 |
+
"quiet": true,
|
| 13 |
+
"retry": {
|
| 14 |
+
"max_retries": 0,
|
| 15 |
+
"include_exceptions": null,
|
| 16 |
+
"exclude_exceptions": [
|
| 17 |
+
"VerifierTimeoutError",
|
| 18 |
+
"AgentTimeoutError",
|
| 19 |
+
"VerifierOutputParseError",
|
| 20 |
+
"RewardFileEmptyError",
|
| 21 |
+
"RewardFileNotFoundError"
|
| 22 |
+
],
|
| 23 |
+
"wait_multiplier": 1.0,
|
| 24 |
+
"min_wait_sec": 1.0,
|
| 25 |
+
"max_wait_sec": 60.0
|
| 26 |
+
},
|
| 27 |
+
"environment": {
|
| 28 |
+
"type": "docker",
|
| 29 |
+
"import_path": null,
|
| 30 |
+
"force_build": false,
|
| 31 |
+
"delete": true,
|
| 32 |
+
"override_cpus": null,
|
| 33 |
+
"override_memory_mb": null,
|
| 34 |
+
"override_storage_mb": null,
|
| 35 |
+
"override_gpus": null,
|
| 36 |
+
"suppress_override_warnings": false,
|
| 37 |
+
"mounts_json": null,
|
| 38 |
+
"env": {},
|
| 39 |
+
"kwargs": {}
|
| 40 |
+
},
|
| 41 |
+
"verifier": {
|
| 42 |
+
"override_timeout_sec": null,
|
| 43 |
+
"max_timeout_sec": null,
|
| 44 |
+
"env": {},
|
| 45 |
+
"disable": false
|
| 46 |
+
},
|
| 47 |
+
"metrics": [],
|
| 48 |
+
"agents": [
|
| 49 |
+
{
|
| 50 |
+
"name": "oracle",
|
| 51 |
+
"import_path": null,
|
| 52 |
+
"model_name": null,
|
| 53 |
+
"override_timeout_sec": null,
|
| 54 |
+
"override_setup_timeout_sec": null,
|
| 55 |
+
"max_timeout_sec": null,
|
| 56 |
+
"kwargs": {},
|
| 57 |
+
"env": {}
|
| 58 |
+
}
|
| 59 |
+
],
|
| 60 |
+
"datasets": [],
|
| 61 |
+
"tasks": [
|
| 62 |
+
{
|
| 63 |
+
"path": "/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard",
|
| 64 |
+
"git_url": null,
|
| 65 |
+
"git_commit_id": null,
|
| 66 |
+
"name": null,
|
| 67 |
+
"ref": null,
|
| 68 |
+
"overwrite": false,
|
| 69 |
+
"download_dir": null,
|
| 70 |
+
"source": null
|
| 71 |
+
}
|
| 72 |
+
],
|
| 73 |
+
"artifacts": []
|
| 74 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/job.log
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Skipping image OS validation for hb__loki-screenshot41-taskmanager-dashboard: docker inspect returned 1
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/lock.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"created_at": "2026-05-10T08:15:46.157139Z",
|
| 4 |
+
"harbor": {
|
| 5 |
+
"version": "0.6.6",
|
| 6 |
+
"is_editable": false
|
| 7 |
+
},
|
| 8 |
+
"invocation": [
|
| 9 |
+
"/Users/eric/Local/harbor-spike/.venv/bin/harbor",
|
| 10 |
+
"run",
|
| 11 |
+
"-p",
|
| 12 |
+
"/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard",
|
| 13 |
+
"-a",
|
| 14 |
+
"oracle",
|
| 15 |
+
"-y",
|
| 16 |
+
"-q"
|
| 17 |
+
],
|
| 18 |
+
"n_concurrent_trials": 4,
|
| 19 |
+
"retry": {
|
| 20 |
+
"max_retries": 0,
|
| 21 |
+
"exclude_exceptions": [
|
| 22 |
+
"VerifierTimeoutError",
|
| 23 |
+
"AgentTimeoutError",
|
| 24 |
+
"VerifierOutputParseError",
|
| 25 |
+
"RewardFileEmptyError",
|
| 26 |
+
"RewardFileNotFoundError"
|
| 27 |
+
],
|
| 28 |
+
"wait_multiplier": 1.0,
|
| 29 |
+
"min_wait_sec": 1.0,
|
| 30 |
+
"max_wait_sec": 60.0
|
| 31 |
+
},
|
| 32 |
+
"trials": [
|
| 33 |
+
{
|
| 34 |
+
"task": {
|
| 35 |
+
"name": "screenshot41-taskmanager-dashboard",
|
| 36 |
+
"type": "local",
|
| 37 |
+
"digest": "sha256:90ed3a99e52df38b4a0ffa2eaad2ae5b0e79b390e94f8fe0c47b2bf5313882a5",
|
| 38 |
+
"path": "/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard"
|
| 39 |
+
},
|
| 40 |
+
"timeout_multiplier": 1.0,
|
| 41 |
+
"agent": {
|
| 42 |
+
"name": "oracle",
|
| 43 |
+
"kwargs": {},
|
| 44 |
+
"env": {}
|
| 45 |
+
},
|
| 46 |
+
"environment": {
|
| 47 |
+
"type": "docker",
|
| 48 |
+
"force_build": false,
|
| 49 |
+
"delete": true,
|
| 50 |
+
"suppress_override_warnings": false,
|
| 51 |
+
"env": {},
|
| 52 |
+
"kwargs": {}
|
| 53 |
+
},
|
| 54 |
+
"verifier": {
|
| 55 |
+
"env": {},
|
| 56 |
+
"disable": false
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
]
|
| 60 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/result.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "2d7ebb37-3f39-4fff-94f2-01154bd9bbae",
|
| 3 |
+
"started_at": "2026-05-10T01:15:46.151378",
|
| 4 |
+
"updated_at": "2026-05-10T01:16:04.381441",
|
| 5 |
+
"finished_at": "2026-05-10T01:16:04.381441",
|
| 6 |
+
"n_total_trials": 1,
|
| 7 |
+
"stats": {
|
| 8 |
+
"n_completed_trials": 1,
|
| 9 |
+
"n_errored_trials": 0,
|
| 10 |
+
"n_running_trials": 0,
|
| 11 |
+
"n_pending_trials": 0,
|
| 12 |
+
"n_cancelled_trials": 0,
|
| 13 |
+
"n_retries": 0,
|
| 14 |
+
"evals": {
|
| 15 |
+
"oracle__adhoc": {
|
| 16 |
+
"n_trials": 1,
|
| 17 |
+
"n_errors": 0,
|
| 18 |
+
"metrics": [
|
| 19 |
+
{
|
| 20 |
+
"mean": 1.0
|
| 21 |
+
}
|
| 22 |
+
],
|
| 23 |
+
"pass_at_k": {},
|
| 24 |
+
"reward_stats": {
|
| 25 |
+
"reward": {
|
| 26 |
+
"1.0": [
|
| 27 |
+
"screenshot41-taskmanager-dashboa__YTwjCn7"
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
},
|
| 31 |
+
"exception_stats": {}
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
"n_input_tokens": null,
|
| 35 |
+
"n_cache_tokens": null,
|
| 36 |
+
"n_output_tokens": null,
|
| 37 |
+
"cost_usd": null
|
| 38 |
+
}
|
| 39 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/agent/oracle.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Oracle restored Dashboard.jsx + App.jsx from golden.
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/artifacts/agent-app.png
ADDED
|
Git LFS Details
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/artifacts/backend.log
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
* Serving Flask app 'app'
|
| 2 |
+
* Debug mode: on
|
| 3 |
+
[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
| 4 |
+
* Running on http://127.0.0.1:5101
|
| 5 |
+
[33mPress CTRL+C to quit[0m
|
| 6 |
+
* Restarting with stat
|
| 7 |
+
* Debugger is active!
|
| 8 |
+
* Debugger PIN: 148-398-425
|
| 9 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "GET /api/users HTTP/1.1" 200 -
|
| 10 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "[35m[1mPOST /api/users HTTP/1.1[0m" 201 -
|
| 11 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "[35m[1mPOST /api/users HTTP/1.1[0m" 201 -
|
| 12 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "[35m[1mPOST /api/tags HTTP/1.1[0m" 201 -
|
| 13 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "[35m[1mPOST /api/tags HTTP/1.1[0m" 201 -
|
| 14 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "[35m[1mPOST /api/projects HTTP/1.1[0m" 201 -
|
| 15 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "[35m[1mPOST /api/projects HTTP/1.1[0m" 201 -
|
| 16 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "OPTIONS /api/users HTTP/1.1" 200 -
|
| 17 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "OPTIONS /api/projects HTTP/1.1" 200 -
|
| 18 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "OPTIONS /api/tags HTTP/1.1" 200 -
|
| 19 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "OPTIONS /api/users HTTP/1.1" 200 -
|
| 20 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "OPTIONS /api/projects HTTP/1.1" 200 -
|
| 21 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "OPTIONS /api/tags HTTP/1.1" 200 -
|
| 22 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "GET /api/tags HTTP/1.1" 200 -
|
| 23 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "GET /api/users HTTP/1.1" 200 -
|
| 24 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "GET /api/projects HTTP/1.1" 200 -
|
| 25 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "GET /api/tags HTTP/1.1" 200 -
|
| 26 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "GET /api/users HTTP/1.1" 200 -
|
| 27 |
+
127.0.0.1 - - [10/May/2026 08:15:55] "GET /api/projects HTTP/1.1" 200 -
|
| 28 |
+
127.0.0.1 - - [10/May/2026 08:15:57] "OPTIONS /api/tags/1 HTTP/1.1" 200 -
|
| 29 |
+
127.0.0.1 - - [10/May/2026 08:15:57] "DELETE /api/tags/1 HTTP/1.1" 200 -
|
| 30 |
+
127.0.0.1 - - [10/May/2026 08:16:00] "[35m[1mPOST /api/users HTTP/1.1[0m" 201 -
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/artifacts/frontend.log
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
> taskflow-frontend@0.0.0 dev
|
| 3 |
+
> vite --host 127.0.0.1 --port 5273
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
VITE v8.0.2 ready in 153 ms
|
| 7 |
+
|
| 8 |
+
➜ Local: http://127.0.0.1:5273/
|
| 9 |
+
Killed
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/artifacts/pageerrors.log
ADDED
|
File without changes
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/config.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"task": {
|
| 3 |
+
"path": "/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard",
|
| 4 |
+
"git_url": null,
|
| 5 |
+
"git_commit_id": null,
|
| 6 |
+
"name": null,
|
| 7 |
+
"ref": null,
|
| 8 |
+
"overwrite": false,
|
| 9 |
+
"download_dir": null,
|
| 10 |
+
"source": null
|
| 11 |
+
},
|
| 12 |
+
"trial_name": "screenshot41-taskmanager-dashboa__YTwjCn7",
|
| 13 |
+
"trials_dir": "jobs/2026-05-10__01-15-46",
|
| 14 |
+
"timeout_multiplier": 1.0,
|
| 15 |
+
"agent_timeout_multiplier": null,
|
| 16 |
+
"verifier_timeout_multiplier": null,
|
| 17 |
+
"agent_setup_timeout_multiplier": null,
|
| 18 |
+
"environment_build_timeout_multiplier": null,
|
| 19 |
+
"agent": {
|
| 20 |
+
"name": "oracle",
|
| 21 |
+
"import_path": null,
|
| 22 |
+
"model_name": null,
|
| 23 |
+
"override_timeout_sec": null,
|
| 24 |
+
"override_setup_timeout_sec": null,
|
| 25 |
+
"max_timeout_sec": null,
|
| 26 |
+
"kwargs": {},
|
| 27 |
+
"env": {}
|
| 28 |
+
},
|
| 29 |
+
"environment": {
|
| 30 |
+
"type": "docker",
|
| 31 |
+
"import_path": null,
|
| 32 |
+
"force_build": false,
|
| 33 |
+
"delete": true,
|
| 34 |
+
"override_cpus": null,
|
| 35 |
+
"override_memory_mb": null,
|
| 36 |
+
"override_storage_mb": null,
|
| 37 |
+
"override_gpus": null,
|
| 38 |
+
"suppress_override_warnings": false,
|
| 39 |
+
"mounts_json": null,
|
| 40 |
+
"env": {},
|
| 41 |
+
"kwargs": {}
|
| 42 |
+
},
|
| 43 |
+
"verifier": {
|
| 44 |
+
"override_timeout_sec": null,
|
| 45 |
+
"max_timeout_sec": null,
|
| 46 |
+
"env": {},
|
| 47 |
+
"disable": false
|
| 48 |
+
},
|
| 49 |
+
"artifacts": [],
|
| 50 |
+
"job_id": "2d7ebb37-3f39-4fff-94f2-01154bd9bbae"
|
| 51 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/result.json
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "e8049459-3fc5-4d12-add4-b9d4ea48e740",
|
| 3 |
+
"task_name": "loki/screenshot41-taskmanager-dashboard",
|
| 4 |
+
"trial_name": "screenshot41-taskmanager-dashboa__YTwjCn7",
|
| 5 |
+
"trial_uri": "file:///Users/eric/Local/loki-visual/apps/task-manager/app-versions/golden/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7",
|
| 6 |
+
"task_id": {
|
| 7 |
+
"path": "/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard"
|
| 8 |
+
},
|
| 9 |
+
"source": null,
|
| 10 |
+
"task_checksum": "e2b6979334e929aec8c92606396e8f4d2643ddcbc07973e725a2c322f2213977",
|
| 11 |
+
"config": {
|
| 12 |
+
"task": {
|
| 13 |
+
"path": "/Users/eric/Local/loki-visual/fullstackbench/iterations/screenshot41-taskmanager-dashboard",
|
| 14 |
+
"git_url": null,
|
| 15 |
+
"git_commit_id": null,
|
| 16 |
+
"name": null,
|
| 17 |
+
"ref": null,
|
| 18 |
+
"overwrite": false,
|
| 19 |
+
"download_dir": null,
|
| 20 |
+
"source": null
|
| 21 |
+
},
|
| 22 |
+
"trial_name": "screenshot41-taskmanager-dashboa__YTwjCn7",
|
| 23 |
+
"trials_dir": "jobs/2026-05-10__01-15-46",
|
| 24 |
+
"timeout_multiplier": 1.0,
|
| 25 |
+
"agent_timeout_multiplier": null,
|
| 26 |
+
"verifier_timeout_multiplier": null,
|
| 27 |
+
"agent_setup_timeout_multiplier": null,
|
| 28 |
+
"environment_build_timeout_multiplier": null,
|
| 29 |
+
"agent": {
|
| 30 |
+
"name": "oracle",
|
| 31 |
+
"import_path": null,
|
| 32 |
+
"model_name": null,
|
| 33 |
+
"override_timeout_sec": null,
|
| 34 |
+
"override_setup_timeout_sec": null,
|
| 35 |
+
"max_timeout_sec": null,
|
| 36 |
+
"kwargs": {},
|
| 37 |
+
"env": {}
|
| 38 |
+
},
|
| 39 |
+
"environment": {
|
| 40 |
+
"type": "docker",
|
| 41 |
+
"import_path": null,
|
| 42 |
+
"force_build": false,
|
| 43 |
+
"delete": true,
|
| 44 |
+
"override_cpus": null,
|
| 45 |
+
"override_memory_mb": null,
|
| 46 |
+
"override_storage_mb": null,
|
| 47 |
+
"override_gpus": null,
|
| 48 |
+
"suppress_override_warnings": false,
|
| 49 |
+
"mounts_json": null,
|
| 50 |
+
"env": {},
|
| 51 |
+
"kwargs": {}
|
| 52 |
+
},
|
| 53 |
+
"verifier": {
|
| 54 |
+
"override_timeout_sec": null,
|
| 55 |
+
"max_timeout_sec": null,
|
| 56 |
+
"env": {},
|
| 57 |
+
"disable": false
|
| 58 |
+
},
|
| 59 |
+
"artifacts": [],
|
| 60 |
+
"job_id": "2d7ebb37-3f39-4fff-94f2-01154bd9bbae"
|
| 61 |
+
},
|
| 62 |
+
"agent_info": {
|
| 63 |
+
"name": "oracle",
|
| 64 |
+
"version": "1.0.0",
|
| 65 |
+
"model_info": null
|
| 66 |
+
},
|
| 67 |
+
"agent_result": {
|
| 68 |
+
"n_input_tokens": null,
|
| 69 |
+
"n_cache_tokens": null,
|
| 70 |
+
"n_output_tokens": null,
|
| 71 |
+
"cost_usd": null,
|
| 72 |
+
"rollout_details": null,
|
| 73 |
+
"metadata": null
|
| 74 |
+
},
|
| 75 |
+
"verifier_result": {
|
| 76 |
+
"rewards": {
|
| 77 |
+
"reward": 1.0
|
| 78 |
+
}
|
| 79 |
+
},
|
| 80 |
+
"exception_info": null,
|
| 81 |
+
"started_at": "2026-05-10T08:15:47.017651Z",
|
| 82 |
+
"finished_at": "2026-05-10T08:16:04.377408Z",
|
| 83 |
+
"environment_setup": {
|
| 84 |
+
"started_at": "2026-05-10T08:15:47.039579Z",
|
| 85 |
+
"finished_at": "2026-05-10T08:15:53.563533Z"
|
| 86 |
+
},
|
| 87 |
+
"agent_setup": {
|
| 88 |
+
"started_at": "2026-05-10T08:15:53.563593Z",
|
| 89 |
+
"finished_at": "2026-05-10T08:15:53.563651Z"
|
| 90 |
+
},
|
| 91 |
+
"agent_execution": {
|
| 92 |
+
"started_at": "2026-05-10T08:15:53.563714Z",
|
| 93 |
+
"finished_at": "2026-05-10T08:15:53.793884Z"
|
| 94 |
+
},
|
| 95 |
+
"verifier": {
|
| 96 |
+
"started_at": "2026-05-10T08:15:53.888593Z",
|
| 97 |
+
"finished_at": "2026-05-10T08:16:02.605168Z"
|
| 98 |
+
},
|
| 99 |
+
"step_results": null
|
| 100 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/trial.log
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Skipping image OS validation for hb__loki-screenshot41-taskmanager-dashboard: docker inspect returned 1
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/verifier/ctrf.json
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"results": {
|
| 3 |
+
"tool": {
|
| 4 |
+
"name": "pytest",
|
| 5 |
+
"version": "8.4.1"
|
| 6 |
+
},
|
| 7 |
+
"summary": {
|
| 8 |
+
"tests": 12,
|
| 9 |
+
"passed": 12,
|
| 10 |
+
"failed": 0,
|
| 11 |
+
"skipped": 0,
|
| 12 |
+
"pending": 0,
|
| 13 |
+
"other": 0,
|
| 14 |
+
"start": 1778400955.3626661,
|
| 15 |
+
"stop": 1778400962.5142746
|
| 16 |
+
},
|
| 17 |
+
"tests": [
|
| 18 |
+
{
|
| 19 |
+
"name": "test_dashboard.py::test_no_page_errors",
|
| 20 |
+
"status": "passed",
|
| 21 |
+
"duration": 0.0008142089936882257,
|
| 22 |
+
"start": 1778400955.437652,
|
| 23 |
+
"stop": 1778400955.4386578,
|
| 24 |
+
"retries": 0,
|
| 25 |
+
"file_path": "test_dashboard.py"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"name": "test_dashboard.py::test_h1_dashboard",
|
| 29 |
+
"status": "passed",
|
| 30 |
+
"duration": 2.475125290991855,
|
| 31 |
+
"start": 1778400955.4387896,
|
| 32 |
+
"stop": 1778400957.9154913,
|
| 33 |
+
"retries": 0,
|
| 34 |
+
"file_path": "test_dashboard.py"
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"name": "test_dashboard.py::test_new_project_link",
|
| 38 |
+
"status": "passed",
|
| 39 |
+
"duration": 0.003816083015408367,
|
| 40 |
+
"start": 1778400957.9156103,
|
| 41 |
+
"stop": 1778400957.9196064,
|
| 42 |
+
"retries": 0,
|
| 43 |
+
"file_path": "test_dashboard.py"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"name": "test_dashboard.py::test_projects_render",
|
| 47 |
+
"status": "passed",
|
| 48 |
+
"duration": 0.0037884999910602346,
|
| 49 |
+
"start": 1778400957.9196997,
|
| 50 |
+
"stop": 1778400957.9236557,
|
| 51 |
+
"retries": 0,
|
| 52 |
+
"file_path": "test_dashboard.py"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"name": "test_dashboard.py::test_users_render",
|
| 56 |
+
"status": "passed",
|
| 57 |
+
"duration": 0.001951832979102619,
|
| 58 |
+
"start": 1778400957.9237447,
|
| 59 |
+
"stop": 1778400957.9258308,
|
| 60 |
+
"retries": 0,
|
| 61 |
+
"file_path": "test_dashboard.py"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"name": "test_dashboard.py::test_tags_render",
|
| 65 |
+
"status": "passed",
|
| 66 |
+
"duration": 0.0020082489791093394,
|
| 67 |
+
"start": 1778400957.9259186,
|
| 68 |
+
"stop": 1778400957.9280663,
|
| 69 |
+
"retries": 0,
|
| 70 |
+
"file_path": "test_dashboard.py"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"name": "test_dashboard.py::test_users_count_badge",
|
| 74 |
+
"status": "passed",
|
| 75 |
+
"duration": 0.0019477079913485795,
|
| 76 |
+
"start": 1778400957.9281824,
|
| 77 |
+
"stop": 1778400957.930248,
|
| 78 |
+
"retries": 0,
|
| 79 |
+
"file_path": "test_dashboard.py"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"name": "test_dashboard.py::test_tags_count_badge",
|
| 83 |
+
"status": "passed",
|
| 84 |
+
"duration": 0.00186995898548048,
|
| 85 |
+
"start": 1778400957.9303293,
|
| 86 |
+
"stop": 1778400957.9323277,
|
| 87 |
+
"retries": 0,
|
| 88 |
+
"file_path": "test_dashboard.py"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"name": "test_dashboard.py::test_add_user_form_fields",
|
| 92 |
+
"status": "passed",
|
| 93 |
+
"duration": 0.0029525840072892606,
|
| 94 |
+
"start": 1778400957.9324,
|
| 95 |
+
"stop": 1778400957.9354763,
|
| 96 |
+
"retries": 0,
|
| 97 |
+
"file_path": "test_dashboard.py"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"name": "test_dashboard.py::test_add_tag_form_color_picker",
|
| 101 |
+
"status": "passed",
|
| 102 |
+
"duration": 0.0016284579905914143,
|
| 103 |
+
"start": 1778400957.9355557,
|
| 104 |
+
"stop": 1778400957.9373112,
|
| 105 |
+
"retries": 0,
|
| 106 |
+
"file_path": "test_dashboard.py"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"name": "test_dashboard.py::test_delete_tag_sends_delete_and_removes",
|
| 110 |
+
"status": "passed",
|
| 111 |
+
"duration": 1.550546417987789,
|
| 112 |
+
"start": 1778400957.9373894,
|
| 113 |
+
"stop": 1778400959.4884186,
|
| 114 |
+
"retries": 0,
|
| 115 |
+
"file_path": "test_dashboard.py"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"name": "test_dashboard.py::test_add_user_posts_and_count_updates",
|
| 119 |
+
"status": "passed",
|
| 120 |
+
"duration": 3.0245840000134194,
|
| 121 |
+
"start": 1778400959.4886868,
|
| 122 |
+
"stop": 1778400962.5138662,
|
| 123 |
+
"retries": 0,
|
| 124 |
+
"file_path": "test_dashboard.py"
|
| 125 |
+
}
|
| 126 |
+
]
|
| 127 |
+
}
|
| 128 |
+
}
|
screenshot42-taskmanager-projectdetail/environment/app/jobs/2026-05-10__01-15-46/screenshot41-taskmanager-dashboa__YTwjCn7/verifier/reward.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
1
|