Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- tasks/asana/solution/site/README.md +3 -0
- tasks/asana/solution/site/implementation/Dockerfile +7 -0
- tasks/asana/solution/site/implementation/README.md +10 -0
- tasks/asana/solution/site/implementation/backend/model.json +430 -0
- tasks/asana/solution/site/implementation/backend/runtime.json +104 -0
- tasks/asana/solution/site/implementation/clone/app.py +176 -0
- tasks/asana/solution/site/implementation/clone/asana_app/__init__.py +1 -0
- tasks/asana/solution/site/implementation/clone/asana_app/api.py +0 -0
- tasks/asana/solution/site/implementation/clone/asana_app/db.py +273 -0
- tasks/asana/solution/site/implementation/clone/asana_app/pages.py +858 -0
- tasks/asana/solution/site/implementation/clone/asana_app/seed.py +220 -0
- tasks/asana/solution/site/implementation/clone/asana_app/services.py +45 -0
- tasks/asana/solution/site/implementation/clone/backend/site_backend_integration.py +121 -0
- tasks/asana/solution/site/implementation/clone/requirements.txt +3 -0
- tasks/asana/solution/site/implementation/clone/static/app.css +591 -0
- tasks/asana/solution/site/implementation/clone/static/app.js +0 -0
- tasks/asana/solution/site/implementation/clone/static/auth.js +119 -0
- tasks/asana/solution/site/implementation/clone/static/favicon.svg +1 -0
- tasks/asana/solution/site/implementation/clone/static/home.js +48 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/academy--trainings.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/academy.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/agencies.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/apps.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/certifications.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/community.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/customer-success.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/customers.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/developers.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/download.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/enterprise.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/events.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/features--admin-security.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/help.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/industry--education.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/industry--financial-services.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/industry--government-solutions.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/industry--healthcare.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/industry--manufacturing.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/industry--nonprofit.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/industry--retail.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/partners--channel--directory.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/partners.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/product--ai--ai-studio.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/product--ai--ai-teammates.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/product--ai--dash.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/product--ai.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/product--client-management.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/product--command.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/product--service-management.json +0 -0
- tasks/asana/solution/site/implementation/clone/static/official-pages/product--stackai.json +0 -0
tasks/asana/solution/site/README.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Oracle-only site support
|
| 2 |
+
|
| 3 |
+
Optional private reference-Agent helpers. These files are copied only into solution/.
|
tasks/asana/solution/site/implementation/Dockerfile
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
| 2 |
+
WORKDIR /srv/reference
|
| 3 |
+
COPY . .
|
| 4 |
+
ENV HOST=0.0.0.0 PORT=8080 DATA_DIR=/tmp/websitebench-asana-reference-data SEED=0 TZ=UTC
|
| 5 |
+
RUN ./compile.sh
|
| 6 |
+
HEALTHCHECK --interval=2s --timeout=3s --retries=30 CMD python3 -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/healthz', timeout=2)"
|
| 7 |
+
CMD ["./executable"]
|
tasks/asana/solution/site/implementation/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Direct reference adapter
|
| 2 |
+
|
| 3 |
+
Add Dockerfile, compile.sh, run.sh, solve.sh and optional oracle helpers.
|
| 4 |
+
|
| 5 |
+
The offline fixture includes `demo.owner@asana.example.test` with password
|
| 6 |
+
`AsanaDemo2026!`. Sign in through `/-/login` or `POST /api/auth/login`; the
|
| 7 |
+
normal authenticated handler creates this user's synthetic demo workspace.
|
| 8 |
+
The fixture uses the same hashed credentials, session rotation, and workspace
|
| 9 |
+
permissions as registered users. Registration remains a separate verified
|
| 10 |
+
mail flow; no management endpoint is used to establish a session.
|
tasks/asana/solution/site/implementation/backend/model.json
ADDED
|
@@ -0,0 +1,430 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": "offline-clone.backend-model.v1",
|
| 3 |
+
"site_id": "asana",
|
| 4 |
+
"status": "verified",
|
| 5 |
+
"profile": "offline-benchmark",
|
| 6 |
+
"database": {
|
| 7 |
+
"engine": "sqlite",
|
| 8 |
+
"location_policy": "runtime-data-outside-candidate",
|
| 9 |
+
"concurrency_model": "wal-transactional-single-writer",
|
| 10 |
+
"migration_strategy": "versioned-forward-migrations",
|
| 11 |
+
"deterministic_reset": true,
|
| 12 |
+
"restart_persistence": true,
|
| 13 |
+
"site_isolation": "one-database-per-site",
|
| 14 |
+
"proofs": [
|
| 15 |
+
{
|
| 16 |
+
"obligation": "data-location",
|
| 17 |
+
"status": "verified",
|
| 18 |
+
"evidence": ["clone/tests/test_backend_contract.py::test_backend_data_location_binding_and_migration"]
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"obligation": "schema-migration",
|
| 22 |
+
"status": "verified",
|
| 23 |
+
"evidence": ["clone/tests/test_backend_contract.py::test_backend_data_location_binding_and_migration"]
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"obligation": "deterministic-reset",
|
| 27 |
+
"status": "verified",
|
| 28 |
+
"evidence": ["clone/tests/test_backend_contract.py::test_backend_reset_is_deterministic_and_site_bound"]
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"obligation": "restart-persistence",
|
| 32 |
+
"status": "verified",
|
| 33 |
+
"evidence": ["clone/tests/test_backend_contract.py::test_backend_restart_persistence_and_backup_restore"]
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"obligation": "backup-restore",
|
| 37 |
+
"status": "verified",
|
| 38 |
+
"evidence": ["clone/tests/test_backend_contract.py::test_backend_restart_persistence_and_backup_restore"]
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"obligation": "concurrency",
|
| 42 |
+
"status": "verified",
|
| 43 |
+
"evidence": ["clone/tests/test_backend_contract.py::test_backend_wal_concurrency_serializes_writers"]
|
| 44 |
+
}
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
"auth_semantics": {
|
| 48 |
+
"account_database_scope": "site-isolated",
|
| 49 |
+
"credential_storage": "salted-scrypt-hash",
|
| 50 |
+
"session_storage": "opaque-cookie-digest-at-rest",
|
| 51 |
+
"registration_account_creation": "after-email-verification",
|
| 52 |
+
"verification_challenge_storage": "salted-hash",
|
| 53 |
+
"password_reset_enumeration": "indistinguishable-public-response",
|
| 54 |
+
"mail_default": "LOCAL_ONLY",
|
| 55 |
+
"mail_statuses": [
|
| 56 |
+
"LOCAL_ONLY",
|
| 57 |
+
"SMTP_PENDING",
|
| 58 |
+
"SMTP_SENT",
|
| 59 |
+
"SMTP_FAILED"
|
| 60 |
+
],
|
| 61 |
+
"smtp_activation": "explicit-complete-config-only",
|
| 62 |
+
"smtp_delivery_ceiling": 3,
|
| 63 |
+
"rejected_secret_journaling": "forbidden",
|
| 64 |
+
"legacy_write_policy": "read-compatible-write-rejected"
|
| 65 |
+
},
|
| 66 |
+
"common_capabilities": {
|
| 67 |
+
"account_registration": "account-registration",
|
| 68 |
+
"account_sign_in": "account-sign-in",
|
| 69 |
+
"session_lifecycle": "session-lifecycle",
|
| 70 |
+
"password_recovery": "password-recovery",
|
| 71 |
+
"email_delivery": "email-delivery"
|
| 72 |
+
},
|
| 73 |
+
"capabilities": [
|
| 74 |
+
{
|
| 75 |
+
"id": "account-registration",
|
| 76 |
+
"label": "Verified local account registration",
|
| 77 |
+
"priority": "p0",
|
| 78 |
+
"category": "authentication",
|
| 79 |
+
"implementation_status": "verified",
|
| 80 |
+
"entities": [
|
| 81 |
+
{
|
| 82 |
+
"name": "pending-registration",
|
| 83 |
+
"identity": "opaque pending id bound to one browser session",
|
| 84 |
+
"owner_scope": "session",
|
| 85 |
+
"persistence": "durable"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"name": "local-account",
|
| 89 |
+
"identity": "site-local account id and unique normalized email",
|
| 90 |
+
"owner_scope": "account",
|
| 91 |
+
"persistence": "durable"
|
| 92 |
+
}
|
| 93 |
+
],
|
| 94 |
+
"state_machine": {
|
| 95 |
+
"kind": "challenge-lifecycle",
|
| 96 |
+
"states": [
|
| 97 |
+
"collecting",
|
| 98 |
+
"pending-verification",
|
| 99 |
+
"verified",
|
| 100 |
+
"account-created",
|
| 101 |
+
"expired",
|
| 102 |
+
"locked"
|
| 103 |
+
],
|
| 104 |
+
"transitions": [
|
| 105 |
+
{
|
| 106 |
+
"from": "collecting",
|
| 107 |
+
"to": "pending-verification",
|
| 108 |
+
"trigger": "validated registration request"
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"from": "pending-verification",
|
| 112 |
+
"to": "verified",
|
| 113 |
+
"trigger": "correct unexpired code within attempt budget"
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"from": "verified",
|
| 117 |
+
"to": "account-created",
|
| 118 |
+
"trigger": "transactional account creation and session rotation"
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"from": "pending-verification",
|
| 122 |
+
"to": "expired",
|
| 123 |
+
"trigger": "challenge expiry"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"from": "pending-verification",
|
| 127 |
+
"to": "locked",
|
| 128 |
+
"trigger": "verification attempt budget exhausted"
|
| 129 |
+
}
|
| 130 |
+
]
|
| 131 |
+
},
|
| 132 |
+
"server_authorities": [
|
| 133 |
+
"The server normalizes identity and hashes password and code.",
|
| 134 |
+
"An account is created only after successful verification.",
|
| 135 |
+
"Duplicate normalized email creation is rejected transactionally."
|
| 136 |
+
],
|
| 137 |
+
"external_effect": "none",
|
| 138 |
+
"journey_ids": ["auth-signup", "auth-signup-invalid"],
|
| 139 |
+
"invariant_ids": ["auth-protection", "no-false-success"],
|
| 140 |
+
"proofs": {
|
| 141 |
+
"evidence": {
|
| 142 |
+
"valid": ["clone/tests/test_auth.py::test_signup_verify_creates_seeded_workspace"],
|
| 143 |
+
"invalid": ["clone/tests/test_auth.py::test_signup_validation"],
|
| 144 |
+
"duplicate": ["clone/tests/test_auth.py::test_duplicate_signup_conflict"],
|
| 145 |
+
"stale": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 146 |
+
"foreign-owner": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 147 |
+
"unauthorized-role": ["clone/tests/test_auth.py::test_protected_routes_require_auth"],
|
| 148 |
+
"restart": ["tests/site_backend/test_profiles.py"],
|
| 149 |
+
"migration": ["tests/local_clone_auth/test_local_clone_auth.py::test_schema_wal_migration_and_session_token_digest_only"],
|
| 150 |
+
"concurrency": ["tests/local_clone_auth/test_local_clone_auth.py::test_registration_and_mail_claims_are_serialized_under_concurrency"]
|
| 151 |
+
},
|
| 152 |
+
"not_applicable": []
|
| 153 |
+
}
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"id": "account-sign-in",
|
| 157 |
+
"label": "Password-based local account sign-in",
|
| 158 |
+
"priority": "p0",
|
| 159 |
+
"category": "authentication",
|
| 160 |
+
"implementation_status": "verified",
|
| 161 |
+
"entities": [
|
| 162 |
+
{
|
| 163 |
+
"name": "local-account",
|
| 164 |
+
"identity": "site-local account id and normalized email",
|
| 165 |
+
"owner_scope": "account",
|
| 166 |
+
"persistence": "durable"
|
| 167 |
+
}
|
| 168 |
+
],
|
| 169 |
+
"state_machine": {
|
| 170 |
+
"kind": "entity-lifecycle",
|
| 171 |
+
"states": [
|
| 172 |
+
"signed-out",
|
| 173 |
+
"identified",
|
| 174 |
+
"authenticated",
|
| 175 |
+
"rejected"
|
| 176 |
+
],
|
| 177 |
+
"transitions": [
|
| 178 |
+
{
|
| 179 |
+
"from": "signed-out",
|
| 180 |
+
"to": "identified",
|
| 181 |
+
"trigger": "normalized email submitted"
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"from": "identified",
|
| 185 |
+
"to": "authenticated",
|
| 186 |
+
"trigger": "constant-time password verification succeeds"
|
| 187 |
+
},
|
| 188 |
+
{
|
| 189 |
+
"from": "identified",
|
| 190 |
+
"to": "rejected",
|
| 191 |
+
"trigger": "credentials are invalid"
|
| 192 |
+
}
|
| 193 |
+
]
|
| 194 |
+
},
|
| 195 |
+
"server_authorities": [
|
| 196 |
+
"The server verifies salted password hashes.",
|
| 197 |
+
"The server rotates the authenticated session.",
|
| 198 |
+
"Client-selected fixture identity is not authentication."
|
| 199 |
+
],
|
| 200 |
+
"external_effect": "none",
|
| 201 |
+
"journey_ids": ["auth-login", "auth-login-bad"],
|
| 202 |
+
"invariant_ids": ["auth-protection"],
|
| 203 |
+
"proofs": {
|
| 204 |
+
"evidence": {
|
| 205 |
+
"valid": ["clone/tests/test_auth.py::test_login_logout_cycle"],
|
| 206 |
+
"invalid": ["clone/tests/test_auth.py::test_bad_credentials"],
|
| 207 |
+
"duplicate": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 208 |
+
"stale": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 209 |
+
"foreign-owner": ["clone/tests/test_admin.py::test_workspace_isolation_between_accounts"],
|
| 210 |
+
"unauthorized-role": ["clone/tests/test_auth.py::test_protected_routes_require_auth"],
|
| 211 |
+
"restart": ["tests/site_backend/test_profiles.py"],
|
| 212 |
+
"migration": ["tests/local_clone_auth/test_local_clone_auth.py::test_schema_wal_migration_and_session_token_digest_only"],
|
| 213 |
+
"concurrency": ["tests/local_clone_auth/test_local_clone_auth.py::test_registration_and_mail_claims_are_serialized_under_concurrency"]
|
| 214 |
+
},
|
| 215 |
+
"not_applicable": []
|
| 216 |
+
}
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"id": "session-lifecycle",
|
| 220 |
+
"label": "Anonymous and authenticated browser sessions",
|
| 221 |
+
"priority": "p0",
|
| 222 |
+
"category": "authentication",
|
| 223 |
+
"implementation_status": "verified",
|
| 224 |
+
"entities": [
|
| 225 |
+
{
|
| 226 |
+
"name": "browser-session",
|
| 227 |
+
"identity": "opaque cookie token with digest persisted at rest",
|
| 228 |
+
"owner_scope": "session",
|
| 229 |
+
"persistence": "durable"
|
| 230 |
+
}
|
| 231 |
+
],
|
| 232 |
+
"state_machine": {
|
| 233 |
+
"kind": "session-lifecycle",
|
| 234 |
+
"states": [
|
| 235 |
+
"anonymous",
|
| 236 |
+
"authenticated",
|
| 237 |
+
"revoked",
|
| 238 |
+
"expired"
|
| 239 |
+
],
|
| 240 |
+
"transitions": [
|
| 241 |
+
{
|
| 242 |
+
"from": "anonymous",
|
| 243 |
+
"to": "authenticated",
|
| 244 |
+
"trigger": "successful sign-in or registration rotates session"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"from": "authenticated",
|
| 248 |
+
"to": "revoked",
|
| 249 |
+
"trigger": "sign-out or security reset"
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"from": "anonymous",
|
| 253 |
+
"to": "expired",
|
| 254 |
+
"trigger": "session expiry"
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"from": "authenticated",
|
| 258 |
+
"to": "expired",
|
| 259 |
+
"trigger": "session expiry"
|
| 260 |
+
}
|
| 261 |
+
]
|
| 262 |
+
},
|
| 263 |
+
"server_authorities": [
|
| 264 |
+
"Raw session tokens are never stored in the database.",
|
| 265 |
+
"Ownership is resolved from the server-side session record.",
|
| 266 |
+
"Sign-out revokes server-side authority before deleting the cookie."
|
| 267 |
+
],
|
| 268 |
+
"external_effect": "none",
|
| 269 |
+
"journey_ids": ["auth-login", "auth-logout"],
|
| 270 |
+
"invariant_ids": ["auth-protection"],
|
| 271 |
+
"proofs": {
|
| 272 |
+
"evidence": {
|
| 273 |
+
"valid": ["clone/tests/test_auth.py::test_security_sessions"],
|
| 274 |
+
"invalid": ["clone/tests/test_auth.py::test_protected_routes_require_auth"],
|
| 275 |
+
"duplicate": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 276 |
+
"stale": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 277 |
+
"foreign-owner": ["clone/tests/test_admin.py::test_workspace_isolation_between_accounts"],
|
| 278 |
+
"unauthorized-role": ["clone/tests/test_auth.py::test_protected_routes_require_auth"],
|
| 279 |
+
"restart": ["tests/site_backend/test_profiles.py"],
|
| 280 |
+
"migration": ["tests/local_clone_auth/test_local_clone_auth.py::test_schema_wal_migration_and_session_token_digest_only"],
|
| 281 |
+
"concurrency": ["tests/local_clone_auth/test_local_clone_auth.py::test_registration_and_mail_claims_are_serialized_under_concurrency"]
|
| 282 |
+
},
|
| 283 |
+
"not_applicable": []
|
| 284 |
+
}
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"id": "password-recovery",
|
| 288 |
+
"label": "Enumeration-resistant local password recovery",
|
| 289 |
+
"priority": "p0",
|
| 290 |
+
"category": "authentication",
|
| 291 |
+
"implementation_status": "verified",
|
| 292 |
+
"entities": [
|
| 293 |
+
{
|
| 294 |
+
"name": "password-reset-challenge",
|
| 295 |
+
"identity": "opaque reset id bound to one browser session",
|
| 296 |
+
"owner_scope": "session",
|
| 297 |
+
"persistence": "durable"
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"name": "local-account",
|
| 301 |
+
"identity": "nullable concealed account binding",
|
| 302 |
+
"owner_scope": "account",
|
| 303 |
+
"persistence": "durable"
|
| 304 |
+
}
|
| 305 |
+
],
|
| 306 |
+
"state_machine": {
|
| 307 |
+
"kind": "challenge-lifecycle",
|
| 308 |
+
"states": [
|
| 309 |
+
"requested",
|
| 310 |
+
"verified",
|
| 311 |
+
"consumed",
|
| 312 |
+
"expired",
|
| 313 |
+
"locked"
|
| 314 |
+
],
|
| 315 |
+
"transitions": [
|
| 316 |
+
{
|
| 317 |
+
"from": "requested",
|
| 318 |
+
"to": "verified",
|
| 319 |
+
"trigger": "correct unexpired code within attempt budget"
|
| 320 |
+
},
|
| 321 |
+
{
|
| 322 |
+
"from": "verified",
|
| 323 |
+
"to": "consumed",
|
| 324 |
+
"trigger": "password is replaced and sessions are revoked"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"from": "requested",
|
| 328 |
+
"to": "expired",
|
| 329 |
+
"trigger": "challenge expiry"
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"from": "requested",
|
| 333 |
+
"to": "locked",
|
| 334 |
+
"trigger": "verification attempt budget exhausted"
|
| 335 |
+
}
|
| 336 |
+
]
|
| 337 |
+
},
|
| 338 |
+
"server_authorities": [
|
| 339 |
+
"Known and unknown emails receive indistinguishable public responses.",
|
| 340 |
+
"Only the server binds a reset flow to an account.",
|
| 341 |
+
"Password replacement revokes prior authenticated sessions."
|
| 342 |
+
],
|
| 343 |
+
"external_effect": "local-only",
|
| 344 |
+
"journey_ids": ["auth-reset"],
|
| 345 |
+
"invariant_ids": ["auth-protection", "no-false-success"],
|
| 346 |
+
"proofs": {
|
| 347 |
+
"evidence": {
|
| 348 |
+
"valid": ["clone/tests/test_auth.py::test_password_reset_flow"],
|
| 349 |
+
"invalid": ["clone/tests/test_auth.py::test_forgot_does_not_enumerate"],
|
| 350 |
+
"duplicate": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 351 |
+
"stale": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 352 |
+
"foreign-owner": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 353 |
+
"unauthorized-role": ["clone/tests/test_auth.py::test_protected_routes_require_auth"],
|
| 354 |
+
"restart": ["tests/site_backend/test_profiles.py"],
|
| 355 |
+
"migration": ["tests/local_clone_auth/test_local_clone_auth.py::test_schema_wal_migration_and_session_token_digest_only"],
|
| 356 |
+
"concurrency": ["tests/local_clone_auth/test_local_clone_auth.py::test_registration_and_mail_claims_are_serialized_under_concurrency"]
|
| 357 |
+
},
|
| 358 |
+
"not_applicable": []
|
| 359 |
+
}
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"id": "email-delivery",
|
| 363 |
+
"label": "Truthful local verification and recovery mail outbox",
|
| 364 |
+
"priority": "p0",
|
| 365 |
+
"category": "communication",
|
| 366 |
+
"implementation_status": "verified",
|
| 367 |
+
"entities": [
|
| 368 |
+
{
|
| 369 |
+
"name": "mail-outbox-entry",
|
| 370 |
+
"identity": "site-local outbox id and purpose-bound flow id",
|
| 371 |
+
"owner_scope": "system",
|
| 372 |
+
"persistence": "durable"
|
| 373 |
+
}
|
| 374 |
+
],
|
| 375 |
+
"state_machine": {
|
| 376 |
+
"kind": "delivery-lifecycle",
|
| 377 |
+
"states": [
|
| 378 |
+
"local-only",
|
| 379 |
+
"smtp-pending",
|
| 380 |
+
"smtp-sent",
|
| 381 |
+
"smtp-failed"
|
| 382 |
+
],
|
| 383 |
+
"transitions": [
|
| 384 |
+
{
|
| 385 |
+
"from": "local-only",
|
| 386 |
+
"to": "smtp-pending",
|
| 387 |
+
"trigger": "operator enables complete explicit SMTP configuration"
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"from": "smtp-pending",
|
| 391 |
+
"to": "smtp-sent",
|
| 392 |
+
"trigger": "SMTP transport confirms delivery handoff"
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"from": "smtp-pending",
|
| 396 |
+
"to": "smtp-failed",
|
| 397 |
+
"trigger": "delivery attempt fails or ceiling is reached"
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"from": "smtp-failed",
|
| 401 |
+
"to": "smtp-pending",
|
| 402 |
+
"trigger": "bounded idempotent retry below the delivery ceiling"
|
| 403 |
+
}
|
| 404 |
+
]
|
| 405 |
+
},
|
| 406 |
+
"server_authorities": [
|
| 407 |
+
"Offline mode records LOCAL_ONLY and never claims external delivery.",
|
| 408 |
+
"SMTP is disabled unless every required setting is present.",
|
| 409 |
+
"Claim, retry, and startup replay share one delivery ceiling."
|
| 410 |
+
],
|
| 411 |
+
"external_effect": "local-only",
|
| 412 |
+
"journey_ids": ["auth-signup", "auth-reset"],
|
| 413 |
+
"invariant_ids": ["no-false-success"],
|
| 414 |
+
"proofs": {
|
| 415 |
+
"evidence": {
|
| 416 |
+
"valid": ["clone/tests/test_auth.py::test_password_reset_flow"],
|
| 417 |
+
"invalid": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 418 |
+
"duplicate": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 419 |
+
"stale": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 420 |
+
"foreign-owner": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 421 |
+
"unauthorized-role": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 422 |
+
"restart": ["tests/local_clone_auth/test_local_clone_auth.py"],
|
| 423 |
+
"migration": ["tests/local_clone_auth/test_local_clone_auth.py::test_schema_wal_migration_and_session_token_digest_only"],
|
| 424 |
+
"concurrency": ["tests/local_clone_auth/test_local_clone_auth.py::test_registration_and_mail_claims_are_serialized_under_concurrency"]
|
| 425 |
+
},
|
| 426 |
+
"not_applicable": []
|
| 427 |
+
}
|
| 428 |
+
}
|
| 429 |
+
]
|
| 430 |
+
}
|
tasks/asana/solution/site/implementation/backend/runtime.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"database": {
|
| 3 |
+
"data_dir": "data",
|
| 4 |
+
"engine": "sqlite",
|
| 5 |
+
"filename": "asana.sqlite3",
|
| 6 |
+
"legacy_unbound_migration": false,
|
| 7 |
+
"migration_hook": null,
|
| 8 |
+
"seed_hook": null
|
| 9 |
+
},
|
| 10 |
+
"deployment": {
|
| 11 |
+
"profiles": {
|
| 12 |
+
"cloudflare-review": {
|
| 13 |
+
"mail_adapter": "redis-resend",
|
| 14 |
+
"payment_adapter": "local-sandbox",
|
| 15 |
+
"persistence": "ephemeral-reset"
|
| 16 |
+
},
|
| 17 |
+
"docker-volume": {
|
| 18 |
+
"mail_adapter": "effects-gateway",
|
| 19 |
+
"payment_adapter": "local-sandbox",
|
| 20 |
+
"persistence": "persistent-volume"
|
| 21 |
+
},
|
| 22 |
+
"offline-harbor": {
|
| 23 |
+
"mail_adapter": "local-outbox",
|
| 24 |
+
"payment_adapter": "local-sandbox",
|
| 25 |
+
"persistence": "persistent"
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
"mail": {
|
| 30 |
+
"purposes": {
|
| 31 |
+
"password-reset": {
|
| 32 |
+
"body": "Your password reset code is ${code}.",
|
| 33 |
+
"expiry": "This code expires in ${minutes} minutes.",
|
| 34 |
+
"footer": "Ignore this message if you did not contact Asana.",
|
| 35 |
+
"lead": "A password reset was requested for Asana.",
|
| 36 |
+
"required_variables": [
|
| 37 |
+
"code",
|
| 38 |
+
"minutes"
|
| 39 |
+
],
|
| 40 |
+
"secret_variables": [
|
| 41 |
+
"code"
|
| 42 |
+
],
|
| 43 |
+
"subject": "Reset your Asana password",
|
| 44 |
+
"template_id": "12go-asia.password-reset.v1"
|
| 45 |
+
},
|
| 46 |
+
"registration": {
|
| 47 |
+
"body": "Your verification code is ${code}.",
|
| 48 |
+
"expiry": "This code expires in ${minutes} minutes.",
|
| 49 |
+
"footer": "This code is only for Asana.",
|
| 50 |
+
"lead": "Finish creating your Asana account.",
|
| 51 |
+
"required_variables": [
|
| 52 |
+
"code",
|
| 53 |
+
"minutes"
|
| 54 |
+
],
|
| 55 |
+
"secret_variables": [
|
| 56 |
+
"code"
|
| 57 |
+
],
|
| 58 |
+
"subject": "Verify your Asana account",
|
| 59 |
+
"template_id": "12go-asia.registration.v1"
|
| 60 |
+
}
|
| 61 |
+
},
|
| 62 |
+
"sender": {
|
| 63 |
+
"address_env": "RESEND_FROM_EMAIL",
|
| 64 |
+
"display_name": "Asana"
|
| 65 |
+
}
|
| 66 |
+
},
|
| 67 |
+
"payments": {
|
| 68 |
+
"currency": "USD",
|
| 69 |
+
"default_adapter": "local-sandbox",
|
| 70 |
+
"enabled": false,
|
| 71 |
+
"local_sandbox": {
|
| 72 |
+
"scenarios": [
|
| 73 |
+
{
|
| 74 |
+
"display_label": "Simulated approval",
|
| 75 |
+
"id": "sandbox-approved",
|
| 76 |
+
"outcome": "approved"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"display_label": "Simulated decline",
|
| 80 |
+
"id": "sandbox-declined",
|
| 81 |
+
"outcome": "declined"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"display_label": "Simulated retry",
|
| 85 |
+
"id": "sandbox-retry",
|
| 86 |
+
"outcome": "retryable"
|
| 87 |
+
}
|
| 88 |
+
]
|
| 89 |
+
},
|
| 90 |
+
"stripe_test": null
|
| 91 |
+
},
|
| 92 |
+
"schema_version": "websitebench.site-backend-runtime.v1",
|
| 93 |
+
"session": {
|
| 94 |
+
"host_only": true,
|
| 95 |
+
"http_only": true,
|
| 96 |
+
"same_site": "Lax",
|
| 97 |
+
"secure": true
|
| 98 |
+
},
|
| 99 |
+
"site": {
|
| 100 |
+
"id": "asana",
|
| 101 |
+
"label": "Asana",
|
| 102 |
+
"public_origin": "https://asana.website-bench.com"
|
| 103 |
+
}
|
| 104 |
+
}
|
tasks/asana/solution/site/implementation/clone/app.py
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Asana offline clone — WebsiteBench candidate application.
|
| 2 |
+
|
| 3 |
+
Route hub only; business logic lives in ``asana_app``. All state is local:
|
| 4 |
+
site-bound SQLite through the generated ``websitebench.site_backend`` seam and
|
| 5 |
+
LocalAuthStore. No runtime request leaves the local origin.
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
import json
|
| 9 |
+
import os
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
|
| 12 |
+
from fastapi import FastAPI, Request
|
| 13 |
+
from fastapi.responses import HTMLResponse, JSONResponse, RedirectResponse
|
| 14 |
+
from fastapi.staticfiles import StaticFiles
|
| 15 |
+
|
| 16 |
+
from asana_app import pages
|
| 17 |
+
from asana_app.api import _cookie_name, public_project_snapshot, router as api_router
|
| 18 |
+
from asana_app.services import SERVICES
|
| 19 |
+
|
| 20 |
+
SITE_ID = "asana"
|
| 21 |
+
DISPLAY_NAME = "Asana"
|
| 22 |
+
CLONE_ROOT = Path(__file__).resolve().parent
|
| 23 |
+
|
| 24 |
+
app = FastAPI(title=DISPLAY_NAME, docs_url=None, redoc_url=None, openapi_url=None)
|
| 25 |
+
app.include_router(api_router)
|
| 26 |
+
app.mount("/static", StaticFiles(directory=CLONE_ROOT / "static"), name="static")
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
@app.middleware("http")
|
| 30 |
+
async def validate_api_json(request: Request, call_next):
|
| 31 |
+
"""Reject malformed or non-object JSON before business handlers run."""
|
| 32 |
+
content_type = request.headers.get("content-type", "").lower()
|
| 33 |
+
if (request.url.path.startswith("/api/") and
|
| 34 |
+
request.method in {"POST", "PUT", "PATCH"} and
|
| 35 |
+
content_type.startswith("application/json")):
|
| 36 |
+
try:
|
| 37 |
+
body = await request.json()
|
| 38 |
+
except (json.JSONDecodeError, UnicodeDecodeError):
|
| 39 |
+
return JSONResponse(
|
| 40 |
+
{"error": {"code": "invalid-json",
|
| 41 |
+
"message": "Request body must be valid JSON."}},
|
| 42 |
+
status_code=400,
|
| 43 |
+
)
|
| 44 |
+
if not isinstance(body, dict):
|
| 45 |
+
return JSONResponse(
|
| 46 |
+
{"error": {"code": "invalid-json",
|
| 47 |
+
"message": "Request body must be a JSON object."}},
|
| 48 |
+
status_code=400,
|
| 49 |
+
)
|
| 50 |
+
return await call_next(request)
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
@app.get("/healthz")
|
| 54 |
+
def healthz() -> JSONResponse:
|
| 55 |
+
return JSONResponse(
|
| 56 |
+
{"ok": True, "site_id": SITE_ID},
|
| 57 |
+
headers={
|
| 58 |
+
"X-WebsiteBench-Container-Build-ID": os.environ.get(
|
| 59 |
+
"DEPLOYMENT_BUILD_ID", os.environ.get("SOURCE_REF", "")
|
| 60 |
+
)
|
| 61 |
+
},
|
| 62 |
+
)
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
_MARKETING = {
|
| 66 |
+
"/": pages.home_page,
|
| 67 |
+
"/pricing": pages.pricing_page,
|
| 68 |
+
"/product": pages.product_page,
|
| 69 |
+
"/resources": pages.resources_page,
|
| 70 |
+
"/templates": pages.templates_page,
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
def _register_marketing(path: str, render) -> None:
|
| 75 |
+
@app.get(path, response_class=HTMLResponse)
|
| 76 |
+
def marketing_page() -> str: # pragma: no cover - thin wrapper
|
| 77 |
+
return render()
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
for _path, _render in _MARKETING.items():
|
| 81 |
+
_register_marketing(_path, _render)
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def _register_nav_detail(path: str) -> None:
|
| 85 |
+
@app.get(path, response_class=HTMLResponse)
|
| 86 |
+
def nav_detail_page() -> str: # pragma: no cover - thin wrapper
|
| 87 |
+
return pages.nav_detail_page(path)
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
for _path in pages.NAV_DETAIL_PAGES:
|
| 91 |
+
_register_nav_detail(_path)
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
@app.get("/templates/{category}", response_class=HTMLResponse)
|
| 95 |
+
def template_category(category: str) -> str:
|
| 96 |
+
"""Keep every observed public template-card destination locally reachable."""
|
| 97 |
+
|
| 98 |
+
return pages.templates_page()
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
@app.get("/resources/category/{category}", response_class=HTMLResponse)
|
| 102 |
+
def resource_category(category: str) -> str:
|
| 103 |
+
"""Keep every observed resource-card destination locally reachable."""
|
| 104 |
+
|
| 105 |
+
return pages.resources_page()
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
@app.get("/demo/main", response_class=HTMLResponse)
|
| 109 |
+
def public_demo() -> str:
|
| 110 |
+
return pages.resources_page()
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
@app.get("/terms/{document}", response_class=HTMLResponse)
|
| 114 |
+
def public_terms(document: str) -> str:
|
| 115 |
+
return pages.templates_page()
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
@app.get("/solutions", response_class=HTMLResponse)
|
| 119 |
+
def solutions() -> str:
|
| 120 |
+
return pages.solutions_page()
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
def _authenticated(request: Request) -> bool:
|
| 124 |
+
token = request.cookies.get(_cookie_name(request, SERVICES))
|
| 125 |
+
session = SERVICES.auth.resolve_session(token)
|
| 126 |
+
return bool(session and session.get("authenticated"))
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
@app.get("/-/login", response_class=HTMLResponse)
|
| 130 |
+
def login(request: Request):
|
| 131 |
+
if _authenticated(request):
|
| 132 |
+
return RedirectResponse("/app/home", status_code=302)
|
| 133 |
+
return pages.login_page()
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
@app.get("/create-account", response_class=HTMLResponse)
|
| 137 |
+
def create_account(request: Request, email: str = ""):
|
| 138 |
+
if _authenticated(request):
|
| 139 |
+
return RedirectResponse("/app/home", status_code=302)
|
| 140 |
+
return pages.signup_page(email)
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
@app.get("/-/forgot_password", response_class=HTMLResponse)
|
| 144 |
+
def forgot_password() -> str:
|
| 145 |
+
return pages.forgot_page()
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
# Dash-free aliases for tooling that cannot pass "-/" routes as arguments
|
| 149 |
+
# (OpenCLI adapters treat a leading dash as an option). Same content.
|
| 150 |
+
@app.get("/login", response_class=HTMLResponse)
|
| 151 |
+
def login_alias(request: Request):
|
| 152 |
+
return login(request)
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
@app.get("/forgot_password", response_class=HTMLResponse)
|
| 156 |
+
def forgot_alias() -> str:
|
| 157 |
+
return pages.forgot_page()
|
| 158 |
+
|
| 159 |
+
|
| 160 |
+
@app.get("/share/{project_id}", response_class=HTMLResponse)
|
| 161 |
+
def shared_project(project_id: str):
|
| 162 |
+
"""Anonymous read-only surface enabled only by a project's public-link mode."""
|
| 163 |
+
with SERVICES.auth.connect() as connection:
|
| 164 |
+
snapshot = public_project_snapshot(connection, project_id)
|
| 165 |
+
if snapshot is None:
|
| 166 |
+
return HTMLResponse(pages.not_found_page(), status_code=404)
|
| 167 |
+
return pages.shared_project_page(snapshot)
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
@app.get("/app", response_class=HTMLResponse)
|
| 171 |
+
@app.get("/app/{rest:path}", response_class=HTMLResponse)
|
| 172 |
+
def app_pages(request: Request, rest: str = ""):
|
| 173 |
+
if not _authenticated(request):
|
| 174 |
+
target = request.url.path
|
| 175 |
+
return RedirectResponse(f"/-/login?u={target}", status_code=302)
|
| 176 |
+
return pages.app_shell()
|
tasks/asana/solution/site/implementation/clone/asana_app/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"""Asana offline-clone business application package."""
|
tasks/asana/solution/site/implementation/clone/asana_app/api.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/asana_app/db.py
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Business schema for the Asana offline clone.
|
| 2 |
+
|
| 3 |
+
All state lives in the site-bound SQLite database opened through the generated
|
| 4 |
+
``websitebench.site_backend`` seam. The auth tables belong to LocalAuthStore;
|
| 5 |
+
these tables model the workspace/project/task domain. Data here is entirely
|
| 6 |
+
synthetic — no source-site records are ever imported.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from __future__ import annotations
|
| 10 |
+
|
| 11 |
+
import json
|
| 12 |
+
import sqlite3
|
| 13 |
+
import time
|
| 14 |
+
import uuid
|
| 15 |
+
from typing import Any
|
| 16 |
+
|
| 17 |
+
SCHEMA_SQL = """
|
| 18 |
+
CREATE TABLE IF NOT EXISTS az_users (
|
| 19 |
+
user_id TEXT PRIMARY KEY,
|
| 20 |
+
email TEXT NOT NULL UNIQUE,
|
| 21 |
+
display_name TEXT NOT NULL,
|
| 22 |
+
initials TEXT NOT NULL,
|
| 23 |
+
avatar_color TEXT NOT NULL DEFAULT '#f06a6a',
|
| 24 |
+
role_title TEXT NOT NULL DEFAULT '',
|
| 25 |
+
about_me TEXT NOT NULL DEFAULT '',
|
| 26 |
+
synthetic INTEGER NOT NULL DEFAULT 0,
|
| 27 |
+
task_default_view TEXT NOT NULL DEFAULT 'list',
|
| 28 |
+
theme TEXT NOT NULL DEFAULT 'light',
|
| 29 |
+
notify_mentions INTEGER NOT NULL DEFAULT 1,
|
| 30 |
+
notify_status INTEGER NOT NULL DEFAULT 1,
|
| 31 |
+
notify_daily_summary INTEGER NOT NULL DEFAULT 0,
|
| 32 |
+
created_at INTEGER NOT NULL
|
| 33 |
+
);
|
| 34 |
+
CREATE TABLE IF NOT EXISTS az_workspaces (
|
| 35 |
+
workspace_id TEXT PRIMARY KEY,
|
| 36 |
+
name TEXT NOT NULL,
|
| 37 |
+
plan TEXT NOT NULL DEFAULT 'personal',
|
| 38 |
+
owner_user_id TEXT NOT NULL,
|
| 39 |
+
created_at INTEGER NOT NULL
|
| 40 |
+
);
|
| 41 |
+
CREATE TABLE IF NOT EXISTS az_workspace_members (
|
| 42 |
+
workspace_id TEXT NOT NULL,
|
| 43 |
+
user_id TEXT NOT NULL,
|
| 44 |
+
role TEXT NOT NULL DEFAULT 'member',
|
| 45 |
+
joined_at INTEGER NOT NULL,
|
| 46 |
+
PRIMARY KEY (workspace_id, user_id)
|
| 47 |
+
);
|
| 48 |
+
CREATE TABLE IF NOT EXISTS az_portfolios (
|
| 49 |
+
portfolio_id TEXT PRIMARY KEY,
|
| 50 |
+
workspace_id TEXT NOT NULL,
|
| 51 |
+
name TEXT NOT NULL,
|
| 52 |
+
color TEXT NOT NULL DEFAULT '#796eff',
|
| 53 |
+
owner_user_id TEXT NOT NULL,
|
| 54 |
+
created_at INTEGER NOT NULL
|
| 55 |
+
);
|
| 56 |
+
CREATE TABLE IF NOT EXISTS az_projects (
|
| 57 |
+
project_id TEXT PRIMARY KEY,
|
| 58 |
+
workspace_id TEXT NOT NULL,
|
| 59 |
+
portfolio_id TEXT,
|
| 60 |
+
name TEXT NOT NULL,
|
| 61 |
+
description TEXT NOT NULL DEFAULT '',
|
| 62 |
+
color TEXT NOT NULL DEFAULT '#4573d2',
|
| 63 |
+
icon TEXT NOT NULL DEFAULT 'list',
|
| 64 |
+
status TEXT NOT NULL DEFAULT 'on_track',
|
| 65 |
+
status_note TEXT NOT NULL DEFAULT '',
|
| 66 |
+
default_view TEXT NOT NULL DEFAULT 'list',
|
| 67 |
+
owner_user_id TEXT NOT NULL,
|
| 68 |
+
archived INTEGER NOT NULL DEFAULT 0,
|
| 69 |
+
deleted_at INTEGER,
|
| 70 |
+
starred INTEGER NOT NULL DEFAULT 0,
|
| 71 |
+
share_mode TEXT NOT NULL DEFAULT 'workspace',
|
| 72 |
+
created_from_template TEXT,
|
| 73 |
+
created_at INTEGER NOT NULL
|
| 74 |
+
);
|
| 75 |
+
CREATE TABLE IF NOT EXISTS az_sections (
|
| 76 |
+
section_id TEXT PRIMARY KEY,
|
| 77 |
+
project_id TEXT NOT NULL,
|
| 78 |
+
name TEXT NOT NULL,
|
| 79 |
+
sort_order INTEGER NOT NULL DEFAULT 0
|
| 80 |
+
);
|
| 81 |
+
CREATE TABLE IF NOT EXISTS az_tasks (
|
| 82 |
+
task_id TEXT PRIMARY KEY,
|
| 83 |
+
workspace_id TEXT NOT NULL,
|
| 84 |
+
project_id TEXT,
|
| 85 |
+
section_id TEXT,
|
| 86 |
+
parent_task_id TEXT,
|
| 87 |
+
name TEXT NOT NULL,
|
| 88 |
+
notes TEXT NOT NULL DEFAULT '',
|
| 89 |
+
assignee_user_id TEXT,
|
| 90 |
+
creator_user_id TEXT NOT NULL,
|
| 91 |
+
due_date TEXT,
|
| 92 |
+
start_date TEXT,
|
| 93 |
+
priority TEXT,
|
| 94 |
+
task_status TEXT,
|
| 95 |
+
completed INTEGER NOT NULL DEFAULT 0,
|
| 96 |
+
completed_at INTEGER,
|
| 97 |
+
liked_by TEXT NOT NULL DEFAULT '[]',
|
| 98 |
+
sort_order INTEGER NOT NULL DEFAULT 0,
|
| 99 |
+
deleted_at INTEGER,
|
| 100 |
+
created_at INTEGER NOT NULL,
|
| 101 |
+
modified_at INTEGER NOT NULL
|
| 102 |
+
);
|
| 103 |
+
CREATE TABLE IF NOT EXISTS az_task_dependencies (
|
| 104 |
+
task_id TEXT NOT NULL,
|
| 105 |
+
depends_on_task_id TEXT NOT NULL,
|
| 106 |
+
PRIMARY KEY (task_id, depends_on_task_id)
|
| 107 |
+
);
|
| 108 |
+
CREATE TABLE IF NOT EXISTS az_task_collaborators (
|
| 109 |
+
task_id TEXT NOT NULL,
|
| 110 |
+
user_id TEXT NOT NULL,
|
| 111 |
+
PRIMARY KEY (task_id, user_id)
|
| 112 |
+
);
|
| 113 |
+
CREATE TABLE IF NOT EXISTS az_comments (
|
| 114 |
+
comment_id TEXT PRIMARY KEY,
|
| 115 |
+
task_id TEXT NOT NULL,
|
| 116 |
+
author_user_id TEXT NOT NULL,
|
| 117 |
+
body TEXT NOT NULL,
|
| 118 |
+
created_at INTEGER NOT NULL,
|
| 119 |
+
edited_at INTEGER
|
| 120 |
+
);
|
| 121 |
+
CREATE TABLE IF NOT EXISTS az_attachments (
|
| 122 |
+
attachment_id TEXT PRIMARY KEY,
|
| 123 |
+
task_id TEXT NOT NULL,
|
| 124 |
+
filename TEXT NOT NULL,
|
| 125 |
+
size_bytes INTEGER NOT NULL,
|
| 126 |
+
content_type TEXT NOT NULL,
|
| 127 |
+
data BLOB NOT NULL,
|
| 128 |
+
uploader_user_id TEXT NOT NULL,
|
| 129 |
+
created_at INTEGER NOT NULL
|
| 130 |
+
);
|
| 131 |
+
CREATE TABLE IF NOT EXISTS az_activity (
|
| 132 |
+
activity_id INTEGER PRIMARY KEY AUTOINCREMENT,
|
| 133 |
+
workspace_id TEXT NOT NULL,
|
| 134 |
+
actor_user_id TEXT NOT NULL,
|
| 135 |
+
verb TEXT NOT NULL,
|
| 136 |
+
object_type TEXT NOT NULL,
|
| 137 |
+
object_id TEXT NOT NULL,
|
| 138 |
+
object_name TEXT NOT NULL DEFAULT '',
|
| 139 |
+
detail TEXT NOT NULL DEFAULT '',
|
| 140 |
+
created_at INTEGER NOT NULL
|
| 141 |
+
);
|
| 142 |
+
CREATE TABLE IF NOT EXISTS az_notifications (
|
| 143 |
+
notification_id INTEGER PRIMARY KEY AUTOINCREMENT,
|
| 144 |
+
user_id TEXT NOT NULL,
|
| 145 |
+
workspace_id TEXT NOT NULL,
|
| 146 |
+
kind TEXT NOT NULL,
|
| 147 |
+
text TEXT NOT NULL,
|
| 148 |
+
task_id TEXT,
|
| 149 |
+
read INTEGER NOT NULL DEFAULT 0,
|
| 150 |
+
archived INTEGER NOT NULL DEFAULT 0,
|
| 151 |
+
created_at INTEGER NOT NULL
|
| 152 |
+
);
|
| 153 |
+
CREATE TABLE IF NOT EXISTS az_goals (
|
| 154 |
+
goal_id TEXT PRIMARY KEY,
|
| 155 |
+
workspace_id TEXT NOT NULL,
|
| 156 |
+
name TEXT NOT NULL,
|
| 157 |
+
owner_user_id TEXT NOT NULL,
|
| 158 |
+
time_period TEXT NOT NULL DEFAULT 'FY26',
|
| 159 |
+
progress INTEGER NOT NULL DEFAULT 0,
|
| 160 |
+
status TEXT NOT NULL DEFAULT 'on_track',
|
| 161 |
+
created_at INTEGER NOT NULL
|
| 162 |
+
);
|
| 163 |
+
CREATE TABLE IF NOT EXISTS az_saved_views (
|
| 164 |
+
view_id TEXT PRIMARY KEY,
|
| 165 |
+
workspace_id TEXT NOT NULL,
|
| 166 |
+
user_id TEXT NOT NULL,
|
| 167 |
+
name TEXT NOT NULL,
|
| 168 |
+
query_json TEXT NOT NULL,
|
| 169 |
+
created_at INTEGER NOT NULL
|
| 170 |
+
);
|
| 171 |
+
CREATE TABLE IF NOT EXISTS az_project_memberships (
|
| 172 |
+
project_id TEXT NOT NULL,
|
| 173 |
+
user_id TEXT NOT NULL,
|
| 174 |
+
access TEXT NOT NULL DEFAULT 'editor',
|
| 175 |
+
PRIMARY KEY (project_id, user_id)
|
| 176 |
+
);
|
| 177 |
+
CREATE TABLE IF NOT EXISTS az_rules (
|
| 178 |
+
rule_id TEXT PRIMARY KEY,
|
| 179 |
+
project_id TEXT NOT NULL,
|
| 180 |
+
name TEXT NOT NULL,
|
| 181 |
+
trigger TEXT NOT NULL,
|
| 182 |
+
action TEXT NOT NULL,
|
| 183 |
+
enabled INTEGER NOT NULL DEFAULT 1,
|
| 184 |
+
created_at INTEGER NOT NULL
|
| 185 |
+
);
|
| 186 |
+
CREATE TABLE IF NOT EXISTS az_invites (
|
| 187 |
+
invite_id TEXT PRIMARY KEY,
|
| 188 |
+
workspace_id TEXT NOT NULL,
|
| 189 |
+
email TEXT NOT NULL,
|
| 190 |
+
role TEXT NOT NULL DEFAULT 'member',
|
| 191 |
+
invited_by TEXT NOT NULL,
|
| 192 |
+
status TEXT NOT NULL DEFAULT 'pending',
|
| 193 |
+
created_at INTEGER NOT NULL
|
| 194 |
+
);
|
| 195 |
+
CREATE TABLE IF NOT EXISTS az_agent_drafts (
|
| 196 |
+
agent_id TEXT PRIMARY KEY,
|
| 197 |
+
workspace_id TEXT NOT NULL,
|
| 198 |
+
creator_user_id TEXT NOT NULL,
|
| 199 |
+
name TEXT NOT NULL,
|
| 200 |
+
instructions TEXT NOT NULL,
|
| 201 |
+
created_at INTEGER NOT NULL,
|
| 202 |
+
modified_at INTEGER NOT NULL
|
| 203 |
+
);
|
| 204 |
+
CREATE INDEX IF NOT EXISTS idx_az_tasks_project ON az_tasks(project_id, section_id, sort_order);
|
| 205 |
+
CREATE INDEX IF NOT EXISTS idx_az_tasks_assignee ON az_tasks(assignee_user_id);
|
| 206 |
+
CREATE INDEX IF NOT EXISTS idx_az_activity_ws ON az_activity(workspace_id, created_at);
|
| 207 |
+
CREATE INDEX IF NOT EXISTS idx_az_project_members_user ON az_project_memberships(user_id, project_id);
|
| 208 |
+
CREATE INDEX IF NOT EXISTS idx_az_agent_drafts_workspace ON az_agent_drafts(workspace_id, modified_at);
|
| 209 |
+
"""
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
def now() -> int:
|
| 213 |
+
return int(time.time())
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
def new_id(prefix: str) -> str:
|
| 217 |
+
return f"{prefix}_{uuid.uuid4().hex[:12]}"
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
def ensure_schema(connection: sqlite3.Connection) -> None:
|
| 221 |
+
connection.executescript(SCHEMA_SQL)
|
| 222 |
+
connection.execute("PRAGMA optimize")
|
| 223 |
+
|
| 224 |
+
|
| 225 |
+
def row_to_dict(row: sqlite3.Row | None) -> dict[str, Any] | None:
|
| 226 |
+
return None if row is None else {k: row[k] for k in row.keys()}
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
def rows_to_dicts(rows: list[sqlite3.Row]) -> list[dict[str, Any]]:
|
| 230 |
+
return [{k: r[k] for k in r.keys()} for r in rows]
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
def record_activity(
|
| 234 |
+
connection: sqlite3.Connection,
|
| 235 |
+
*,
|
| 236 |
+
workspace_id: str,
|
| 237 |
+
actor_user_id: str,
|
| 238 |
+
verb: str,
|
| 239 |
+
object_type: str,
|
| 240 |
+
object_id: str,
|
| 241 |
+
object_name: str = "",
|
| 242 |
+
detail: str = "",
|
| 243 |
+
) -> None:
|
| 244 |
+
connection.execute(
|
| 245 |
+
"INSERT INTO az_activity(workspace_id, actor_user_id, verb, object_type,"
|
| 246 |
+
" object_id, object_name, detail, created_at) VALUES (?,?,?,?,?,?,?,?)",
|
| 247 |
+
(workspace_id, actor_user_id, verb, object_type, object_id, object_name,
|
| 248 |
+
detail, now()),
|
| 249 |
+
)
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
def notify(
|
| 253 |
+
connection: sqlite3.Connection,
|
| 254 |
+
*,
|
| 255 |
+
user_id: str,
|
| 256 |
+
workspace_id: str,
|
| 257 |
+
kind: str,
|
| 258 |
+
text: str,
|
| 259 |
+
task_id: str | None = None,
|
| 260 |
+
) -> None:
|
| 261 |
+
connection.execute(
|
| 262 |
+
"INSERT INTO az_notifications(user_id, workspace_id, kind, text, task_id,"
|
| 263 |
+
" created_at) VALUES (?,?,?,?,?,?)",
|
| 264 |
+
(user_id, workspace_id, kind, text, task_id, now()),
|
| 265 |
+
)
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
def liked_by(value: str) -> list[str]:
|
| 269 |
+
try:
|
| 270 |
+
parsed = json.loads(value)
|
| 271 |
+
except (TypeError, ValueError):
|
| 272 |
+
return []
|
| 273 |
+
return parsed if isinstance(parsed, list) else []
|
tasks/asana/solution/site/implementation/clone/asana_app/pages.py
ADDED
|
@@ -0,0 +1,858 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Server-rendered marketing and auth pages for the Asana offline clone.
|
| 2 |
+
|
| 3 |
+
Copy on the login/forgot pages is reproduced from directly captured anonymous
|
| 4 |
+
evidence (EA1). Marketing pages reproduce server-rendered headings observed by
|
| 5 |
+
EA2; their full source visuals were unavailable (renderer crash), so layout is
|
| 6 |
+
an honest local design in Asana's visual language, not a pixel claim.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
from __future__ import annotations
|
| 10 |
+
|
| 11 |
+
import html
|
| 12 |
+
import json
|
| 13 |
+
import re
|
| 14 |
+
from pathlib import Path
|
| 15 |
+
|
| 16 |
+
LOGO_SVG = (
|
| 17 |
+
'<svg viewBox="0 0 112 22" width="112" height="22" aria-hidden="true">'
|
| 18 |
+
'<path d="M108.202 16.703c.067.765.679 1.739 1.74 1.739h.62a.44.44 0 0 0 .438-.438V4.359h-.003a.437.437 0 0 0-.435-.414h-1.922a.437.437 0 0 0-.435.414h-.003v1.109c-1.178-1.452-3.035-2.055-4.897-2.055a7.667 7.667 0 0 0-7.665 7.67 7.668 7.668 0 0 0 7.665 7.672c1.862 0 3.892-.723 4.897-2.054v.002Zm-4.89-.633c-2.692 0-4.874-2.232-4.874-4.986 0-2.754 2.182-4.986 4.874-4.986 2.693 0 4.875 2.232 4.875 4.986 0 2.754-2.182 4.986-4.875 4.986ZM93.21 17.172v-7.06c0-3.981-2.51-6.666-6.51-6.666-1.91 0-3.476 1.105-4.029 2.055-.12-.743-.513-1.523-1.735-1.523h-.622a.439.439 0 0 0-.438.438v13.646h.003c.012.23.203.414.435.414h1.923c.232 0 .422-.184.435-.414h.002v-8.06a3.87 3.87 0 0 1 7.736 0l.001 8.06h.002c.013.23.203.414.435.414h1.923c.232 0 .422-.184.435-.414h.003v-.89ZM73.188 16.703c.067.765.68 1.739 1.74 1.739h.62c.24 0 .437-.197.437-.438V4.359h-.002a.438.438 0 0 0-.435-.414h-1.923a.438.438 0 0 0-.435.414h-.002v1.109c-1.178-1.452-3.035-2.055-4.898-2.055a7.667 7.667 0 0 0-7.664 7.67c0 4.237 3.431 7.672 7.664 7.672 1.863 0 3.892-.723 4.898-2.054v.002Zm-4.89-.633c-2.692 0-4.875-2.232-4.875-4.986 0-2.754 2.183-4.986 4.875-4.986s4.874 2.232 4.874 4.986c0 2.754-2.182 4.986-4.874 4.986ZM49.257 14.748c1.283.89 2.684 1.322 4.03 1.322 1.283 0 2.609-.665 2.609-1.823 0-1.546-2.89-1.787-4.705-2.405-1.815-.617-3.379-1.893-3.379-3.96 0-3.163 2.816-4.47 5.444-4.47 1.665 0 3.383.55 4.497 1.338.384.29.15.625.15.625l-1.063 1.52c-.12.17-.328.318-.628.133s-1.352-.93-2.956-.93c-1.603 0-2.57.74-2.57 1.66 0 1.1 1.256 1.447 2.727 1.823 2.562.691 5.357 1.522 5.357 4.666 0 2.786-2.604 4.508-5.483 4.508-2.181 0-4.038-.622-5.596-1.766-.324-.325-.098-.627-.098-.627l1.058-1.512c.216-.282.487-.184.606-.102ZM41.866 16.703c.068.765.68 1.739 1.74 1.739h.62a.44.44 0 0 0 .438-.438V4.359h-.003a.437.437 0 0 0-.435-.414h-1.922a.438.438 0 0 0-.435.414h-.003v1.109c-1.178-1.452-3.035-2.055-4.897-2.055a7.668 7.668 0 0 0-7.665 7.67c0 4.237 3.432 7.672 7.665 7.672 1.862 0 3.892-.723 4.897-2.054v.002Zm-4.89-.633c-2.692 0-4.874-2.232-4.874-4.986 0-2.754 2.182-4.986 4.875-4.986 2.692 0 4.874 2.232 4.874 4.986 0 2.754-2.182 4.986-4.874 4.986Z" fill="#0D0E10"/>'
|
| 19 |
+
'<path d="M18.559 11.605a5.158 5.158 0 1 0 0 10.317 5.158 5.158 0 0 0 0-10.317Zm-13.401.001a5.158 5.158 0 1 0 0 10.315 5.158 5.158 0 0 0 0-10.315Zm11.858-6.448a5.158 5.158 0 1 1-10.316 0 5.158 5.158 0 0 1 10.316 0Z" fill="#F06A6A"/></svg>'
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
LANGUAGE_SVG = (
|
| 23 |
+
'<svg viewBox="0 0 19 19" width="28" height="28" aria-hidden="true">'
|
| 24 |
+
'<path d="M9.5 0A9.5 9.5 0 1 0 9.5 19 9.5 9.5 0 0 0 9.5 0Zm7.481 5.938h-3.622c-.296-1.841-.83-3.385-1.543-4.394a8.35 8.35 0 0 1 5.165 4.394ZM12.469 9.5c0 .831-.06 1.603-.119 2.375h-5.7A31 31 0 0 1 6.531 9.5c0-.831.06-1.603.119-2.375h5.7c.06.772.119 1.544.119 2.375ZM9.5 17.813c-1.01 0-2.138-1.841-2.672-4.75h5.344c-.535 2.909-1.663 4.75-2.672 4.75ZM6.828 5.938C7.363 3.028 8.491 1.188 9.5 1.188c1.01 0 2.138 1.84 2.672 4.75H6.828ZM7.184 1.544c-.712 1.01-1.246 2.553-1.543 4.394H2.019a8.35 8.35 0 0 1 5.165-4.394ZM1.544 7.125h3.919A31 31 0 0 0 5.344 9.5c0 .831.06 1.603.119 2.375H1.544A8.3 8.3 0 0 1 1.188 9.5c0-.831.118-1.603.356-2.375Zm.475 5.938h3.622c.297 1.84.831 3.384 1.543 4.393a8.35 8.35 0 0 1-5.165-4.393Zm9.797 4.393c.712-1.069 1.246-2.553 1.543-4.393h3.622a8.35 8.35 0 0 1-5.165 4.393Zm5.64-5.581h-3.919c.06-.772.119-1.544.119-2.375 0-.831-.06-1.603-.119-2.375h3.919c.237.772.356 1.544.356 2.375 0 .831-.119 1.603-.356 2.375Z" fill="#0D0E10"/></svg>'
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def _head(title: str, extra: str = "") -> str:
|
| 29 |
+
return f"""<!doctype html>
|
| 30 |
+
<html lang="en"><head><meta charset="utf-8">
|
| 31 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
| 32 |
+
<title>{html.escape(title)}</title>
|
| 33 |
+
<link rel="icon" href="/static/favicon.svg" type="image/svg+xml">
|
| 34 |
+
<link rel="stylesheet" href="/static/site.css?v=public-nav-1">{extra}</head>"""
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def _marketing_nav(active: str = "") -> str:
|
| 38 |
+
def menu_link(title: str, href: str, copy: str = "", icon: str = "",
|
| 39 |
+
badge: str = "") -> str:
|
| 40 |
+
icon_html = f'<i class="mnav-item-icon {icon}" aria-hidden="true">✣</i>' if icon else ""
|
| 41 |
+
copy_html = f'<small>{copy}</small>' if copy else ""
|
| 42 |
+
badge_html = f'<em>{badge}</em>' if badge else ""
|
| 43 |
+
return (f'<li><a href="{href}">{icon_html}<span><strong>{title}</strong>'
|
| 44 |
+
f'{copy_html}</span>{badge_html}<b aria-hidden="true">→</b></a></li>')
|
| 45 |
+
|
| 46 |
+
def group(title: str, links: list[tuple[str, str, str, str, str]]) -> str:
|
| 47 |
+
return (f'<section class="mnav-group"><p>{title}</p><ul>'
|
| 48 |
+
+ "".join(menu_link(*link) for link in links) + '</ul></section>')
|
| 49 |
+
|
| 50 |
+
product_groups = [
|
| 51 |
+
("PRODUCTS", [
|
| 52 |
+
("Agentic Work Management", "/product/ai", "For cross-functional teams", "pink", ""),
|
| 53 |
+
("Asana Service Management", "/product/service-management", "For service teams", "green", "Coming soon"),
|
| 54 |
+
("Asana Client Management", "/product/client-management", "For teams delivering client work", "yellow", "Coming soon"),
|
| 55 |
+
("Command by Asana", "/product/command", "For developer teams", "blue", "Coming soon"),
|
| 56 |
+
("StackAI by Asana", "/product/stackai", "For every critical workflow", "gray", ""),
|
| 57 |
+
]),
|
| 58 |
+
("AI PLATFORM", [
|
| 59 |
+
("AI Teammates", "/product/ai/ai-teammates", "Ready-to-go AI agents for every team", "plain", ""),
|
| 60 |
+
("AI Studio", "/product/ai/ai-studio", "Powerful no-code automations", "plain", ""),
|
| 61 |
+
("Asana Dash", "/product/ai/dash", "Your AI Chief of Staff", "plain", ""),
|
| 62 |
+
]),
|
| 63 |
+
("ASANA FOUNDATIONS", [
|
| 64 |
+
("Admin and security", "/features/admin-security", "", "", ""),
|
| 65 |
+
("App integrations", "/apps", "", "", ""),
|
| 66 |
+
("Developer", "/developers", "", "", ""),
|
| 67 |
+
("Latest feature release", "/whats-new", "", "", ""),
|
| 68 |
+
]),
|
| 69 |
+
]
|
| 70 |
+
solution_groups = [
|
| 71 |
+
("COMPANY TYPE", [("Enterprise", "/enterprise", "", "", ""), ("Small business", "/small-business", "", "", ""), ("Nonprofit", "/industry/nonprofit", "", "", ""), ("Agencies", "/agencies", "", "", "")]),
|
| 72 |
+
("TEAMS", [("Operations", "/teams/operations", "", "", ""), ("Marketing", "/teams/marketing", "", "", ""), ("IT", "/teams/it", "", "", ""), ("Leaders", "/teams/leaders", "", "", "")]),
|
| 73 |
+
("INDUSTRIES", [("Government", "/industry/government-solutions", "", "", ""), ("Healthcare", "/industry/healthcare", "", "", ""), ("Retail", "/industry/retail", "", "", ""), ("Financial services", "/industry/financial-services", "", "", ""), ("Education", "/industry/education", "", "", ""), ("Manufacturing", "/industry/manufacturing", "", "", "")]),
|
| 74 |
+
("USE CASES", [("Goal management", "/uses/goal-management", "", "", ""), ("Organizational planning", "/uses/organizational-planning", "", "", ""), ("Project intake", "/uses/project-intake", "", "", ""), ("Resource planning", "/uses/resource-planning", "", "", ""), ("Product launches", "/uses/product-launch", "", "", ""), ("View all use cases", "/uses", "", "", "")]),
|
| 75 |
+
]
|
| 76 |
+
learning_groups = [
|
| 77 |
+
("LEARN", [("Resource center", "/resources", "", "", ""), ("Events and webinars", "/events", "", "", ""), ("Customer stories", "/customers", "", "", ""), ("Asana Academy", "/academy", "", "", ""), ("Certifications", "/certifications", "", "", ""), ("Trainings", "/academy/trainings", "", "", "")]),
|
| 78 |
+
("SUPPORT", [("Help Center", "/help", "", "", ""), ("Community", "/community", "", "", ""), ("Templates", "/templates", "", "", "")]),
|
| 79 |
+
("SERVICES", [("Customer Success", "/customer-success", "", "", ""), ("Find a partner", "/partners/channel/directory", "", "", ""), ("Become a partner", "/partners", "", "", "")]),
|
| 80 |
+
]
|
| 81 |
+
menu_specs = [
|
| 82 |
+
("Products", "product", product_groups),
|
| 83 |
+
("Solutions", "solutions", solution_groups),
|
| 84 |
+
("Learning & support", "resources", learning_groups),
|
| 85 |
+
]
|
| 86 |
+
menu_buttons = "".join(
|
| 87 |
+
f'<button class="mnav-link has-menu{" active" if active == key else ""}" type="button" '
|
| 88 |
+
f'data-nav-menu="{key}" aria-expanded="false" aria-controls="mnav-panel-{key}">{label}</button>'
|
| 89 |
+
for label, key, _ in menu_specs
|
| 90 |
+
)
|
| 91 |
+
panels = "".join(
|
| 92 |
+
f'<div class="mnav-panel mnav-panel-{key}" id="mnav-panel-{key}" role="tabpanel" '
|
| 93 |
+
f'aria-hidden="true">{"".join(group(title, links) for title, links in groups)}</div>'
|
| 94 |
+
for _, key, groups in menu_specs
|
| 95 |
+
)
|
| 96 |
+
items = menu_buttons + (
|
| 97 |
+
f'<a href="/pricing" class="mnav-link{" active" if active == "pricing" else ""}">Pricing</a>'
|
| 98 |
+
)
|
| 99 |
+
if active == "pricing":
|
| 100 |
+
actions = f"""<a class="mnav-language" href="/resources" aria-label="Choose your preferred language">{LANGUAGE_SVG}</a>
|
| 101 |
+
<a class="pricing-sales-link" href="/solutions">Contact sales</a>
|
| 102 |
+
<a class="btn primary sales" href="/create-account">Get started</a>"""
|
| 103 |
+
else:
|
| 104 |
+
actions = f"""<a class="mnav-language" href="/resources" aria-label="Choose your preferred language">{LANGUAGE_SVG}</a>
|
| 105 |
+
<a class="btn ghost" href="/-/login">Log in</a>
|
| 106 |
+
<a class="btn ghost sales" href="/solutions">Contact sales</a>
|
| 107 |
+
<a class="btn primary" href="/create-account">Get started</a>"""
|
| 108 |
+
return f"""<header class="mnav">
|
| 109 |
+
<div class="mnav-inner">
|
| 110 |
+
<a class="mnav-logo" href="/" aria-label="Asana home">{LOGO_SVG}<span>asana</span></a>
|
| 111 |
+
<button class="mnav-burger" aria-label="Menu" aria-expanded="false" onclick="const links=document.querySelector('.mnav-links');const open=links.classList.toggle('open');this.setAttribute('aria-expanded',String(open))">☰</button>
|
| 112 |
+
<nav class="mnav-links">{items}</nav>
|
| 113 |
+
<div class="mnav-actions">{actions}</div>
|
| 114 |
+
</div>
|
| 115 |
+
</header>
|
| 116 |
+
<div class="mnav-layer" hidden>
|
| 117 |
+
<button class="mnav-scrim" type="button" aria-label="Close navigation menu"></button>
|
| 118 |
+
<div class="mnav-mega-shell"><div class="mnav-panel-slot">{panels}</div>
|
| 119 |
+
<div class="mnav-mega-footer"><a href="/sales"><i aria-hidden="true">▣</i>Contact sales</a>
|
| 120 |
+
<a href="/demo/main"><i aria-hidden="true">◯</i>View demo</a>
|
| 121 |
+
<a href="/download"><i aria-hidden="true">⇩</i>Download app</a></div>
|
| 122 |
+
</div>
|
| 123 |
+
</div>"""
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
def _marketing_footer(full_home: bool = False) -> str:
|
| 127 |
+
if full_home:
|
| 128 |
+
cols = [
|
| 129 |
+
("New to Asana?", [("Product overview", "/product"), ("All features", "/product#features"),
|
| 130 |
+
("Latest feature release", "/product#latest"), ("Pricing", "/pricing"),
|
| 131 |
+
("Starter plan", "/pricing#starter"), ("Advanced plan", "/pricing#advanced"),
|
| 132 |
+
("Enterprise", "/solutions#enterprise"), ("App integrations", "/product#integrations"),
|
| 133 |
+
("AI work management", "/product#ai"), ("Project management", "/resources")]),
|
| 134 |
+
("Use cases", [("Campaign management", "/templates/marketing"), ("Content calendar", "/templates/marketing"),
|
| 135 |
+
("Creative production", "/templates/design"), ("Goal management", "/templates/operations-pmo"),
|
| 136 |
+
("New hire onboarding", "/templates/hr"), ("Organizational planning", "/templates/operations-pmo"),
|
| 137 |
+
("Product launches", "/templates/product-engineering"), ("Resource planning", "/resources"),
|
| 138 |
+
("Strategic planning", "/resources/category/strategic-planning"),
|
| 139 |
+
("Task Management", "/product")]),
|
| 140 |
+
("Solutions", [("Small business", "/solutions"), ("Marketing", "/solutions#marketing"),
|
| 141 |
+
("Operations", "/solutions#operations"), ("IT", "/templates/it"),
|
| 142 |
+
("Product", "/solutions#product"), ("Sales", "/templates/sales-cx"),
|
| 143 |
+
("Healthcare", "/solutions#enterprise"), ("Retail", "/solutions#enterprise"),
|
| 144 |
+
("Government", "/solutions#enterprise"), ("Education", "/solutions#enterprise")]),
|
| 145 |
+
("Resources", [("Help Center", "/resources#support"), ("Get support", "/resources#support"),
|
| 146 |
+
("Asana Academy", "/resources#guide"), ("Certifications", "/resources#guide"),
|
| 147 |
+
("Forum", "/resources"), ("Resource center", "/resources"),
|
| 148 |
+
("Events and webinars", "/resources"), ("Project templates", "/templates"),
|
| 149 |
+
("Customer Success", "/resources"), ("Developers and API", "/resources")]),
|
| 150 |
+
("Company", [("About us", "/resources"), ("Leadership", "/resources"),
|
| 151 |
+
("Customers", "/resources"), ("Careers", "/resources"),
|
| 152 |
+
("Inside Asana", "/resources"), ("Culture", "/resources"),
|
| 153 |
+
("Press", "/resources"), ("Investor relations", "/resources"),
|
| 154 |
+
("Trust and security", "/resources"), ("Privacy", "/terms/privacy-statement")]),
|
| 155 |
+
]
|
| 156 |
+
body = "".join(
|
| 157 |
+
'<div class="fcol"><h4>%s</h4>%s</div>' % (
|
| 158 |
+
title, "".join(f'<a href="{href}">{label}</a>' for label, href in links))
|
| 159 |
+
for title, links in cols)
|
| 160 |
+
return f"""<footer class="mfooter mfooter-home">
|
| 161 |
+
<div class="mfooter-inner">
|
| 162 |
+
<div class="fbrand" aria-label="Asana home">{LOGO_SVG}</div>
|
| 163 |
+
<div class="fcols">{body}</div>
|
| 164 |
+
<div class="flegal-row">
|
| 165 |
+
<span>© 2026 Asana, Inc.</span><a href="/resources">◎ English</a>
|
| 166 |
+
<span class="fsocial" aria-label="Social links"><a href="/resources">X</a><a href="/resources">in</a><a href="/resources">◎</a><a href="/resources">f</a><a href="/resources">▶</a></span>
|
| 167 |
+
<a href="/terms/terms-of-service">Terms</a><span>&</span><a href="/terms/privacy-statement">Privacy</a>
|
| 168 |
+
</div>
|
| 169 |
+
<div class="fapp-row"><a href="/resources"> App Store</a><a href="/resources">▶ Google Play</a></div>
|
| 170 |
+
</div>
|
| 171 |
+
</footer>"""
|
| 172 |
+
cols = [
|
| 173 |
+
("Asana", [("Home", "/"), ("Product", "/product"), ("Pricing", "/pricing"),
|
| 174 |
+
("Templates", "/templates"), ("Log In", "/-/login")]),
|
| 175 |
+
("Solutions", [("Marketing", "/solutions#marketing"), ("Operations", "/solutions#operations"),
|
| 176 |
+
("Product teams", "/solutions#product"), ("Enterprise", "/solutions#enterprise")]),
|
| 177 |
+
("Resources", [("Resource center", "/resources"), ("Asana guide", "/resources#guide"),
|
| 178 |
+
("Templates", "/templates"), ("Support", "/resources#support")]),
|
| 179 |
+
("Get started", [("Sign Up", "/create-account"), ("View demo", "/demo/main"),
|
| 180 |
+
("Terms", "/terms/terms-of-service"),
|
| 181 |
+
("Privacy", "/terms/privacy-statement")]),
|
| 182 |
+
]
|
| 183 |
+
body = "".join(
|
| 184 |
+
'<div class="fcol"><h4>%s</h4>%s</div>' % (
|
| 185 |
+
t, "".join(
|
| 186 |
+
f'<a href="{h}"{" id=\"footer-support\"" if x == "Support" else ""}>{x}</a>'
|
| 187 |
+
for x, h in ls))
|
| 188 |
+
for t, ls in cols)
|
| 189 |
+
return f"""<footer class="mfooter">
|
| 190 |
+
<div class="mfooter-inner">
|
| 191 |
+
<div class="fbrand">{LOGO_SVG}<span>asana</span></div>
|
| 192 |
+
<div class="fcols">{body}</div>
|
| 193 |
+
<p class="flegal">Offline WebsiteBench demo clone. Local data only — no
|
| 194 |
+
connection to Asana, Inc.</p>
|
| 195 |
+
</div>
|
| 196 |
+
</footer>"""
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
def _page(title: str, active: str, main: str) -> str:
|
| 200 |
+
support = ""
|
| 201 |
+
if active == "pricing":
|
| 202 |
+
support = """<aside class="synthetic-help" aria-label="Synthetic local help" hidden>
|
| 203 |
+
<div class="synthetic-help-panel" id="synthetic-help-panel">
|
| 204 |
+
<button class="synthetic-help-close" type="button" aria-label="Close help"
|
| 205 |
+
onclick="document.querySelector('.synthetic-help').hidden=true"
|
| 206 |
+
>×</button>
|
| 207 |
+
<p class="synthetic-help-copy desktop-copy">Get clear, local guidance for choosing a<br>
|
| 208 |
+
plan that fits your team's current work.<br>
|
| 209 |
+
Review collaboration needs,<br>
|
| 210 |
+
billing options, and helpful features in<br>
|
| 211 |
+
this demo.</p>
|
| 212 |
+
<p class="synthetic-help-copy mobile-copy">Local synthetic pricing guidance is here.<br>
|
| 213 |
+
Compare team plans and workflow goals.<br>
|
| 214 |
+
Nothing is sent outside this demo.</p>
|
| 215 |
+
</div>
|
| 216 |
+
<button class="synthetic-help-launcher" type="button" aria-controls="synthetic-help-panel"
|
| 217 |
+
onclick="const panel=document.getElementById('synthetic-help-panel');panel.dataset.touched='1';panel.hidden=!panel.hidden">
|
| 218 |
+
<span class="synthetic-help-mark" aria-hidden="true"><i></i><i></i><i></i></span>
|
| 219 |
+
<span>Synthetic help</span>
|
| 220 |
+
</button>
|
| 221 |
+
</aside><script>
|
| 222 |
+
(() => {
|
| 223 |
+
const help = document.querySelector('.synthetic-help');
|
| 224 |
+
const panel = document.getElementById('synthetic-help-panel');
|
| 225 |
+
const opener = document.getElementById('footer-support');
|
| 226 |
+
opener.addEventListener('click', event => {
|
| 227 |
+
event.preventDefault(); help.hidden = false; panel.hidden = false;
|
| 228 |
+
});
|
| 229 |
+
})();
|
| 230 |
+
</script>"""
|
| 231 |
+
is_home = active == ""
|
| 232 |
+
body_class = "marketing home-marketing" if is_home else "marketing"
|
| 233 |
+
home_script = '<script src="/static/home.js" defer></script>' if is_home else ""
|
| 234 |
+
return (_head(title) + f"<body class='{body_class}'>" + _marketing_nav(active)
|
| 235 |
+
+ f"<main>{main}</main>" + _marketing_footer(is_home)
|
| 236 |
+
+ '<script src="/static/public-nav.js" defer></script>' + home_script
|
| 237 |
+
+ support + "</body></html>")
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
NAV_DETAIL_PAGES = {
|
| 241 |
+
"/product/ai": "product",
|
| 242 |
+
"/product/service-management": "product",
|
| 243 |
+
"/product/client-management": "product",
|
| 244 |
+
"/product/command": "product",
|
| 245 |
+
"/product/stackai": "product",
|
| 246 |
+
"/product/ai/ai-teammates": "product",
|
| 247 |
+
"/product/ai/ai-studio": "product",
|
| 248 |
+
"/product/ai/dash": "product",
|
| 249 |
+
"/features/admin-security": "product",
|
| 250 |
+
"/apps": "product",
|
| 251 |
+
"/developers": "product",
|
| 252 |
+
"/whats-new": "product",
|
| 253 |
+
"/enterprise": "solutions",
|
| 254 |
+
"/small-business": "solutions",
|
| 255 |
+
"/industry/nonprofit": "solutions",
|
| 256 |
+
"/agencies": "solutions",
|
| 257 |
+
"/teams/operations": "solutions",
|
| 258 |
+
"/teams/marketing": "solutions",
|
| 259 |
+
"/teams/it": "solutions",
|
| 260 |
+
"/teams/leaders": "solutions",
|
| 261 |
+
"/industry/government-solutions": "solutions",
|
| 262 |
+
"/industry/healthcare": "solutions",
|
| 263 |
+
"/industry/retail": "solutions",
|
| 264 |
+
"/industry/financial-services": "solutions",
|
| 265 |
+
"/industry/education": "solutions",
|
| 266 |
+
"/industry/manufacturing": "solutions",
|
| 267 |
+
"/uses/goal-management": "solutions",
|
| 268 |
+
"/uses/organizational-planning": "solutions",
|
| 269 |
+
"/uses/project-intake": "solutions",
|
| 270 |
+
"/uses/resource-planning": "solutions",
|
| 271 |
+
"/uses/product-launch": "solutions",
|
| 272 |
+
"/uses": "solutions",
|
| 273 |
+
"/events": "resources",
|
| 274 |
+
"/customers": "resources",
|
| 275 |
+
"/academy": "resources",
|
| 276 |
+
"/certifications": "resources",
|
| 277 |
+
"/academy/trainings": "resources",
|
| 278 |
+
"/help": "resources",
|
| 279 |
+
"/community": "resources",
|
| 280 |
+
"/customer-success": "resources",
|
| 281 |
+
"/partners/channel/directory": "resources",
|
| 282 |
+
"/partners": "resources",
|
| 283 |
+
"/sales": "resources",
|
| 284 |
+
"/download": "resources",
|
| 285 |
+
}
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
def nav_detail_page(path: str) -> str:
|
| 289 |
+
active = NAV_DETAIL_PAGES[path]
|
| 290 |
+
snapshot_file = (Path(__file__).resolve().parent.parent / "static" /
|
| 291 |
+
"official-pages" / f"{path.strip('/').replace('/', '--')}.json")
|
| 292 |
+
snapshot = json.loads(snapshot_file.read_text(encoding="utf-8"))
|
| 293 |
+
stylesheets = "".join(snapshot["stylesheets"])
|
| 294 |
+
if snapshot.get("external"):
|
| 295 |
+
static_root = Path(__file__).resolve().parent.parent / "static"
|
| 296 |
+
inline_styles = []
|
| 297 |
+
for stylesheet in snapshot["stylesheets"]:
|
| 298 |
+
match = re.search(r'href="/static/([^"]+\.css)"', stylesheet)
|
| 299 |
+
if match:
|
| 300 |
+
css_file = static_root / match.group(1)
|
| 301 |
+
inline_styles.append(f"<style>{css_file.read_text(encoding='utf-8')}</style>")
|
| 302 |
+
elif stylesheet.startswith("<style>"):
|
| 303 |
+
inline_styles.append(stylesheet)
|
| 304 |
+
body_attributes = dict(snapshot.get("body_attributes", {}))
|
| 305 |
+
external_header = ""
|
| 306 |
+
external_script = ""
|
| 307 |
+
extra_head = ""
|
| 308 |
+
if path == "/help":
|
| 309 |
+
body_attributes["class"] = f'marketing {body_attributes.get("class", "")}'.strip()
|
| 310 |
+
external_header = _marketing_nav("resources")
|
| 311 |
+
external_script = '<script src="/static/public-nav.js" defer></script>'
|
| 312 |
+
extra_head = '<link rel="stylesheet" href="/static/site.css?v=official-pages-3">'
|
| 313 |
+
elif path.startswith("/academy"):
|
| 314 |
+
body_attributes["class"] = f'marketing {body_attributes.get("class", "")}'.strip()
|
| 315 |
+
external_header = _marketing_nav("resources")
|
| 316 |
+
external_script = '<script src="/static/public-nav.js" defer></script>'
|
| 317 |
+
extra_head = """<link rel="stylesheet" href="/static/site.css?v=official-pages-3">
|
| 318 |
+
<style>
|
| 319 |
+
body.marketing>.mnav{display:block!important;position:relative!important;top:auto!important;height:68px!important;visibility:visible!important;opacity:1!important;z-index:10000!important}
|
| 320 |
+
#asana-homepage .styles-module_hero-container__lEZxv{position:relative;display:block;margin:24px}
|
| 321 |
+
#asana-homepage .styles-module_hero__o-pUo{width:100%;aspect-ratio:213/125;background-position:center;background-size:cover;border-radius:28px}
|
| 322 |
+
#asana-homepage .styles-module_content-container__hl45r{position:absolute;z-index:2;top:48px;left:40px;align-items:flex-start;padding:0}
|
| 323 |
+
#asana-homepage .styles-module_content-container__hl45r h1{max-width:620px;color:#fff;text-align:left}
|
| 324 |
+
#asana-homepage .styles-module_cta-container__fwAZH{display:flex;flex-direction:row;gap:8px;width:auto}
|
| 325 |
+
#asana-homepage .styles-module_cta-container__fwAZH a{width:auto!important;background:rgba(255,255,255,.15)!important;border:1px solid #fff!important;color:#fff!important}
|
| 326 |
+
@media(max-width:767px){#asana-homepage .styles-module_content-container__hl45r{position:relative;top:auto;left:auto;padding:32px 24px}#asana-homepage .styles-module_content-container__hl45r h1{color:inherit}#asana-homepage .styles-module_cta-container__fwAZH{flex-direction:column;width:100%}}
|
| 327 |
+
</style>"""
|
| 328 |
+
elif path == "/community":
|
| 329 |
+
extra_head = """<style>
|
| 330 |
+
.custom-search-banner__content h1,.community-stats-item .title,.community-stats-item .title a{opacity:1!important;visibility:visible!important;color:#fff!important}
|
| 331 |
+
.custom-search-banner .search-term__input{opacity:1!important;visibility:visible!important;color:#2d2e2f!important;-webkit-text-fill-color:#2d2e2f!important}
|
| 332 |
+
.custom-search-banner .search-term__input::placeholder{color:#777!important;opacity:1!important}
|
| 333 |
+
</style>"""
|
| 334 |
+
body_attrs = " ".join(
|
| 335 |
+
f'{html.escape(key)}="{html.escape(value)}"'
|
| 336 |
+
for key, value in body_attributes.items()
|
| 337 |
+
)
|
| 338 |
+
return f"""<!doctype html><html lang="en"><head><meta charset="utf-8">
|
| 339 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
| 340 |
+
<title>{html.escape(snapshot["title"])}</title><link rel="icon" href="/static/favicon.svg" type="image/svg+xml">
|
| 341 |
+
{"".join(inline_styles)}{extra_head}<style>html,body{{overflow-x:hidden}}</style></head>
|
| 342 |
+
<body {body_attrs}>{external_header}{snapshot["html"]}{external_script}</body></html>"""
|
| 343 |
+
return f"""<!doctype html><html lang="en"><head><meta charset="utf-8">
|
| 344 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
| 345 |
+
<title>{html.escape(snapshot["title"])}</title><link rel="icon" href="/static/favicon.svg" type="image/svg+xml">
|
| 346 |
+
{stylesheets}<link rel="stylesheet" href="/static/site.css?v=official-pages-4"></head>
|
| 347 |
+
<body class="marketing official-snapshot">{_marketing_nav(active)}{snapshot["html"]}
|
| 348 |
+
<script src="/static/public-nav.js" defer></script></body></html>"""
|
| 349 |
+
|
| 350 |
+
def home_page() -> str:
|
| 351 |
+
ai_tabs = [
|
| 352 |
+
("Asana Work Graph®", "A neural network of every person, task, project, goal, and dependency, so humans and agents always know who is doing what, by when, and toward which goal.", "/static/source/product-hero.png", "Connected work graph across goals, projects, and AI agents"),
|
| 353 |
+
("Multiplayer", "Every workflow, app, and agent runs in a shared space where humans and agents act on the same plan and see the same context.", "/static/source/resource-ai-at-work.avif", "People and AI coordinating work in one shared space"),
|
| 354 |
+
("Shared memory", "AI Teammates learn from completed work, feedback, and preferences, so every workflow starts smarter than the last.", "/static/source/home-project.webp", "A shared product launch plan with human and AI teammates"),
|
| 355 |
+
("Enterprise governance", "Every agent has an identity, scoped permissions, an audit trail, and cost constraints governed from the same console as human users.", "/static/source/resource-workflow-automation.avif", "Governed workflow automation in Asana"),
|
| 356 |
+
]
|
| 357 |
+
ai_controls = "".join(
|
| 358 |
+
f'''<button class="ai-story-tab{' is-active' if index == 0 else ''}" type="button" role="tab"
|
| 359 |
+
aria-selected="{'true' if index == 0 else 'false'}" data-image="{image}" data-alt="{alt}" data-stage-title="{title}">
|
| 360 |
+
<span>{title}</span><b aria-hidden="true">{'−' if index == 0 else '+'}</b><p>{copy}</p></button>'''
|
| 361 |
+
for index, (title, copy, image, alt) in enumerate(ai_tabs)
|
| 362 |
+
)
|
| 363 |
+
teammates = [
|
| 364 |
+
("Launch Planner", "Turns project goals into step-by-step timelines so you can hit every deadline without constant coordination.", "ROADMAP SYNCING · GTM SEQUENCING", "#9EF2A4"),
|
| 365 |
+
("Workflow Optimizer", "Finds bottlenecks in your workflows and suggests fixes so work keeps moving.", "ARTIFACT AUDITING · MESSAGING COMPLIANCE", "#FFD4FF"),
|
| 366 |
+
("Compliance Specialist", "Reviews project docs against regulatory standards so teams stay compliant without slowing down.", "POLICY REVIEW · DEPENDENCY MAPPING", "#B8A1FF"),
|
| 367 |
+
("Status Reporter", "Turns project updates into executive-ready reports to keep leaders aligned and in the loop.", "STATUS SYNTHESIS · GTM SEQUENCING", "#F6FF8E"),
|
| 368 |
+
("Data Quality Manager", "Cleans up missing data and naming formats so your workspace stays organized and reliable.", "LINGUISTIC QA · REGIONAL NUANCING", "#FFC785"),
|
| 369 |
+
]
|
| 370 |
+
teammate_cards = "".join(
|
| 371 |
+
f'''<article class="teammate-card"><i style="--agent-color:{color}" aria-hidden="true">✣</i>
|
| 372 |
+
<h3>{title}</h3><p>{copy}</p><small>SKILLS</small><strong>{skills}</strong></article>'''
|
| 373 |
+
for title, copy, skills, color in teammates
|
| 374 |
+
)
|
| 375 |
+
products = [
|
| 376 |
+
("Agentic Work Management", "Agentic Work Management brings together AI Teammates, AI Studio, Asana Dash, and MCP and AI Connectors — so your team and your agents run critical workflows together.", "/static/source/home-project.webp", "Launch plan run by human and AI teammates", "#FFD4FF"),
|
| 377 |
+
("Asana Service Management", "One AI-native enterprise service management platform for IT, HR, facilities, and legal.", "/static/source/resource-workflow-automation.avif", "Automated service management workflow", "#9EF2A4"),
|
| 378 |
+
("Asana Client Management", "Build lasting client relationships on an AI-native platform built for agency work.", "/static/source/resource-work-management.avif", "Connected client work management", "#F6FF8E"),
|
| 379 |
+
("Command by Asana", "Ship faster with humans and agents in sync.", "/static/source/resource-project-planning.avif", "Project planning with humans and agents in sync", "#9EDCF2"),
|
| 380 |
+
("StackAI by Asana", "Drag and drop to create powerful Agentic Workflows connected to any app, with enterprise-level governance.", "/static/source/resource-strategic-planning.avif", "Enterprise agentic workflow builder", "#FFFFFF"),
|
| 381 |
+
]
|
| 382 |
+
product_tabs = "".join(
|
| 383 |
+
f'''<button class="productivity-tab{' is-active' if index == 0 else ''}" type="button" role="tab"
|
| 384 |
+
style="--pill:{color}" aria-selected="{'true' if index == 0 else 'false'}"
|
| 385 |
+
data-title="{title}" data-copy="{copy}" data-image="{image}" data-alt="{alt}">{title}</button>'''
|
| 386 |
+
for index, (title, copy, image, alt, color) in enumerate(products)
|
| 387 |
+
)
|
| 388 |
+
return _page("The OS for human-agent teams • Asana", "", """
|
| 389 |
+
<section class="hero source-home">
|
| 390 |
+
<div class="source-orbit" aria-hidden="true">
|
| 391 |
+
<canvas class="mobile-orbit-canvas" width="975" height="1250"></canvas>
|
| 392 |
+
<svg class="orbit-wires" viewBox="0 0 1280 674" preserveAspectRatio="none">
|
| 393 |
+
<path class="wire hot" d="M250 79H348Q365 79 365 62V60Q365 43 382 43H457M584 43H665Q682 43 682 60V70H789M826 70H1043Q1060 70 1060 87V103"/>
|
| 394 |
+
<path class="wire pale" d="M111 126V420Q111 437 128 437H132Q149 437 149 454V601M292 630H535Q552 630 552 614Q552 601 569 601H597M635 627H825Q842 627 842 610V563M921 627H1019Q1036 627 1036 610V563"/>
|
| 395 |
+
<path class="wire hot" d="M1060 162V228H1134Q1152 228 1152 246V298"/>
|
| 396 |
+
<path class="wire pale" d="M1152 352V445Q1152 463 1134 463H1053Q1036 463 1036 480V513"/>
|
| 397 |
+
<circle cx="250" cy="79" r="3"/><circle cx="457" cy="43" r="3"/><circle cx="584" cy="43" r="3"/><circle cx="789" cy="70" r="3"/><circle cx="826" cy="70" r="3"/><circle cx="1060" cy="103" r="3"/><circle cx="1060" cy="162" r="3"/><circle cx="1152" cy="298" r="3"/><circle cx="1152" cy="352" r="3"/><circle cx="1036" cy="513" r="3"/><circle cx="149" cy="601" r="3"/><circle cx="292" cy="630" r="3"/><circle cx="842" cy="627" r="3"/><circle cx="921" cy="627" r="3"/>
|
| 398 |
+
</svg>
|
| 399 |
+
<svg class="orbit-mobile-wires" viewBox="0 0 390 500" preserveAspectRatio="none">
|
| 400 |
+
<path class="hot" d="M159 82H194Q196 82 196 88Q196 98 207 98H248"/>
|
| 401 |
+
<path class="hot" d="M329 116V180"/>
|
| 402 |
+
<path class="hot" d="M52 205V187Q52 176 63 176H123"/>
|
| 403 |
+
<path class="hot" d="M221 176H254Q265 176 265 187Q265 199 276 199H309"/>
|
| 404 |
+
<path class="soft" d="M183 228H232Q243 228 243 239V295"/>
|
| 405 |
+
<circle cx="159" cy="82" r="2"/><circle cx="248" cy="98" r="2"/><circle cx="329" cy="116" r="2"/><circle cx="329" cy="180" r="2"/><circle cx="52" cy="205" r="2"/><circle cx="123" cy="176" r="2"/><circle cx="221" cy="176" r="2"/><circle cx="309" cy="199" r="2"/><circle cx="183" cy="228" r="2"/><circle cx="243" cy="295" r="2"/>
|
| 406 |
+
</svg>
|
| 407 |
+
<span class="orbit-node team-person"></span><span class="orbit-node team-bot">✿</span>
|
| 408 |
+
<span class="orbit-node team-plan">▲</span><span class="orbit-node google-node">▲</span>
|
| 409 |
+
<span class="orbit-card launch">Launch product<br>in 4 weeks</span>
|
| 410 |
+
<span class="orbit-chip planner">Launch Planner</span>
|
| 411 |
+
<span class="orbit-card readiness"><b>Pricing Strategist</b><small>Sales and launch readiness</small></span>
|
| 412 |
+
<span class="orbit-card launched"><i aria-hidden="true"></i><span>Product launched!</span></span>
|
| 413 |
+
<span class="orbit-card edits"><i aria-hidden="true"></i><span>Approve edits</span></span>
|
| 414 |
+
<span class="orbit-card enablement"><i aria-hidden="true"></i><span>Enablement</span></span>
|
| 415 |
+
<span class="orbit-node campaign-node">✿</span><span class="orbit-chip campaign-chip">Campaign Planner</span>
|
| 416 |
+
<span class="orbit-node bottom-person-one"></span><span class="orbit-node bottom-person-two"></span>
|
| 417 |
+
<img class="orbit-texture texture-initial" src="/static/source/home-initial.webp" alt="">
|
| 418 |
+
<img class="orbit-texture texture-launch" src="/static/source/home-launch.webp" alt="">
|
| 419 |
+
<img class="orbit-texture texture-avatar1" src="/static/source/home-avatar1.webp" alt="">
|
| 420 |
+
<img class="orbit-texture texture-google" src="/static/source/home-google.webp" alt="">
|
| 421 |
+
<img class="orbit-texture texture-drive" src="/static/source/home-drive.png" alt="">
|
| 422 |
+
<img class="orbit-texture texture-campaign" src="/static/source/home-campaign.webp" alt="">
|
| 423 |
+
<img class="orbit-texture texture-enablement" src="/static/source/home-enablement.webp" alt="">
|
| 424 |
+
<img class="orbit-texture texture-avatar2" src="/static/source/home-avatar2.webp" alt="">
|
| 425 |
+
<img class="orbit-texture texture-pricing" src="/static/source/home-pricing.webp" alt="">
|
| 426 |
+
<img class="orbit-texture texture-launched" src="/static/source/home-launched.webp" alt="">
|
| 427 |
+
<img class="orbit-texture texture-approve" src="/static/source/home-approve.webp" alt="">
|
| 428 |
+
</div>
|
| 429 |
+
<script>(()=>{const canvas=document.querySelector('.mobile-orbit-canvas');if(!canvas)return;
|
| 430 |
+
const draw=()=>{const x=canvas.getContext('2d');x.clearRect(0,0,975,1250);x.save();x.scale(2.5,2.5);
|
| 431 |
+
const line=(color,fn)=>{x.beginPath();fn();x.strokeStyle=color;x.lineWidth=2;x.lineCap='round';x.lineJoin='round';x.stroke()};
|
| 432 |
+
const rr=(a,b,w,h,r,fill='#fff',stroke='#d9d9d9')=>{x.beginPath();x.roundRect(a,b,w,h,r);x.fillStyle=fill;x.fill();if(stroke){x.strokeStyle=stroke;x.lineWidth=1;x.stroke()}};
|
| 433 |
+
line('#ed686b',()=>{x.moveTo(159,82);x.lineTo(194,82);x.quadraticCurveTo(207,82,207,94);x.quadraticCurveTo(207,98,215,98);x.lineTo(248,98)});
|
| 434 |
+
line('#ed686b',()=>{x.moveTo(329,116);x.lineTo(329,180)});
|
| 435 |
+
line('#ed686b',()=>{x.moveTo(52,205);x.lineTo(52,187);x.quadraticCurveTo(52,176,63,176);x.lineTo(123,176)});
|
| 436 |
+
line('#f39ac8',()=>{x.moveTo(183,228);x.lineTo(232,228);x.quadraticCurveTo(243,228,243,239);x.lineTo(243,295)});
|
| 437 |
+
rr(24,57,136,57,8);x.beginPath();x.moveTo(34,114);x.lineTo(34,122);x.lineTo(46,114);x.fillStyle='#fff';x.fill();x.strokeStyle='#d9d9d9';x.lineWidth=1;x.stroke();
|
| 438 |
+
x.fillStyle='#0d0e10';x.font='300 13px "TWK Lausanne"';x.fillText('Launch product',42,80);x.fillText('in 4 weeks',42,95);
|
| 439 |
+
x.beginPath();x.arc(96,117,14,0,Math.PI*2);x.fillStyle='#fff';x.fill();x.strokeStyle='#73df90';x.lineWidth=3;x.stroke();rr(91,112,10,10,2,'#fff','#111');x.fillStyle='#111';x.font='8px Arial';x.fillText('✿',92,120);
|
| 440 |
+
rr(113,109,65,12,2,'#b1f0ab',null);x.fillStyle='#111';x.font='300 7px "TWK Lausanne"';x.fillText('Launch Planner',116,118);
|
| 441 |
+
const node=(cx,cy,bg,inner)=>{x.beginPath();x.arc(cx,cy,20,0,Math.PI*2);x.fillStyle=bg;x.fill();x.strokeStyle='#d9d9d9';x.lineWidth=1;x.stroke();x.beginPath();x.arc(cx,cy,16.5,0,Math.PI*2);x.strokeStyle='#fff';x.lineWidth=3;x.stroke();inner&&inner(cx,cy)};
|
| 442 |
+
node(268,97,'#fff',(cx,cy)=>{x.beginPath();x.arc(cx,cy,12,0,Math.PI*2);x.fillStyle='#111';x.fill();x.beginPath();x.arc(cx,cy+1,8,0,Math.PI*2);x.fillStyle='#e5aa7e';x.fill();x.fillStyle='#1767a5';x.fillRect(cx-9,cy-13,5,8)});
|
| 443 |
+
node(308,97,'#306ff6',(cx,cy)=>{x.beginPath();x.arc(cx,cy,12,0,Math.PI*2);x.fillStyle='#fff';x.fill();x.fillStyle='#111';x.font='14px Arial';x.textAlign='center';x.textBaseline='middle';x.fillText('✿',cx,cy)});
|
| 444 |
+
node(342,97,'#f7cbfc',(cx,cy)=>{x.beginPath();x.arc(cx,cy,12,0,Math.PI*2);x.fillStyle='#fff';x.fill();x.fillStyle='#111';x.font='13px Arial';x.textAlign='center';x.textBaseline='middle';x.fillText('⌃',cx,cy+1)});
|
| 445 |
+
rr(123,160,98,31,8);rr(131,166,18,18,4,'#306ff6',null);x.fillStyle='#fff';x.fillRect(135,170,8,1);x.fillRect(135,174,8,1);x.fillRect(135,178,8,1);x.fillStyle='#0d0e10';x.font='300 11px "TWK Lausanne"';x.textAlign='left';x.textBaseline='alphabetic';x.fillText('Enablement',154,180);
|
| 446 |
+
node(330,201,'#fff',(cx,cy)=>{x.beginPath();x.moveTo(cx,cy-12);x.lineTo(cx-11,cy+9);x.lineTo(cx+11,cy+9);x.closePath();x.fillStyle='#79b66f';x.fill();x.beginPath();x.moveTo(cx-9,cy+8);x.lineTo(cx-1,cy-8);x.lineTo(cx+5,cy+8);x.closePath();x.fillStyle='#5ea4e8';x.fill();x.beginPath();x.moveTo(cx+1,cy-8);x.lineTo(cx+10,cy+8);x.lineTo(cx+5,cy+8);x.closePath();x.fillStyle='#c7d94f';x.fill()});
|
| 447 |
+
rr(24,205,159,47,8);x.beginPath();x.arc(46,228,13,0,Math.PI*2);x.fillStyle='#ebf56e';x.fill();x.fillStyle='#111';x.font='12px Arial';x.textAlign='center';x.textBaseline='middle';x.fillText('✿',46,228);rr(63,212,63,9,1,'#ebf56e',null);x.fillStyle='#111';x.font='300 7px "TWK Lausanne"';x.textAlign='left';x.textBaseline='alphabetic';x.fillText('Pricing Strategist',65,220);x.font='300 8px "TWK Lausanne"';x.fillText('Sales and launch readiness',64,238);
|
| 448 |
+
rr(106,295,181,47,8);x.beginPath();x.arc(129,318,11,0,Math.PI*2);x.fillStyle='#499e4e';x.fill();x.strokeStyle='#fff';x.lineWidth=2;x.beginPath();x.moveTo(124,318);x.lineTo(128,322);x.lineTo(135,313);x.stroke();x.fillStyle='#0d0e10';x.font='300 15px "TWK Lausanne"';x.textAlign='left';x.textBaseline='alphabetic';x.fillText('Product launched!',148,324);
|
| 449 |
+
x.restore()};document.fonts.ready.then(draw);window.addEventListener('resize',draw,{passive:true});})();</script>
|
| 450 |
+
<h1>The OS for<br><span class="grad">human-agent</span> teams</h1>
|
| 451 |
+
<h2>Supercharge your teams to get things done</h2>
|
| 452 |
+
<p class="signup-note">Try Asana for free. No credit card required.</p>
|
| 453 |
+
<div class="source-sso">
|
| 454 |
+
<a class="source-sso-btn" href="/create-account"><span class="google-g">G</span>Google</a>
|
| 455 |
+
<a class="source-sso-btn" href="/create-account"><span class="microsoft-mark">■</span>Microsoft</a>
|
| 456 |
+
</div>
|
| 457 |
+
<div class="source-or"><span>or</span></div>
|
| 458 |
+
<form class="source-signup" action="/create-account" method="get">
|
| 459 |
+
<input aria-label="Work email address" placeholder="name@company.com" type="email" name="email">
|
| 460 |
+
<button type="submit"><span class="desktop-label">Sign up</span><span class="mobile-label">Get started</span></button>
|
| 461 |
+
</form>
|
| 462 |
+
<p class="source-fineprint">By signing up, I agree to Asana's <a href="/resources">Terms of Service</a> and acknowledge the <a href="/resources">Privacy Statement</a>.</p>
|
| 463 |
+
<aside class="home-synthetic-help" aria-label="Synthetic local help">
|
| 464 |
+
<div class="home-synthetic-panel" hidden><button type="button" aria-label="Close local help" onclick="this.parentElement.hidden=true">×</button><p>Local synthetic help only. Nothing is sent.</p></div>
|
| 465 |
+
<button class="home-synthetic-launcher" type="button" onclick="this.previousElementSibling.hidden=!this.previousElementSibling.hidden"><span class="synthetic-help-mark" aria-hidden="true"><i></i><i></i><i></i></span><span>Ask local help</span></button>
|
| 466 |
+
</aside>
|
| 467 |
+
</section>""" + f"""
|
| 468 |
+
<section class="home-trust" aria-label="Customer trust">
|
| 469 |
+
<p><strong>85%</strong> of Fortune 100<br>companies choose Asana<sup>1</sup></p>
|
| 470 |
+
<div class="home-logos" aria-label="Customer logos"><span>amazon</span><span>accenture</span><span>Johnson&Johnson</span><span class="dell-logo">DELL</span><span>◆ MERCK</span></div>
|
| 471 |
+
</section>
|
| 472 |
+
|
| 473 |
+
<section class="home-ai-story" aria-labelledby="ai-story-heading">
|
| 474 |
+
<div class="home-section-heading"><h2 id="ai-story-heading">AI that works the way your team works</h2></div>
|
| 475 |
+
<div class="ai-story-layout">
|
| 476 |
+
<div class="ai-story-stage" aria-live="polite">
|
| 477 |
+
<span class="ai-stage-kicker">WORK GRAPH</span><h3 id="ai-stage-title">Asana Work Graph®</h3>
|
| 478 |
+
<img id="ai-stage-image" src="{ai_tabs[0][2]}" alt="{ai_tabs[0][3]}">
|
| 479 |
+
<div class="ai-stage-route" aria-hidden="true"><i>Goal</i><b>→</b><i>Project</i><b>→</b><i>AI teammate</i></div>
|
| 480 |
+
</div>
|
| 481 |
+
<div class="ai-story-tabs" role="tablist" aria-label="How Asana AI works">{ai_controls}</div>
|
| 482 |
+
</div>
|
| 483 |
+
</section>
|
| 484 |
+
|
| 485 |
+
<section class="home-teammates" aria-labelledby="teammates-heading">
|
| 486 |
+
<p class="section-kicker">AI TEAMMATES</p><h2 id="teammates-heading">Your team just got bigger</h2>
|
| 487 |
+
<div class="teammates-intro"><p>Pre-built AI agents that work alongside your team inside real workflows, with shared memory, governance, and context from the Work Graph, so they are ready to go on day one.</p><a href="/product#ai">Learn more <span>→</span></a></div>
|
| 488 |
+
<div class="teammate-rail">{teammate_cards}</div>
|
| 489 |
+
</section>
|
| 490 |
+
|
| 491 |
+
<section class="home-productivity" aria-labelledby="productivity-heading">
|
| 492 |
+
<div class="productivity-inner"><h2 id="productivity-heading">Deliver real productivity for every team</h2>
|
| 493 |
+
<div class="productivity-tabs" role="tablist" aria-label="Asana products">{product_tabs}</div>
|
| 494 |
+
<div class="productivity-stage" aria-live="polite">
|
| 495 |
+
<article class="productivity-side productivity-side-left"><span>CONNECTED WORK</span><strong id="product-left-title">Goals and portfolios</strong><p id="product-left-copy">Strategy stays connected to every project.</p></article>
|
| 496 |
+
<article class="productivity-main"><div><i aria-hidden="true">✣</i><span><h3 id="product-title">{products[0][0]}</h3><p id="product-copy">{products[0][1]}</p></span></div><img id="product-image" src="{products[0][2]}" alt="{products[0][3]}"></article>
|
| 497 |
+
<article class="productivity-side productivity-side-right"><span>HUMAN + AI</span><strong id="product-right-title">One shared plan</strong><p id="product-right-copy">People and agents act with the same context.</p></article>
|
| 498 |
+
</div>
|
| 499 |
+
</div>
|
| 500 |
+
</section>
|
| 501 |
+
|
| 502 |
+
<section class="home-case" aria-label="Customer story">
|
| 503 |
+
<div class="case-connector" aria-hidden="true"><i></i><b>✣</b></div>
|
| 504 |
+
<div class="case-grid"><div class="case-image"><img src="/static/source/home-cos.webp" alt="COS fashion collection displayed in a bright showroom"></div>
|
| 505 |
+
<blockquote><div class="cos-logo">COS</div><span class="quote-mark">”</span><p>By building scalable workflows and leveraging AI with intention, we’ve been able to increase visibility and speed while focusing our energy on strategic execution.</p><footer><strong>Simone Williams</strong><small>Chief Digital, Technology & Business Development Officer, COS</small></footer></blockquote>
|
| 506 |
+
</div>
|
| 507 |
+
</section>
|
| 508 |
+
|
| 509 |
+
<section class="home-get-started" aria-labelledby="get-started-heading">
|
| 510 |
+
<div><h2 id="get-started-heading">Get started easily</h2><p>Tour the platform, read a few deep dives, or kickstart your work management journey with the right template.</p></div>
|
| 511 |
+
<nav aria-label="Get started resources"><a href="/demo/main"><span><strong>Try the Asana demo</strong><small>See Asana in action</small></span><b>→</b></a><a href="/resources"><span><strong>Discover resources</strong><small>Help articles and tutorials</small></span><b>→</b></a><a href="/templates"><span><strong>Start with a template</strong><small>Get started faster with a template</small></span><b>→</b></a></nav>
|
| 512 |
+
</section>
|
| 513 |
+
|
| 514 |
+
<section class="home-recognition" aria-labelledby="recognition-heading">
|
| 515 |
+
<div class="recognition-connector" aria-hidden="true"><i></i><b>✣</b></div><h2 id="recognition-heading">Recognized as a leader</h2>
|
| 516 |
+
<div class="award-grid"><article><div class="award-art award-gartner"><span class="gartner-grid"><i></i><i></i><i></i><i></i><i></i><i></i></span></div><h3>A Leader in the Collaborative Work Management three years in a row</h3><a href="/resources">Learn more <span>→</span></a></article>
|
| 517 |
+
<article><div class="award-art award-g2"><span><b>RANKED #2</b><i>2025<br><strong>Top 50</strong><small>PROJECT MANAGEMENT PRODUCTS</small></i></span><span><b>RANKED #2</b><i>2025<br><strong>Top 50</strong><small>SMALL BUSINESS PRODUCTS</small></i></span><span><b>RANKED #3</b><i>2025<br><strong>Top 100</strong><small>BEST SOFTWARE PRODUCTS</small></i></span></div><h3>A leader in Work Management and OKR Software with more than 12,000 user reviews</h3><a href="/resources">Read user reviews <span>→</span></a></article></div>
|
| 518 |
+
</section>
|
| 519 |
+
|
| 520 |
+
<section class="home-bottom-cta"><h2>The only platform that can support your company at any scale</h2><a class="btn" href="/create-account">Get started</a><p><sup>1</sup> Accurate as of December 2023, includes free and paid users.</p></section>""")
|
| 521 |
+
|
| 522 |
+
|
| 523 |
+
def product_page() -> str:
|
| 524 |
+
return _page("Product • Asana", "product", """
|
| 525 |
+
<section class="product-contract">
|
| 526 |
+
<h1>The only work management
platform built for scale</h1>
|
| 527 |
+
<p class="product-lead">With Asana, humans and agents run an organization’s critical workflows together, on the same plan, toward the same goals.</p>
|
| 528 |
+
<div class="product-sso"><a href="/create-account"><span class="google-g">G</span>Google</a><a href="/create-account"><span class="microsoft-mark">■</span>Microsoft</a></div>
|
| 529 |
+
<div class="product-or"><span>or</span></div>
|
| 530 |
+
<form class="product-signup" action="/create-account" method="get"><input type="email" name="email" aria-label="Work email address" placeholder="name@company.com"><button type="submit">Continue</button></form>
|
| 531 |
+
<p class="product-fine">By signing up, I agree to the Asana <a href="/resources">Privacy Policy</a> and <a href="/resources">Terms of Service</a>.</p>
|
| 532 |
+
<img class="product-source-visual" src="/static/source/product-hero.png"
|
| 533 |
+
alt="Where your teams and AI coordinate work together">
|
| 534 |
+
</section>
|
| 535 |
+
<section class="product-depth product-overview"><h2>See work clearly across your organization</h2><p>Coordinate projects, goals, portfolios, and workflows in one local workspace.</p></section>
|
| 536 |
+
<section class="product-depth product-workflows"><h2>Move work forward with connected workflows</h2><p>Use forms, rules, and reusable templates to keep every handoff clear.</p></section>
|
| 537 |
+
<section class="product-depth product-scale"><h2>Built for teams at every scale</h2><p>Local controls, reporting, and permissions keep work dependable.</p></section>
|
| 538 |
+
<section class="product-depth product-final"><h2>Get started with Asana</h2><a class="btn primary lg" href="/create-account">Get started</a></section>""")
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
def solutions_page() -> str:
|
| 542 |
+
solutions = [
|
| 543 |
+
("marketing", "Marketing", "Plan campaigns, manage creative production, and connect every launch to measurable goals."),
|
| 544 |
+
("operations", "Operations", "Standardize intake, approvals, and cross-functional processes without losing visibility."),
|
| 545 |
+
("product", "Product", "Keep roadmaps, launches, customer feedback, and engineering handoffs in one shared plan."),
|
| 546 |
+
("enterprise", "Enterprise", "Coordinate work securely across departments with goals, portfolios, and reporting."),
|
| 547 |
+
]
|
| 548 |
+
cards = "".join(
|
| 549 |
+
f'<article id="{slug}"><span>0{index}</span><h2>{title}</h2><p>{copy}</p>'
|
| 550 |
+
f'<a href="/templates">Explore templates <b>→</b></a></article>'
|
| 551 |
+
for index, (slug, title, copy) in enumerate(solutions, 1)
|
| 552 |
+
)
|
| 553 |
+
return _page("Work management solutions • Asana", "solutions", f"""
|
| 554 |
+
<section class="solutions-hero"><p class="solutions-kicker">ASANA SOLUTIONS</p>
|
| 555 |
+
<h1>Move every team’s work forward</h1>
|
| 556 |
+
<p>Connect strategy, planning, and execution in one flexible work management platform.</p>
|
| 557 |
+
<div><a class="btn primary lg" href="/create-account">Get started</a><a class="btn ghost lg" href="/demo/main">View demo</a></div>
|
| 558 |
+
</section>
|
| 559 |
+
<section class="solutions-grid">{cards}</section>
|
| 560 |
+
<section class="solutions-band"><p>ONE CONNECTED PLATFORM</p><h2>From company goals to the work that delivers them</h2>
|
| 561 |
+
<div><article><strong>Clarity</strong><span>See owners, deadlines, and progress at a glance.</span></article>
|
| 562 |
+
<article><strong>Consistency</strong><span>Turn proven processes into reusable workflows.</span></article>
|
| 563 |
+
<article><strong>Impact</strong><span>Connect projects to goals and report on outcomes.</span></article></div>
|
| 564 |
+
</section>
|
| 565 |
+
<section class="solutions-proof"><h2>Built for focused teams and growing organizations</h2>
|
| 566 |
+
<p>Use projects for day-to-day work, portfolios for oversight, and goals for shared direction.</p>
|
| 567 |
+
<a href="/product">Explore the product <span>→</span></a>
|
| 568 |
+
</section>
|
| 569 |
+
<section class="solutions-final"><h2>Work smarter. Move faster.</h2><a class="btn primary lg" href="/create-account">Get started for free</a></section>
|
| 570 |
+
""")
|
| 571 |
+
|
| 572 |
+
|
| 573 |
+
def resources_page() -> str:
|
| 574 |
+
cards = [
|
| 575 |
+
("work-management", "Work management", "Resources to help you better coordinate plans, projects, and processes with Asana.", "#c8efff", "#1d3187"),
|
| 576 |
+
("project-planning", "Project planning", "Resources to help you organize and track everything your team needs to deliver successful projects.", "#ffe7ea", "#77002f"),
|
| 577 |
+
("workflow-automation", "Workflow automation", "Resources to help you build intelligent workflows and keep work moving automatically.", "#c9f9d7", "#083f2f"),
|
| 578 |
+
("ai-at-work", "AI at work", "Resources to help your team get more efficient and achieve growth with AI.", "#fad4fb", "#70008c"),
|
| 579 |
+
("strategic-planning", "Strategic planning", "Resources to help you map out large-scale strategies and connect them to everyday work.", "#c8efff", "#1d3187"),
|
| 580 |
+
]
|
| 581 |
+
rail = "".join(f'''<a class="resource-topic" href="/resources/category/{slug}" style="--topic-bg:{bg};--topic-ink:{ink}">
|
| 582 |
+
<img src="/static/source/resource-{slug}.avif" alt=""><div><h2>{title}</h2><p>{copy}</p></div></a>'''
|
| 583 |
+
for slug, title, copy, bg, ink in cards)
|
| 584 |
+
return _page("Resources • Asana", "resources", f"""
|
| 585 |
+
<section class="resources-contract">
|
| 586 |
+
<p class="resources-kicker">RESOURCE CENTER</p><h1>Explore the resource<br class="desktop-only"> center</h1>
|
| 587 |
+
<a class="resources-demo" href="/demo/main">View demo</a>
|
| 588 |
+
<div class="resource-rail">{rail}</div>
|
| 589 |
+
</section>
|
| 590 |
+
<section class="resource-depth"><h2>Resources for every way your team works</h2><p>Explore practical guides, customer stories, and local learning paths.</p></section>
|
| 591 |
+
<section class="resource-depth resource-dark"><h2>Turn plans into progress</h2><p>Connect strategy, projects, and workflows in one place.</p></section>
|
| 592 |
+
<section class="resource-depth"><h2>Learn from teams doing their best work</h2></section>
|
| 593 |
+
<section class="resource-final"><h2>Ready to get started?</h2><a class="btn primary lg" href="/create-account">Get started</a></section>
|
| 594 |
+
""")
|
| 595 |
+
|
| 596 |
+
|
| 597 |
+
def templates_page() -> str:
|
| 598 |
+
teams = [
|
| 599 |
+
("Marketing", "Manage your next campaign, build a content calendar, and more.", "/templates/marketing"),
|
| 600 |
+
("Operations", "Create repeatable processes for requests, planning, and team operations.", "/templates/operations-pmo"),
|
| 601 |
+
("Design", "Organize creative requests, reviews, and production schedules.", "/templates/design"),
|
| 602 |
+
("IT", "Standardize requests, incidents, and technology projects.", "/templates/it"),
|
| 603 |
+
("Product & Engineering", "Plan roadmaps, launches, and cross-functional product work.", "/templates/product-engineering"),
|
| 604 |
+
("HR", "Coordinate recruiting, onboarding, and employee programs.", "/templates/hr"),
|
| 605 |
+
("Sales & Customer Success", "Track accounts, handoffs, and customer outcomes.", "/templates/sales-cx"),
|
| 606 |
+
]
|
| 607 |
+
icons = [
|
| 608 |
+
'<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 16C3.6 16 0 12.4 0 8C0 3.6 3.6 0 8 0C12.4 0 16 3.6 16 8C16 12.4 12.4 16 8 16ZM8 1C4.15 1 1 4.15 1 8C1 11.85 4.15 15 8 15C11.85 15 15 11.85 15 8C15 4.15 11.85 1 8 1ZM11.4 6.45C11.6 6.25 11.6 5.95 11.4 5.75C11.2 5.55 10.9 5.55 10.7 5.75L6.4 10.05L4.85 8.5C4.65 8.3 4.3 8.3 4.15 8.5C4 8.7 4 9 4.15 9.2L6.05 11.1C6.25 11.3 6.55 11.3 6.75 11.1L11.4 6.45Z"/></svg>',
|
| 609 |
+
'<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M6 2.5h8v2h2.5v13h-13v-13H6v-2Zm1 1v2h6v-2H7Zm-2.5 2v11h11v-11H14v1H6v-1H4.5Zm3 3h5v1h-5v-1Zm0 3h5v1h-5v-1Z"/></svg>',
|
| 610 |
+
'<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M10 2.5 17.5 7v6L10 17.5 2.5 13V7L10 2.5Zm0 1.2L4 7.3v5.1l6 3.6 6-3.6V7.3l-6-3.6Zm0 2.1 3.7 2.2-3.7 2.2L6.3 8 10 5.8Zm-3.2 4 2.7 1.6v3.1l-2.7-1.6V9.8Zm6.4 0v3.1l-2.7 1.6v-3.1l2.7-1.6Z"/></svg>',
|
| 611 |
+
'<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3 3h14v14H3V3Zm1 1v12h12V4H4Zm2 2h3v3H6V6Zm5 0h3v3h-3V6Zm-5 5h3v3H6v-3Zm5 0h3v3h-3v-3Z"/></svg>',
|
| 612 |
+
'<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4 3h12v3h2v11H2V6h2V3Zm1 1v3h10V4H5Zm-2 4v8h14V8H3Zm3 2h8v1H6v-1Zm0 3h5v1H6v-1Z"/></svg>',
|
| 613 |
+
'<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M10 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 0 1 0-7Zm0 1a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5ZM4 17c.3-3.3 2.3-5.5 6-5.5s5.7 2.2 6 5.5h-1c-.3-2.7-1.9-4.5-5-4.5S5.3 14.3 5 17H4Z"/></svg>',
|
| 614 |
+
'<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M3 15.5h14v1H3v-1Zm1-2 3.5-4 3 2 4.5-6 1 .7-5 6.7-3.3-2.2-3 3.5-.7-.7Z"/></svg>',
|
| 615 |
+
]
|
| 616 |
+
arrow = '<svg class="template-arrow" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="8"/><path d="M5 7.62h5.1L8.25 5.77a.38.38 0 0 1 .53-.53l2.5 2.5a.38.38 0 0 1 0 .53l-2.5 2.5a.38.38 0 0 1-.53-.53l1.82-1.85H5a.38.38 0 0 1 0-.77Z"/></svg>'
|
| 617 |
+
team_cards = "".join(f'''<article class="template-team"><i aria-hidden="true">{icons[index]}</i><div><h2>{title}</h2><p>{copy}</p><a href="{href}">See templates{arrow}</a></div></article>'''
|
| 618 |
+
for index, (title, copy, href) in enumerate(teams))
|
| 619 |
+
return _page("Templates • Asana", "templates", f"""
|
| 620 |
+
<section class="templates-contract">
|
| 621 |
+
<h1>AI workflow template gallery</h1>
|
| 622 |
+
<p class="templates-lead">Any team can plan and manage their projects more successfully starting with Asana templates.</p>
|
| 623 |
+
<div class="templates-sso"><a href="/templates"><svg class="public-google-mark" width="24" height="24" viewBox="0 0 48 48" aria-hidden="true"><path fill="#EA4335" d="M24 9.5c3.5 0 6.6 1.2 9 3.5l6.7-6.7C35.6 2.4 30.2 0 24 0 14.6 0 6.5 5.4 2.5 13.2l7.8 6.1C12.2 13.4 17.6 9.5 24 9.5z"/><path fill="#4285F4" d="M46.5 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.7c-.6 3-2.3 5.5-4.8 7.2l7.6 5.9c4.4-4.1 7-10.1 7-17.6z"/><path fill="#FBBC05" d="M10.3 28.7a14.5 14.5 0 0 1 0-9.4l-7.8-6.1a24 24 0 0 0 0 21.6l7.8-6.1z"/><path fill="#34A853" d="M24 48c6.2 0 11.4-2 15.5-5.9l-7.6-5.9c-2.1 1.4-4.8 2.3-7.9 2.3-6.4 0-11.8-3.9-13.7-9.8l-7.8 6.1C6.5 42.6 14.6 48 24 48z"/></svg>Google</a><a href="/templates"><svg class="public-microsoft-mark" width="18" height="18" viewBox="0 0 21 21" aria-hidden="true"><rect x="1" y="1" width="9" height="9" fill="#f25022"/><rect x="11" y="1" width="9" height="9" fill="#7fba00"/><rect x="1" y="11" width="9" height="9" fill="#00a4ef"/><rect x="11" y="11" width="9" height="9" fill="#ffb900"/></svg>Microsoft</a></div>
|
| 624 |
+
<div class="templates-or"><span>or</span></div>
|
| 625 |
+
<form class="templates-signup" action="/create-account" method="get"><input type="email" name="email" aria-label="Work email address" placeholder="name@company.com"><button type="submit">Continue</button></form>
|
| 626 |
+
<p class="templates-fine">By signing up, I agree to Asana's <a href="/terms/terms-of-service">Terms of Service</a> and acknowledge the <a href="/terms/privacy-statement">Privacy Statement</a>.</p>
|
| 627 |
+
</section>
|
| 628 |
+
<section class="templates-explore"><h2>Explore by team</h2><div class="template-rail">{team_cards}</div></section>
|
| 629 |
+
<section class="template-depth"><h2>Popular templates to help your team move faster</h2></section>
|
| 630 |
+
<section class="template-depth template-dark"><h2>Turn every repeatable process into a clear workflow</h2></section>
|
| 631 |
+
<section class="template-final"><h2>Start with a template today</h2><a class="btn primary lg" href="/create-account">Get started</a></section>
|
| 632 |
+
""")
|
| 633 |
+
|
| 634 |
+
|
| 635 |
+
def pricing_page() -> str:
|
| 636 |
+
tiers = [
|
| 637 |
+
("Personal", "For one or two people managing personal projects.", "$0", "Free forever",
|
| 638 |
+
["Manage tasks and personal to-dos:", "2 users", "Unlimited tasks and projects",
|
| 639 |
+
"List, board, and calendar views", "Collaborate with teammates"],
|
| 640 |
+
"Try for free", "/create-account", ""),
|
| 641 |
+
("Starter", "For growing teams that need to track their projects’ progress and hit deadlines.", "$10.99", "Per user, per month billed annually",
|
| 642 |
+
["Everything in Personal, plus:", "Timeline view", "Project dashboards",
|
| 643 |
+
"Forms and rules", "Up to 500 teammates"],
|
| 644 |
+
"Try for free", "/create-account", "Purchase now"),
|
| 645 |
+
("Advanced", "For companies that need to manage a portfolio of work and goals across departments.", "$24.99", "Per user, per month billed annually",
|
| 646 |
+
["Everything in Starter, plus:", "Portfolios and goals", "Workload",
|
| 647 |
+
"Advanced reporting", "Approvals and proofing"],
|
| 648 |
+
"Try for free", "/create-account", "Purchase now"),
|
| 649 |
+
("Enterprise", "For companies that need to coordinate and automate complex work across departments, without limits.", "Contact sales for pricing", "",
|
| 650 |
+
["Everything in Advanced, plus:", "Enterprise-grade controls to manage"
|
| 651 |
+
" access, protect data, and keep your organization secure at scale."],
|
| 652 |
+
"Contact sales", "/solutions", ""),
|
| 653 |
+
]
|
| 654 |
+
cards = ""
|
| 655 |
+
for name, description, price, per, feats, cta, href, purchase in tiers:
|
| 656 |
+
lis = "".join(f"<li>{f}</li>" for f in feats)
|
| 657 |
+
purchase_link = (f'<a class="purchase" href="{href}">{purchase}<span aria-hidden="true">➜</span></a>'
|
| 658 |
+
if purchase else '<span class="purchase placeholder" aria-hidden="true"></span>')
|
| 659 |
+
cards += f"""<article class="tier tier-{name.lower()}">
|
| 660 |
+
<h3>{name}</h3><p class="tier-desc">{description}</p>
|
| 661 |
+
<div class="price">{price}</div><p class="per">{per}</p>
|
| 662 |
+
<a class="btn {'primary' if name == 'Starter' else 'ghost'}" href="{href}"><span class="desktop-cta">{cta}</span><span class="mobile-cta">{'Get started' if cta == 'Try for free' else cta}</span></a>
|
| 663 |
+
{purchase_link}<ul>{lis}</ul></article>"""
|
| 664 |
+
addons = [
|
| 665 |
+
("AI Teammates", "Build AI teammates that collaborate with your teams and handle repeatable work."),
|
| 666 |
+
("Timesheets and Budgets", "Track time, budgets, and progress without leaving the work."),
|
| 667 |
+
("Compliance management", "Support regulated workflows with controls for complex organizations."),
|
| 668 |
+
("Permissions management", "Manage access and permissions across teams and projects."),
|
| 669 |
+
]
|
| 670 |
+
addon_cards = "".join(
|
| 671 |
+
f'<article class="pricing-addon"><h3>{title}</h3><p>{copy}</p>'
|
| 672 |
+
'<div><a class="btn primary" href="/solutions">Contact sales</a>'
|
| 673 |
+
'<a class="btn ghost" href="/resources">Learn more</a></div></article>'
|
| 674 |
+
for title, copy in addons)
|
| 675 |
+
faq = [
|
| 676 |
+
"Which plan is right for my team?", "Can I try Asana before I buy?",
|
| 677 |
+
"How does billing work?", "What security and privacy options are available?",
|
| 678 |
+
"Can I change plans later?", "Does Asana offer nonprofit discounts?",
|
| 679 |
+
]
|
| 680 |
+
faq_items = "".join(f'<details><summary>{item}</summary><p>Learn more about this option in our local product guide.</p></details>' for item in faq)
|
| 681 |
+
main = f"""
|
| 682 |
+
<div class="pricing-page">
|
| 683 |
+
<section class="pricing-hero"><h1>Pick the plan that fits your<br> team</h1></section>
|
| 684 |
+
<section class="pricing-plans"><div class="billing-toggle"><span>Monthly</span><i aria-hidden="true"></i><strong>Yearly</strong><em>Save up to 18%</em></div><div class="tiers">{cards}</div></section>
|
| 685 |
+
<section class="pricing-note"><p>Every paid plan includes unlimited projects, tasks, storage, and activity logs.</p></section>
|
| 686 |
+
<section class="pricing-addons">{addon_cards}</section>
|
| 687 |
+
<section class="pricing-loved"><h4>Loved by 100,000+ organizations across the globe</h4><div class="logo-dots" aria-hidden="true">● ● ● ● ●</div></section>
|
| 688 |
+
<section class="pricing-faq"><h2>Frequently asked questions</h2><div class="faq-list">{faq_items}</div></section>
|
| 689 |
+
</div>"""
|
| 690 |
+
return _page("Asana Pricing | Personal, Starter, Advanced, & Enterprise plans • Asana", "pricing", main)
|
| 691 |
+
|
| 692 |
+
|
| 693 |
+
# ------------------------------------------------------------------ auth
|
| 694 |
+
|
| 695 |
+
def _auth_shell(title: str, body: str) -> str:
|
| 696 |
+
footer_links = ["Asana.com", "Support", "Integrations", "Forum",
|
| 697 |
+
"Developers & API", "Resources", "Guide", "Templates",
|
| 698 |
+
"Pricing", "Terms", "Privacy"]
|
| 699 |
+
links = "".join(f'<a href="/">{x}</a>' for x in footer_links)
|
| 700 |
+
return f"""{_head(title)}<body class="authpage">
|
| 701 |
+
<header class="auth-logo"><a href="/" aria-label="Asana home">{LOGO_SVG}<span>asana</span></a></header>
|
| 702 |
+
<main class="auth-main">{body}</main>
|
| 703 |
+
<footer class="auth-footer"><nav>{links}</nav>
|
| 704 |
+
<p>This offline demo stores data locally. No real emails are sent.</p></footer>
|
| 705 |
+
<script src="/static/auth.js" defer></script></body></html>"""
|
| 706 |
+
|
| 707 |
+
|
| 708 |
+
_SSO_BUTTONS = """<div class="sso-row">
|
| 709 |
+
<button type="button" class="sso" data-sso="Google" aria-label="Continue with Google">
|
| 710 |
+
<svg width="18" height="18" viewBox="0 0 48 48" aria-hidden="true"><path fill="#EA4335" d="M24 9.5c3.5 0 6.6 1.2 9 3.5l6.7-6.7C35.6 2.4 30.2 0 24 0 14.6 0 6.5 5.4 2.5 13.2l7.8 6.1C12.2 13.4 17.6 9.5 24 9.5z"/><path fill="#4285F4" d="M46.5 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.7c-.6 3-2.3 5.5-4.8 7.2l7.6 5.9c4.4-4.1 7-10.1 7-17.6z"/><path fill="#FBBC05" d="M10.3 28.7a14.5 14.5 0 0 1 0-9.4l-7.8-6.1a24 24 0 0 0 0 21.6l7.8-6.1z"/><path fill="#34A853" d="M24 48c6.2 0 11.4-2 15.5-5.9l-7.6-5.9c-2.1 1.4-4.8 2.3-7.9 2.3-6.4 0-11.8-3.9-13.7-9.8l-7.8 6.1C6.5 42.6 14.6 48 24 48z"/></svg></button>
|
| 711 |
+
<button type="button" class="sso" data-sso="Microsoft" aria-label="Continue with Microsoft">
|
| 712 |
+
<svg width="18" height="18" viewBox="0 0 21 21" aria-hidden="true"><rect x="1" y="1" width="9" height="9" fill="#f25022"/><rect x="11" y="1" width="9" height="9" fill="#7fba00"/><rect x="1" y="11" width="9" height="9" fill="#00a4ef"/><rect x="11" y="11" width="9" height="9" fill="#ffb900"/></svg></button>
|
| 713 |
+
</div>
|
| 714 |
+
<div class="or-rule"><span>or</span></div>"""
|
| 715 |
+
|
| 716 |
+
|
| 717 |
+
def login_page() -> str:
|
| 718 |
+
return _auth_shell("Log in - Asana", f"""
|
| 719 |
+
<div class="auth-card" id="login-card">
|
| 720 |
+
<h2>Welcome to Asana</h2>
|
| 721 |
+
<h3>To get started, please sign in</h3>
|
| 722 |
+
{_SSO_BUTTONS}
|
| 723 |
+
<form id="login-form" novalidate>
|
| 724 |
+
<div class="field"><label for="email">Email address</label>
|
| 725 |
+
<input id="email" name="email" type="email" autocomplete="email" required></div>
|
| 726 |
+
<div class="field hidden" id="password-field"><label for="password">Password</label>
|
| 727 |
+
<input id="password" name="password" type="password" autocomplete="current-password"></div>
|
| 728 |
+
<p class="form-error" id="login-error" role="alert" hidden></p>
|
| 729 |
+
<button class="btn primary block" type="submit" id="login-continue">Continue</button>
|
| 730 |
+
</form>
|
| 731 |
+
<p class="auth-alt"><a href="/-/forgot_password">Forgot password?</a>
|
| 732 |
+
<span>or</span> <a href="/create-account">Sign up</a></p>
|
| 733 |
+
</div>
|
| 734 |
+
<p class="auth-fineprint">Offline demo: SSO buttons are visual placeholders and
|
| 735 |
+
explain that only local email accounts work here.</p>""")
|
| 736 |
+
|
| 737 |
+
|
| 738 |
+
def signup_page(email: str = "") -> str:
|
| 739 |
+
escaped_email = html.escape(email, quote=True)
|
| 740 |
+
return _auth_shell("Sign up - Asana", f"""
|
| 741 |
+
<div class="auth-card" id="signup-card">
|
| 742 |
+
<h2>You're one click away from being more productive</h2>
|
| 743 |
+
<h3>Sign up with your work email</h3>
|
| 744 |
+
{_SSO_BUTTONS}
|
| 745 |
+
<form id="signup-form" novalidate>
|
| 746 |
+
<div class="field"><label for="name">Full name</label>
|
| 747 |
+
<input id="name" name="name" autocomplete="name" required></div>
|
| 748 |
+
<div class="field"><label for="email">Email address</label>
|
| 749 |
+
<input id="email" name="email" type="email" autocomplete="email" value="{escaped_email}" required></div>
|
| 750 |
+
<div class="field"><label for="password">Password</label>
|
| 751 |
+
<input id="password" name="password" type="password" autocomplete="new-password"
|
| 752 |
+
minlength="8" required aria-describedby="pw-hint">
|
| 753 |
+
<p class="hint" id="pw-hint">At least 8 characters.</p></div>
|
| 754 |
+
<p class="form-error" id="signup-error" role="alert" hidden></p>
|
| 755 |
+
<button class="btn primary block" type="submit">Sign up</button>
|
| 756 |
+
</form>
|
| 757 |
+
<div id="verify-step" class="hidden">
|
| 758 |
+
<h3>Check your inbox</h3>
|
| 759 |
+
<p>Enter the verification code sent to your email address.</p>
|
| 760 |
+
<form id="verify-form" novalidate>
|
| 761 |
+
<div class="field"><label for="code">Verification code</label>
|
| 762 |
+
<input id="code" name="code" inputmode="numeric" autocomplete="one-time-code" required></div>
|
| 763 |
+
<p class="form-error" id="verify-error" role="alert" hidden></p>
|
| 764 |
+
<button class="btn primary block" type="submit">Verify</button>
|
| 765 |
+
</form>
|
| 766 |
+
</div>
|
| 767 |
+
<p class="auth-alt">Already have an account? <a href="/-/login">Log in</a></p>
|
| 768 |
+
</div>""")
|
| 769 |
+
|
| 770 |
+
|
| 771 |
+
def forgot_page() -> str:
|
| 772 |
+
return _auth_shell("Log in - Asana", """
|
| 773 |
+
<div class="auth-card" id="forgot-card">
|
| 774 |
+
<h2>Forgot password?</h2>
|
| 775 |
+
<h3>Enter your email address for instructions</h3>
|
| 776 |
+
<form id="forgot-form" novalidate>
|
| 777 |
+
<div class="field"><label for="email">Email address</label>
|
| 778 |
+
<input id="email" name="email" type="email" autocomplete="email" required></div>
|
| 779 |
+
<p class="form-error" id="forgot-error" role="alert" hidden></p>
|
| 780 |
+
<button class="btn primary block" type="submit">Send instructions</button>
|
| 781 |
+
</form>
|
| 782 |
+
<div id="reset-step" class="hidden">
|
| 783 |
+
<h3>Reset your password</h3>
|
| 784 |
+
<p>Enter the reset code sent to your email address.</p>
|
| 785 |
+
<form id="reset-form" novalidate>
|
| 786 |
+
<div class="field"><label for="code">Reset code</label>
|
| 787 |
+
<input id="code" name="code" inputmode="numeric" required></div>
|
| 788 |
+
<div class="field"><label for="new-password">New password</label>
|
| 789 |
+
<input id="new-password" name="password" type="password" minlength="8" required></div>
|
| 790 |
+
<p class="form-error" id="reset-error" role="alert" hidden></p>
|
| 791 |
+
<button class="btn primary block" type="submit">Reset password</button>
|
| 792 |
+
</form>
|
| 793 |
+
</div>
|
| 794 |
+
<p class="auth-alt"><a href="/-/login">Log in</a> <span>or</span>
|
| 795 |
+
<a href="/create-account">Sign up</a></p>
|
| 796 |
+
</div>""")
|
| 797 |
+
|
| 798 |
+
|
| 799 |
+
def app_shell() -> str:
|
| 800 |
+
app_style = '<link rel="stylesheet" href="/static/app.css">'
|
| 801 |
+
return f"""{_head("Asana", app_style)}<body class="appbody">
|
| 802 |
+
<div id="app" data-app-root></div>
|
| 803 |
+
<script src="/static/app.js" defer></script>
|
| 804 |
+
</body></html>"""
|
| 805 |
+
|
| 806 |
+
|
| 807 |
+
def shared_project_page(snapshot: dict) -> str:
|
| 808 |
+
"""Render the anonymous, read-only destination promised by a public link."""
|
| 809 |
+
project = snapshot["project"]
|
| 810 |
+
tasks_by_section: dict[str | None, list[dict]] = {}
|
| 811 |
+
for task in snapshot["tasks"]:
|
| 812 |
+
tasks_by_section.setdefault(task["section_id"], []).append(task)
|
| 813 |
+
sections = []
|
| 814 |
+
for section in snapshot["sections"]:
|
| 815 |
+
task_rows = "".join(
|
| 816 |
+
'<li class="shared-task%s"><span aria-hidden="true">%s</span>'
|
| 817 |
+
'<strong>%s</strong>%s%s</li>' % (
|
| 818 |
+
" complete" if task["completed"] else "",
|
| 819 |
+
"✓" if task["completed"] else "○",
|
| 820 |
+
html.escape(task["name"]),
|
| 821 |
+
(f'<small>{html.escape(task["priority"])} priority</small>'
|
| 822 |
+
if task["priority"] else ""),
|
| 823 |
+
(f'<time datetime="{html.escape(task["due_date"])}">Due '
|
| 824 |
+
f'{html.escape(task["due_date"])}</time>' if task["due_date"] else ""),
|
| 825 |
+
)
|
| 826 |
+
for task in tasks_by_section.pop(section["section_id"], [])
|
| 827 |
+
)
|
| 828 |
+
sections.append(
|
| 829 |
+
f'<section class="shared-section"><h2>{html.escape(section["name"])}</h2>'
|
| 830 |
+
f'<ul>{task_rows or "<li class=\"shared-empty\">No tasks</li>"}</ul></section>'
|
| 831 |
+
)
|
| 832 |
+
if tasks_by_section.get(None):
|
| 833 |
+
sections.append(
|
| 834 |
+
'<section class="shared-section"><h2>No section</h2><ul>' + "".join(
|
| 835 |
+
f'<li class="shared-task"><span aria-hidden="true">○</span>'
|
| 836 |
+
f'<strong>{html.escape(task["name"])}</strong></li>'
|
| 837 |
+
for task in tasks_by_section[None]
|
| 838 |
+
) + '</ul></section>'
|
| 839 |
+
)
|
| 840 |
+
status = project["status"].replace("_", " ").title()
|
| 841 |
+
return f"""{_head(project["name"] + " - Asana")}
|
| 842 |
+
<body class="shared-project-page" data-public-project="{html.escape(project["project_id"], quote=True)}">
|
| 843 |
+
<header class="shared-header"><a href="/" aria-label="Asana home">{LOGO_SVG}<span>asana</span></a>
|
| 844 |
+
<span>Shared project · read only</span><a class="btn ghost" href="/-/login">Log in</a></header>
|
| 845 |
+
<main class="shared-main"><div class="shared-title" style="border-color:{html.escape(project["color"], quote=True)}">
|
| 846 |
+
<p class="eyebrow">PUBLIC LOCAL LINK</p><h1>{html.escape(project["name"])}</h1>
|
| 847 |
+
<p>{html.escape(project["description"])}</p><span class="shared-status">{html.escape(status)}</span>
|
| 848 |
+
</div><div class="shared-columns">{"".join(sections)}</div>
|
| 849 |
+
<p class="shared-disclosure">This local link provides read-only access to this project. Comments, files, members, and workspace data stay private.</p>
|
| 850 |
+
</main></body></html>"""
|
| 851 |
+
|
| 852 |
+
|
| 853 |
+
def not_found_page() -> str:
|
| 854 |
+
return f"""{_head("Page not found - Asana")}
|
| 855 |
+
<body class="marketing"><main class="shared-main"><div class="shared-title">
|
| 856 |
+
{LOGO_SVG}<p class="eyebrow">ASANA</p><h1>That project link isn’t available</h1>
|
| 857 |
+
<p>The project may be private, the link may be disabled, or the project may have been deleted.</p>
|
| 858 |
+
<a class="btn primary" href="/">Return to Asana</a></div></main></body></html>"""
|
tasks/asana/solution/site/implementation/clone/asana_app/seed.py
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Deterministic synthetic demo data for the Asana offline clone.
|
| 2 |
+
|
| 3 |
+
Every record is synthetic; nothing here is captured from the source site.
|
| 4 |
+
Seeding is idempotent per workspace: it runs once when a new account's
|
| 5 |
+
workspace is created.
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
from __future__ import annotations
|
| 9 |
+
|
| 10 |
+
import datetime as dt
|
| 11 |
+
import sqlite3
|
| 12 |
+
|
| 13 |
+
from .db import new_id, now, record_activity
|
| 14 |
+
|
| 15 |
+
SYNTHETIC_TEAMMATES = [
|
| 16 |
+
("Mia Chen", "mia.chen@demo.asana.offline.invalid", "MC", "#aa62e3", "Product Manager"),
|
| 17 |
+
("Leo Park", "leo.park@demo.asana.offline.invalid", "LP", "#4573d2", "Design Lead"),
|
| 18 |
+
("Ana Souza", "ana.souza@demo.asana.offline.invalid", "AS", "#f1bd6c", "Engineer"),
|
| 19 |
+
("Sam Rivera", "sam.rivera@demo.asana.offline.invalid", "SR", "#5da283", "Marketing"),
|
| 20 |
+
]
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def _date(offset_days: int) -> str:
|
| 24 |
+
return (dt.date.today() + dt.timedelta(days=offset_days)).isoformat()
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def ensure_synthetic_users(connection: sqlite3.Connection) -> list[str]:
|
| 28 |
+
ids = []
|
| 29 |
+
for name, email, initials, color, title in SYNTHETIC_TEAMMATES:
|
| 30 |
+
row = connection.execute(
|
| 31 |
+
"SELECT user_id FROM az_users WHERE email=?", (email,)
|
| 32 |
+
).fetchone()
|
| 33 |
+
if row:
|
| 34 |
+
ids.append(row["user_id"])
|
| 35 |
+
continue
|
| 36 |
+
uid = new_id("user")
|
| 37 |
+
connection.execute(
|
| 38 |
+
"INSERT INTO az_users(user_id, email, display_name, initials,"
|
| 39 |
+
" avatar_color, role_title, synthetic, created_at)"
|
| 40 |
+
" VALUES (?,?,?,?,?,?,1,?)",
|
| 41 |
+
(uid, email, name, initials, color, title, now()),
|
| 42 |
+
)
|
| 43 |
+
ids.append(uid)
|
| 44 |
+
return ids
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
def seed_workspace(
|
| 48 |
+
connection: sqlite3.Connection,
|
| 49 |
+
*,
|
| 50 |
+
workspace_id: str,
|
| 51 |
+
owner_user_id: str,
|
| 52 |
+
) -> None:
|
| 53 |
+
"""Populate a fresh workspace with a synthetic demo state."""
|
| 54 |
+
|
| 55 |
+
teammates = ensure_synthetic_users(connection)
|
| 56 |
+
for uid in teammates:
|
| 57 |
+
connection.execute(
|
| 58 |
+
"INSERT OR IGNORE INTO az_workspace_members(workspace_id, user_id,"
|
| 59 |
+
" role, joined_at) VALUES (?,?,'member',?)",
|
| 60 |
+
(workspace_id, uid, now()),
|
| 61 |
+
)
|
| 62 |
+
|
| 63 |
+
portfolio_id = new_id("portfolio")
|
| 64 |
+
connection.execute(
|
| 65 |
+
"INSERT INTO az_portfolios(portfolio_id, workspace_id, name, color,"
|
| 66 |
+
" owner_user_id, created_at) VALUES (?,?,?,?,?,?)",
|
| 67 |
+
(portfolio_id, workspace_id, "Research Projects 2026", "#796eff",
|
| 68 |
+
owner_user_id, now()),
|
| 69 |
+
)
|
| 70 |
+
|
| 71 |
+
projects = [
|
| 72 |
+
("Product launch plan", "#4573d2", "rocket",
|
| 73 |
+
"Cross-functional launch plan for the spring release.", portfolio_id),
|
| 74 |
+
("Website redesign", "#f06a6a", "palette",
|
| 75 |
+
"Refresh the marketing site with the new brand system.", portfolio_id),
|
| 76 |
+
("User research study", "#5da283", "chat",
|
| 77 |
+
"Interview program and synthesis for Q3 discovery.", portfolio_id),
|
| 78 |
+
]
|
| 79 |
+
section_names = ["To do", "In progress", "Done"]
|
| 80 |
+
all_users = [owner_user_id] + teammates
|
| 81 |
+
|
| 82 |
+
demo_tasks = {
|
| 83 |
+
"Product launch plan": [
|
| 84 |
+
("Draft launch brief", 0, 0, -2, "High", "On track", 1,
|
| 85 |
+
"Summarize goals, audience, and success metrics for the launch."),
|
| 86 |
+
("Align stakeholders on messaging", 0, 1, 1, "Medium", "On track", 0,
|
| 87 |
+
"Collect feedback from product marketing and sales."),
|
| 88 |
+
("Build launch timeline", 1, 2, 3, "High", "At risk", 0,
|
| 89 |
+
"Sequence beta, announcement, and rollout milestones."),
|
| 90 |
+
("Prepare press kit", 1, 3, 7, "Low", None, 0,
|
| 91 |
+
"Screenshots, boilerplate, and spokesperson quotes."),
|
| 92 |
+
("QA release candidate", 2, 4, -1, "High", "Off track", 1,
|
| 93 |
+
"Full regression pass on the release branch."),
|
| 94 |
+
],
|
| 95 |
+
"Website redesign": [
|
| 96 |
+
("Audit current pages", 0, 0, -5, "Medium", None, 1,
|
| 97 |
+
"Inventory templates and traffic to prioritize the rebuild."),
|
| 98 |
+
("Design new homepage hero", 1, 1, 2, "High", "On track", 0,
|
| 99 |
+
"Explore three hero concepts with the new brand palette."),
|
| 100 |
+
("Migrate pricing page", 1, 2, 5, "Medium", "On track", 0,
|
| 101 |
+
"Port pricing tiers to the new component library."),
|
| 102 |
+
("Accessibility review", 0, 3, 9, "High", None, 0,
|
| 103 |
+
"WCAG 2.2 AA sweep across the redesigned templates."),
|
| 104 |
+
],
|
| 105 |
+
"User research study": [
|
| 106 |
+
("Recruit 10 participants", 0, 0, -3, "High", "On track", 1,
|
| 107 |
+
"Screen for teams of 5-50 using work management tools."),
|
| 108 |
+
("Write interview guide", 0, 1, 0, "Medium", None, 1,
|
| 109 |
+
"Focus on planning rituals and tool-switching pain."),
|
| 110 |
+
("Run interview sessions", 1, 2, 4, "High", "On track", 0,
|
| 111 |
+
"Five 45-minute remote sessions per week."),
|
| 112 |
+
("Synthesize findings", 2, 3, 12, "Medium", None, 0,
|
| 113 |
+
"Affinity-map notes and draft opportunity areas."),
|
| 114 |
+
],
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
project_ids: dict[str, str] = {}
|
| 118 |
+
first_task_ids: dict[str, list[str]] = {}
|
| 119 |
+
for pi, (pname, color, icon, desc, pf) in enumerate(projects):
|
| 120 |
+
project_id = new_id("project")
|
| 121 |
+
project_ids[pname] = project_id
|
| 122 |
+
connection.execute(
|
| 123 |
+
"INSERT INTO az_projects(project_id, workspace_id, portfolio_id,"
|
| 124 |
+
" name, description, color, icon, owner_user_id, starred, created_at)"
|
| 125 |
+
" VALUES (?,?,?,?,?,?,?,?,?,?)",
|
| 126 |
+
(project_id, workspace_id, pf, pname, desc, color, icon,
|
| 127 |
+
owner_user_id, 1 if pi == 0 else 0, now()),
|
| 128 |
+
)
|
| 129 |
+
connection.execute(
|
| 130 |
+
"INSERT INTO az_project_memberships(project_id, user_id, access)"
|
| 131 |
+
" VALUES (?,?,'admin')", (project_id, owner_user_id),
|
| 132 |
+
)
|
| 133 |
+
section_ids = []
|
| 134 |
+
for si, sname in enumerate(section_names):
|
| 135 |
+
sid = new_id("section")
|
| 136 |
+
section_ids.append(sid)
|
| 137 |
+
connection.execute(
|
| 138 |
+
"INSERT INTO az_sections(section_id, project_id, name, sort_order)"
|
| 139 |
+
" VALUES (?,?,?,?)", (sid, project_id, sname, si),
|
| 140 |
+
)
|
| 141 |
+
task_ids = []
|
| 142 |
+
for ti, (tname, sec, assignee_i, due_off, priority, status, done, notes) in \
|
| 143 |
+
enumerate(demo_tasks[pname]):
|
| 144 |
+
task_id = new_id("task")
|
| 145 |
+
task_ids.append(task_id)
|
| 146 |
+
section_id = section_ids[2] if done else section_ids[sec]
|
| 147 |
+
connection.execute(
|
| 148 |
+
"INSERT INTO az_tasks(task_id, workspace_id, project_id,"
|
| 149 |
+
" section_id, name, notes, assignee_user_id, creator_user_id,"
|
| 150 |
+
" due_date, priority, task_status, completed, completed_at,"
|
| 151 |
+
" sort_order, created_at, modified_at)"
|
| 152 |
+
" VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",
|
| 153 |
+
(task_id, workspace_id, project_id, section_id, tname, notes,
|
| 154 |
+
all_users[assignee_i % len(all_users)], owner_user_id,
|
| 155 |
+
_date(due_off), priority, status, done,
|
| 156 |
+
now() - 86400 if done else None, ti, now() - 86400 * 3, now()),
|
| 157 |
+
)
|
| 158 |
+
first_task_ids[pname] = task_ids
|
| 159 |
+
|
| 160 |
+
# Subtasks and a dependency chain on the launch plan.
|
| 161 |
+
launch = first_task_ids["Product launch plan"]
|
| 162 |
+
for sub_i, sub in enumerate(["Collect metric baselines", "Review with leadership"]):
|
| 163 |
+
connection.execute(
|
| 164 |
+
"INSERT INTO az_tasks(task_id, workspace_id, project_id, section_id,"
|
| 165 |
+
" parent_task_id, name, creator_user_id, assignee_user_id, due_date,"
|
| 166 |
+
" sort_order, created_at, modified_at)"
|
| 167 |
+
" VALUES (?,?,?,?,?,?,?,?,?,?,?,?)",
|
| 168 |
+
(new_id("task"), workspace_id, project_ids["Product launch plan"],
|
| 169 |
+
None, launch[0], sub, owner_user_id,
|
| 170 |
+
all_users[sub_i % len(all_users)], _date(2 + sub_i), sub_i,
|
| 171 |
+
now(), now()),
|
| 172 |
+
)
|
| 173 |
+
connection.execute(
|
| 174 |
+
"INSERT OR IGNORE INTO az_task_dependencies(task_id, depends_on_task_id)"
|
| 175 |
+
" VALUES (?,?)", (launch[2], launch[1]),
|
| 176 |
+
)
|
| 177 |
+
connection.execute(
|
| 178 |
+
"INSERT OR IGNORE INTO az_task_dependencies(task_id, depends_on_task_id)"
|
| 179 |
+
" VALUES (?,?)", (launch[3], launch[2]),
|
| 180 |
+
)
|
| 181 |
+
|
| 182 |
+
# Synthetic conversation on the first launch task.
|
| 183 |
+
for author, body, age in [
|
| 184 |
+
(teammates[0], "I drafted the first outline — feedback welcome.", 7200),
|
| 185 |
+
(teammates[1], "Looks solid. Can we add the beta cohort size?", 3600),
|
| 186 |
+
]:
|
| 187 |
+
connection.execute(
|
| 188 |
+
"INSERT INTO az_comments(comment_id, task_id, author_user_id, body,"
|
| 189 |
+
" created_at) VALUES (?,?,?,?,?)",
|
| 190 |
+
(new_id("comment"), launch[0], author, body, now() - age),
|
| 191 |
+
)
|
| 192 |
+
connection.execute(
|
| 193 |
+
"INSERT OR IGNORE INTO az_task_collaborators(task_id, user_id)"
|
| 194 |
+
" VALUES (?,?)", (launch[0], teammates[0]),
|
| 195 |
+
)
|
| 196 |
+
|
| 197 |
+
# Goals, a sample automation rule, one pending invite.
|
| 198 |
+
for gname, progress, status in [
|
| 199 |
+
("Ship spring release on time", 45, "on_track"),
|
| 200 |
+
("Grow research participant panel to 100", 20, "at_risk"),
|
| 201 |
+
]:
|
| 202 |
+
connection.execute(
|
| 203 |
+
"INSERT INTO az_goals(goal_id, workspace_id, name, owner_user_id,"
|
| 204 |
+
" time_period, progress, status, created_at) VALUES (?,?,?,?,?,?,?,?)",
|
| 205 |
+
(new_id("goal"), workspace_id, gname, owner_user_id, "FY26",
|
| 206 |
+
progress, status, now()),
|
| 207 |
+
)
|
| 208 |
+
connection.execute(
|
| 209 |
+
"INSERT INTO az_rules(rule_id, project_id, name, trigger, action,"
|
| 210 |
+
" created_at) VALUES (?,?,?,?,?,?)",
|
| 211 |
+
(new_id("rule"), project_ids["Product launch plan"],
|
| 212 |
+
"Move completed tasks to Done", "task_completed",
|
| 213 |
+
"move_to_section:Done", now()),
|
| 214 |
+
)
|
| 215 |
+
|
| 216 |
+
record_activity(
|
| 217 |
+
connection, workspace_id=workspace_id, actor_user_id=owner_user_id,
|
| 218 |
+
verb="seeded", object_type="workspace", object_id=workspace_id,
|
| 219 |
+
object_name="Demo workspace", detail="Synthetic demo data created",
|
| 220 |
+
)
|
tasks/asana/solution/site/implementation/clone/asana_app/services.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Process-wide backend/auth services opened through the generated seam."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import sys
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
|
| 8 |
+
_CLONE_ROOT = Path(__file__).resolve().parents[1]
|
| 9 |
+
if str(_CLONE_ROOT) not in sys.path:
|
| 10 |
+
sys.path.insert(0, str(_CLONE_ROOT))
|
| 11 |
+
|
| 12 |
+
import os # noqa: E402
|
| 13 |
+
|
| 14 |
+
# Under the isolated diagnostic runner the candidate root is read-only and a
|
| 15 |
+
# private writable directory is provided; place the site database there.
|
| 16 |
+
if not os.environ.get("WEBSITEBENCH_SITE_BACKEND_DATABASE"):
|
| 17 |
+
_data_dir = os.environ.get("WEBSITEBENCH_DATA_DIR")
|
| 18 |
+
if _data_dir:
|
| 19 |
+
os.environ["WEBSITEBENCH_SITE_BACKEND_DATABASE"] = str(
|
| 20 |
+
Path(_data_dir) / "asana.sqlite3"
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
+
from backend.site_backend_integration import open_site_services # noqa: E402
|
| 24 |
+
|
| 25 |
+
from . import db as _db # noqa: E402
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
class _Services:
|
| 29 |
+
def __init__(self) -> None:
|
| 30 |
+
self.backend, self.auth = open_site_services()
|
| 31 |
+
self.cookie_name = self.backend.session_cookie["name"]
|
| 32 |
+
with self.auth.connect() as connection:
|
| 33 |
+
_db.ensure_schema(connection)
|
| 34 |
+
connection.commit()
|
| 35 |
+
# Public synthetic fixture credentials use the ordinary login path.
|
| 36 |
+
# New users still complete recipient-scoped registration and verification.
|
| 37 |
+
self.auth.seed_account(
|
| 38 |
+
subject_id="asana-demo-owner",
|
| 39 |
+
email="demo.owner@asana.example.test",
|
| 40 |
+
display_name="Demo Owner",
|
| 41 |
+
password="AsanaDemo2026!",
|
| 42 |
+
)
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
SERVICES = _Services()
|
tasks/asana/solution/site/implementation/clone/backend/site_backend_integration.py
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Generated, site-bound backend integration seam."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import importlib
|
| 6 |
+
import json
|
| 7 |
+
import os
|
| 8 |
+
import sqlite3
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
from typing import Any, Callable
|
| 11 |
+
|
| 12 |
+
from websitebench.local_clone_auth import LocalAuthStore
|
| 13 |
+
from websitebench.site_backend import (
|
| 14 |
+
SiteBackend,
|
| 15 |
+
load_runtime,
|
| 16 |
+
serve_jsonl,
|
| 17 |
+
validate_allowlist,
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
DEFAULT_RUNTIME_PATH = (
|
| 22 |
+
Path(__file__).resolve().parents[2] / "backend" / "runtime.json"
|
| 23 |
+
)
|
| 24 |
+
BRIDGE_DESCRIPTOR_PATH = (
|
| 25 |
+
Path(__file__).resolve().parents[2] / "backend" / "node-bridge.json"
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def _declared_hook(
|
| 30 |
+
declaration: str | None,
|
| 31 |
+
) -> Callable[[sqlite3.Connection], None] | None:
|
| 32 |
+
if declaration is None:
|
| 33 |
+
return None
|
| 34 |
+
module_name, function_name = declaration.split(":", 1)
|
| 35 |
+
module = importlib.import_module(module_name)
|
| 36 |
+
hook: Any = getattr(module, function_name, None)
|
| 37 |
+
if not callable(hook):
|
| 38 |
+
raise RuntimeError(f"declared backend hook is not callable: {declaration}")
|
| 39 |
+
actual = f"{hook.__module__}:{hook.__name__}"
|
| 40 |
+
if actual != declaration:
|
| 41 |
+
raise RuntimeError(
|
| 42 |
+
f"declared backend hook resolved as {actual!r}, expected {declaration!r}"
|
| 43 |
+
)
|
| 44 |
+
return hook
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
def open_site_services() -> tuple[SiteBackend, LocalAuthStore]:
|
| 48 |
+
"""Open one bound database; never omit the site id for permanent auth."""
|
| 49 |
+
|
| 50 |
+
runtime_path = Path(
|
| 51 |
+
os.environ.get(
|
| 52 |
+
"WEBSITEBENCH_SITE_BACKEND_RUNTIME",
|
| 53 |
+
str(DEFAULT_RUNTIME_PATH),
|
| 54 |
+
)
|
| 55 |
+
).resolve()
|
| 56 |
+
runtime = load_runtime(runtime_path)
|
| 57 |
+
migration_hook = _declared_hook(runtime.migration_hook)
|
| 58 |
+
seed_hook = _declared_hook(runtime.seed_hook)
|
| 59 |
+
deployed_database = os.environ.get(
|
| 60 |
+
"WEBSITEBENCH_SITE_BACKEND_DATABASE",
|
| 61 |
+
)
|
| 62 |
+
if deployed_database is None:
|
| 63 |
+
backend = SiteBackend.open(
|
| 64 |
+
runtime_path,
|
| 65 |
+
migration_hook=migration_hook,
|
| 66 |
+
seed_hook=seed_hook,
|
| 67 |
+
)
|
| 68 |
+
else:
|
| 69 |
+
database_path = Path(deployed_database).resolve()
|
| 70 |
+
if database_path.name != runtime.database_filename:
|
| 71 |
+
raise RuntimeError(
|
| 72 |
+
"deployed database filename does not match runtime contract"
|
| 73 |
+
)
|
| 74 |
+
backend = SiteBackend.open(
|
| 75 |
+
json.loads(runtime_path.read_text(encoding="utf-8")),
|
| 76 |
+
data_root=database_path.parent,
|
| 77 |
+
migration_hook=migration_hook,
|
| 78 |
+
seed_hook=seed_hook,
|
| 79 |
+
)
|
| 80 |
+
if backend.lifecycle.database_path != database_path:
|
| 81 |
+
raise RuntimeError(
|
| 82 |
+
"deployed database path does not match backend preflight"
|
| 83 |
+
)
|
| 84 |
+
backend.lifecycle.initialize()
|
| 85 |
+
# The declared concurrency contract is WAL transactional single-writer.
|
| 86 |
+
# Make that runtime property explicit and fail closed if the database
|
| 87 |
+
# cannot enter WAL mode (for example, on an incompatible filesystem).
|
| 88 |
+
with backend.lifecycle.connection() as connection:
|
| 89 |
+
journal_mode = str(
|
| 90 |
+
connection.execute("PRAGMA journal_mode=WAL").fetchone()[0]
|
| 91 |
+
).casefold()
|
| 92 |
+
if journal_mode != "wal":
|
| 93 |
+
raise RuntimeError("site database could not enter WAL journal mode")
|
| 94 |
+
auth = LocalAuthStore(
|
| 95 |
+
backend.lifecycle.database_path,
|
| 96 |
+
site_id=backend.config.site_id,
|
| 97 |
+
)
|
| 98 |
+
auth.ensure_schema()
|
| 99 |
+
return backend, auth
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def run_stdio_bridge() -> None:
|
| 103 |
+
"""Run only operations frozen in this site's descriptor."""
|
| 104 |
+
|
| 105 |
+
backend, auth = open_site_services()
|
| 106 |
+
descriptor = json.loads(BRIDGE_DESCRIPTOR_PATH.read_text(encoding="utf-8"))
|
| 107 |
+
allowed = validate_allowlist(
|
| 108 |
+
descriptor,
|
| 109 |
+
expected_site_id=backend.config.site_id,
|
| 110 |
+
)
|
| 111 |
+
serve_jsonl(backend, auth, allowed, sys.stdin, sys.stdout)
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
if __name__ == "__main__":
|
| 115 |
+
import argparse
|
| 116 |
+
import sys
|
| 117 |
+
|
| 118 |
+
parser = argparse.ArgumentParser(prog="websitebench-node-backend-bridge")
|
| 119 |
+
parser.add_argument("--stdio", action="store_true", required=True)
|
| 120 |
+
parser.parse_args()
|
| 121 |
+
run_stdio_bridge()
|
tasks/asana/solution/site/implementation/clone/requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi>=0.115
|
| 2 |
+
uvicorn>=0.30
|
| 3 |
+
python-multipart>=0.0.9
|
tasks/asana/solution/site/implementation/clone/static/app.css
ADDED
|
@@ -0,0 +1,591 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Authenticated app shell for the Asana offline clone. */
|
| 2 |
+
:root {
|
| 3 |
+
--coral: #f06a6a;
|
| 4 |
+
--ink: #1e1f21;
|
| 5 |
+
--ink-soft: #6d6e6f;
|
| 6 |
+
--line: #edeae9;
|
| 7 |
+
--bg: #ffffff;
|
| 8 |
+
--bg-warm: #f9f8f8;
|
| 9 |
+
--side: #2a2c2e;
|
| 10 |
+
--side-ink: #f5f4f3;
|
| 11 |
+
--side-soft: #a2a0a2;
|
| 12 |
+
--blue: #4573d2;
|
| 13 |
+
--green: #5da283;
|
| 14 |
+
--yellow: #f1bd6c;
|
| 15 |
+
--red: #c92f54;
|
| 16 |
+
--purple: #796eff;
|
| 17 |
+
--radius: 8px;
|
| 18 |
+
}
|
| 19 |
+
* { box-sizing: border-box; }
|
| 20 |
+
[hidden] { display: none !important; }
|
| 21 |
+
html, body { height: 100%; max-width: 100%; overflow: hidden; }
|
| 22 |
+
body.appbody {
|
| 23 |
+
margin: 0; color: var(--ink); background: var(--bg);
|
| 24 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
| 25 |
+
font-size: 14px; -webkit-font-smoothing: antialiased;
|
| 26 |
+
}
|
| 27 |
+
a { color: inherit; text-decoration: none; }
|
| 28 |
+
button { font: inherit; cursor: pointer; }
|
| 29 |
+
input, select, textarea { font: inherit; }
|
| 30 |
+
|
| 31 |
+
#app { display: flex; flex-direction: column; width: 100%; height: 100vh; overflow: hidden; }
|
| 32 |
+
.app-frame { display: flex; flex: 1; min-width: 0; min-height: 0; }
|
| 33 |
+
|
| 34 |
+
/* ---------- sidebar ---------- */
|
| 35 |
+
.sidebar {
|
| 36 |
+
width: 245px; min-width: 245px; height: 100%; background: var(--side); color: var(--side-ink);
|
| 37 |
+
display: flex; flex-direction: row; overflow: hidden; transition: margin-left .2s;
|
| 38 |
+
}
|
| 39 |
+
.sidebar.collapsed { margin-left: -245px; }
|
| 40 |
+
.mode-rail {
|
| 41 |
+
width: 64px; min-width: 64px; display: flex; flex-direction: column; align-items: center;
|
| 42 |
+
padding: 0 0 10px; background: var(--side); border-right: 1px solid #4a4c4e;
|
| 43 |
+
}
|
| 44 |
+
.mode-button {
|
| 45 |
+
width: 64px; height: 52px; margin-bottom: 8px; padding-top: 4px; flex: none; border: 0; border-radius: 0;
|
| 46 |
+
display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: flex-start;
|
| 47 |
+
color: #b8b9ba; font-size: 16px; line-height: 16px;
|
| 48 |
+
}
|
| 49 |
+
.mode-button > span { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
|
| 50 |
+
.mode-button .app-icon { width: 16px; height: 16px; }
|
| 51 |
+
.mode-button small { font-size: 10px; line-height: 12px; font-weight: 400; }
|
| 52 |
+
.mode-button:hover, .mode-button:focus-visible, .mode-button.active { color: #f2f3f4; outline: none; }
|
| 53 |
+
.mode-button:hover > span, .mode-button:focus-visible > span, .mode-button.active > span { background: rgba(255,255,255,.11); }
|
| 54 |
+
.mode-spacer { flex: 1; }
|
| 55 |
+
.mode-help { width: 32px; height: 32px; margin-bottom: 6px; padding: 0; border: 0; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: transparent; color: #b8b9ba; }
|
| 56 |
+
.mode-help:hover, .mode-help:focus-visible { background: rgba(255,255,255,.11); color: #fff; outline: none; }
|
| 57 |
+
.mode-help svg { width: 16px; height: 16px; fill: currentColor; }
|
| 58 |
+
.mode-profile { width: 28px !important; height: 28px !important; font-size: 10px !important; margin: 0 0 9px; }
|
| 59 |
+
.workspace-rail { width: 181px; min-width: 181px; display: flex; flex-direction: column; min-height: 0; }
|
| 60 |
+
.mode-links { padding-top: 8px; }.mode-note { margin: 12px 10px; color: #b8b9ba; font-size: 11px; line-height: 16px; }
|
| 61 |
+
.workspace-title {
|
| 62 |
+
width: 179px; height: 30px; margin: 4px 1px 0; padding: 0 5px; border: 0; border-radius: 6px;
|
| 63 |
+
display: flex; align-items: center; gap: 7px; overflow: hidden; background: transparent;
|
| 64 |
+
color: #f5f4f3; text-align: left; font-size: 14px; line-height: 22px;
|
| 65 |
+
}
|
| 66 |
+
.workspace-title > span:first-child { padding-left: 4px; }
|
| 67 |
+
.workspace-title:hover { background: rgba(255,255,255,.08); }
|
| 68 |
+
.workspace-mark {
|
| 69 |
+
width: 20px; height: 20px; flex: none; display: inline-flex; align-items: center; justify-content: center;
|
| 70 |
+
border-radius: 5px; background: #6d6e6f; color: #fff; font-size: 8px; font-weight: 700;
|
| 71 |
+
}
|
| 72 |
+
.workspace-title > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
| 73 |
+
.workspace-chevron { margin-left: auto; color: #a2a0a2; }
|
| 74 |
+
.workspace-primary, .workspace-links { padding: 0 5px; }
|
| 75 |
+
.side-item {
|
| 76 |
+
display: flex; align-items: center; gap: 8px; width: 100%; height: 32px;
|
| 77 |
+
padding: 0 8px; border-radius: 8px; color: var(--side-ink);
|
| 78 |
+
background: none; border: none; text-align: left; font-size: 14px; line-height: 22px;
|
| 79 |
+
}
|
| 80 |
+
.side-item > span:first-child { width: 16px; flex: none; text-align: center; color: #c5c6c7; }
|
| 81 |
+
.workspace-primary .side-item:nth-child(2) > span:first-child { position: relative; }
|
| 82 |
+
.workspace-primary .side-item:nth-child(2) > span:first-child::after {
|
| 83 |
+
content: ""; position: absolute; right: -1px; top: -1px; width: 6px; height: 6px; border-radius: 50%; background: #f06a6a;
|
| 84 |
+
}
|
| 85 |
+
.app-icon { width: 16px; height: 16px; display: block; fill: currentColor; }
|
| 86 |
+
.side-item:hover { background: rgba(255,255,255,.07); }
|
| 87 |
+
.side-item.active { background: rgba(255,255,255,.11); }
|
| 88 |
+
.side-item .badge { margin-left: auto; background: var(--coral); color: #fff; border-radius: 999px; font-size: .7rem; padding: .05rem .45rem; }
|
| 89 |
+
.workspace-separator { height: 1px; min-height: 1px; margin: 8px 9px; background: #4b4d4f; }
|
| 90 |
+
.side-section { padding: 8px 5px 6px; overflow-y: auto; flex: 1; min-height: 72px; }
|
| 91 |
+
.side-head { height: 32px; display: flex; align-items: center; justify-content: space-between; color: var(--side-soft); font-size: .8rem; padding: 0 8px; text-transform: none; }
|
| 92 |
+
.side-head button { background: none; border: none; color: var(--side-soft); font-size: 1rem; }
|
| 93 |
+
.side-head button svg { width: 12px; height: 12px; display: block; fill: currentColor; }
|
| 94 |
+
.side-head button:hover { color: #fff; }
|
| 95 |
+
.side-disclosure { width: 16px; height: 16px; margin-right: 3px; display: inline-flex; align-items: center; justify-content: center; color: #b6b7b8; }
|
| 96 |
+
.side-disclosure svg { width: 16px; height: 16px; display: block; fill: currentColor; transform: rotate(90deg); }
|
| 97 |
+
.proj-dot { width: .7rem; height: .7rem; border-radius: 3px; flex: none; }
|
| 98 |
+
.proj-mark { width: 20px; height: 20px; margin-left: -2px; margin-right: -2px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; background: #ff9b6a; color: #292a2c !important; }
|
| 99 |
+
.proj-mark svg { width: 12px; height: 12px; display: block; fill: currentColor; }
|
| 100 |
+
.side-foot {
|
| 101 |
+
width: 179px; height: 155px; flex: none; margin: 0 1px 9px; padding: 8px 8px 0;
|
| 102 |
+
display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #626364;
|
| 103 |
+
font-size: 14px; color: var(--side-soft);
|
| 104 |
+
}
|
| 105 |
+
.trial-card {
|
| 106 |
+
width: 163px; height: 102px; flex: none; margin: 0; padding: 8px; display: grid;
|
| 107 |
+
grid-template-columns: 26px 1fr; grid-template-rows: 36px 36px; column-gap: 8px; row-gap: 12px;
|
| 108 |
+
align-items: start; border: 1px solid #414244; border-radius: 6px; background: #252728; color: #f2f3f4;
|
| 109 |
+
}
|
| 110 |
+
.trial-card > span:nth-child(2) { height: 36px; display: flex; flex-direction: column; gap: 0; font-size: 12px; line-height: 18px; }
|
| 111 |
+
.trial-card strong { font-weight: 400; }
|
| 112 |
+
.trial-card small { color: #6dad8f; font-size: 12px; line-height: 18px; }
|
| 113 |
+
.trial-ring { width: 26px; height: 26px; align-self: center; border: 4px solid #6dad8f; border-right-color: #414244; border-radius: 50%; }
|
| 114 |
+
.trial-card button { grid-column: 1 / -1; height: 36px; border: 0; border-radius: 6px; background: #e5bf8d; color: #1d1f21; font-size: 14px; line-height: 36px; }
|
| 115 |
+
.invite-row { width: 163px; height: 36px; flex: none; gap: 4px; border: 1px solid #4f5052; justify-content: center; }
|
| 116 |
+
.invite-row > span:first-child { width: 20px; height: 16px; }
|
| 117 |
+
.invite-row svg { width: 20px; height: 16px; display: block; fill: currentColor; }
|
| 118 |
+
.workspace-switch-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
|
| 119 |
+
|
| 120 |
+
/* ---------- topbar ---------- */
|
| 121 |
+
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
|
| 122 |
+
.topbar {
|
| 123 |
+
position: relative; z-index: 35; display: flex; align-items: center; width: 100%; height: 49px;
|
| 124 |
+
min-height: 49px; padding: 0; border: 0; background: rgb(42,44,46); color: #fff;
|
| 125 |
+
}
|
| 126 |
+
.hamb-slot { width: 64px; height: 49px; display: flex; align-items: center; justify-content: center; flex: none; }
|
| 127 |
+
.hamb {
|
| 128 |
+
width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none;
|
| 129 |
+
color: #f5f4f3; font-size: 17px; line-height: 28px;
|
| 130 |
+
}
|
| 131 |
+
.hamb { display: flex; align-items: center; justify-content: center; color: #c8c9ca; font-size: 0; }
|
| 132 |
+
.hamb svg, .create-btn svg, .searchbox svg, .assistant-btn svg { width: 16px; height: 16px; display: block; fill: currentColor; }
|
| 133 |
+
.hamb:hover, .hamb:focus-visible, .assistant-btn:hover, .assistant-btn:focus-visible { background: rgba(255,255,255,.1); outline: none; }
|
| 134 |
+
.create-btn {
|
| 135 |
+
position: absolute; left: 64px; top: 8px; width: 89px; height: 32px; padding: 0 13px;
|
| 136 |
+
display: flex; align-items: center; justify-content: center; gap: 5px; background: rgb(64,66,68);
|
| 137 |
+
border: 1px solid #626364; color: #fff; border-radius: 16px; font-size: 14px; line-height: 22px; font-weight: 500;
|
| 138 |
+
}
|
| 139 |
+
.create-btn:hover { background: #505254; }
|
| 140 |
+
.searchbox { position: absolute; left: calc(50% - 270px); top: 8px; width: 540px; height: 32px; }
|
| 141 |
+
.searchbox input {
|
| 142 |
+
width: 100%; height: 32px; padding: 0 14px 0 34px; border-radius: 16px;
|
| 143 |
+
border: 1px solid #626364; background: #414244; color: #fff; font-size: 14px;
|
| 144 |
+
}
|
| 145 |
+
.searchbox input::placeholder { color: #d4d5d6; opacity: 1; }
|
| 146 |
+
.searchbox input:focus { outline: 2px solid #aebce0; outline-offset: 0; background: #505254; }
|
| 147 |
+
.searchbox .icon { position: absolute; z-index: 1; left: 12px; top: 8px; color: #c7c8c9; }
|
| 148 |
+
.assistant-btn {
|
| 149 |
+
position: absolute; right: 12px; top: 10px; width: 28px; height: 28px; padding: 0;
|
| 150 |
+
border: 1px solid #9d1b16; border-radius: 50%; background: none; color: #f06a6a; font-size: 15px;
|
| 151 |
+
}
|
| 152 |
+
.assistant-btn { display: flex; align-items: center; justify-content: center; }
|
| 153 |
+
.avatar {
|
| 154 |
+
width: 2rem; height: 2rem; border-radius: 50%; color: #fff; display: inline-flex;
|
| 155 |
+
align-items: center; justify-content: center; font-size: .78rem; font-weight: 600; flex: none;
|
| 156 |
+
border: none;
|
| 157 |
+
}
|
| 158 |
+
.avatar.sm { width: 1.55rem; height: 1.55rem; font-size: .62rem; }
|
| 159 |
+
|
| 160 |
+
/* ---------- content ---------- */
|
| 161 |
+
.content {
|
| 162 |
+
flex: 1; min-width: 0; overflow-x: hidden; overflow-y: auto;
|
| 163 |
+
background-color: #f6f2e9; background-image: url("/static/source/oat-background.png");
|
| 164 |
+
background-position: 0 0; background-repeat: no-repeat; background-size: cover;
|
| 165 |
+
}
|
| 166 |
+
.page { padding: 1.2rem 1.6rem 3rem; max-width: 80rem; }
|
| 167 |
+
.page-head { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: .6rem; }
|
| 168 |
+
.page-head h1 { font-size: 1.35rem; margin: 0; letter-spacing: -.01em; }
|
| 169 |
+
.page-sub { color: var(--ink-soft); margin: 0 0 1rem; }
|
| 170 |
+
.proj-icon { width: 2.4rem; height: 2.4rem; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; flex: none; }
|
| 171 |
+
|
| 172 |
+
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; flex-wrap: wrap; }
|
| 173 |
+
.tab { background: none; border: none; padding: .5rem .8rem; color: var(--ink-soft); border-bottom: 2px solid transparent; font-size: .92rem; }
|
| 174 |
+
.tab:hover { color: var(--ink); }
|
| 175 |
+
.tab.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
|
| 176 |
+
|
| 177 |
+
.toolbar { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; flex-wrap: wrap; }
|
| 178 |
+
.toolbar .spacer { flex: 1; }
|
| 179 |
+
.tbtn { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .35rem .7rem; font-size: .87rem; color: var(--ink); display: inline-flex; gap: .35rem; align-items: center; }
|
| 180 |
+
.tbtn:hover { border-color: #cfcbcb; background: var(--bg-warm); }
|
| 181 |
+
.tbtn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
|
| 182 |
+
.tbtn.danger { color: var(--red); }
|
| 183 |
+
.tbtn.on { background: #e8f0fe; border-color: var(--blue); color: var(--blue); }
|
| 184 |
+
select.tbtn { padding: .32rem .5rem; }
|
| 185 |
+
|
| 186 |
+
/* list view */
|
| 187 |
+
.tasklist { border-top: 1px solid var(--line); }
|
| 188 |
+
.section-row { display: flex; align-items: center; gap: .5rem; padding: .55rem .3rem .3rem; font-weight: 600; }
|
| 189 |
+
.section-row .count { color: var(--ink-soft); font-weight: 400; }
|
| 190 |
+
.task-row {
|
| 191 |
+
display: flex; align-items: center; gap: .55rem; padding: .42rem .3rem;
|
| 192 |
+
border-bottom: 1px solid var(--line); cursor: pointer;
|
| 193 |
+
}
|
| 194 |
+
.task-row:hover { background: var(--bg-warm); }
|
| 195 |
+
.task-row.done .tname { text-decoration: line-through; color: var(--ink-soft); }
|
| 196 |
+
.checkbox {
|
| 197 |
+
width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid #b9b6b6;
|
| 198 |
+
background: #fff; display: inline-flex; align-items: center; justify-content: center;
|
| 199 |
+
color: transparent; font-size: .7rem; flex: none; padding: 0;
|
| 200 |
+
}
|
| 201 |
+
.checkbox:hover { border-color: var(--green); color: var(--green); }
|
| 202 |
+
.checkbox.on { background: var(--green); border-color: var(--green); color: #fff; }
|
| 203 |
+
.tname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
| 204 |
+
.tmeta { display: flex; align-items: center; gap: .55rem; color: var(--ink-soft); font-size: .82rem; }
|
| 205 |
+
.due { white-space: nowrap; }
|
| 206 |
+
.due.overdue { color: var(--red); }
|
| 207 |
+
.due.today { color: var(--green); }
|
| 208 |
+
.chip { border-radius: 999px; padding: .1rem .55rem; font-size: .75rem; background: var(--bg-warm); border: 1px solid var(--line); white-space: nowrap; }
|
| 209 |
+
.chip.p-High { background: #fce9ec; color: #c92f54; border-color: #f5c9d2; }
|
| 210 |
+
.chip.p-Medium { background: #fdf3e3; color: #9a6700; border-color: #f3ddb0; }
|
| 211 |
+
.chip.p-Low { background: #e9f2ee; color: #2f6f4f; border-color: #cfe3d9; }
|
| 212 |
+
.chip.s-on_track { background: #e9f2ee; color: #2f6f4f; }
|
| 213 |
+
.chip.s-at_risk { background: #fdf3e3; color: #9a6700; }
|
| 214 |
+
.chip.s-off_track { background: #fce9ec; color: #c92f54; }
|
| 215 |
+
.addtask-row { padding: .5rem .3rem; }
|
| 216 |
+
.selectbox { width: 1rem; height: 1rem; flex: none; }
|
| 217 |
+
|
| 218 |
+
/* board view */
|
| 219 |
+
.board { display: flex; gap: .9rem; align-items: flex-start; overflow-x: auto; padding-bottom: 1rem; }
|
| 220 |
+
.col { background: var(--bg-warm); border-radius: 10px; min-width: 17rem; width: 17rem; padding: .6rem; }
|
| 221 |
+
.col-head { display: flex; align-items: center; gap: .4rem; font-weight: 600; padding: .2rem .3rem .6rem; }
|
| 222 |
+
.col-head .count { color: var(--ink-soft); font-weight: 400; }
|
| 223 |
+
.card {
|
| 224 |
+
background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .7rem;
|
| 225 |
+
margin-bottom: .55rem; cursor: pointer; box-shadow: 0 1px 2px rgba(30,31,33,.04);
|
| 226 |
+
}
|
| 227 |
+
.card:hover { border-color: #cfcbcb; }
|
| 228 |
+
.card .cname { font-weight: 500; margin-bottom: .45rem; }
|
| 229 |
+
.card.done .cname { text-decoration: line-through; color: var(--ink-soft); }
|
| 230 |
+
.card .cmeta { display: flex; gap: .45rem; align-items: center; color: var(--ink-soft); font-size: .78rem; flex-wrap: wrap; }
|
| 231 |
+
.addcard { width: 100%; background: none; border: none; color: var(--ink-soft); text-align: left; padding: .4rem .3rem; border-radius: 6px; }
|
| 232 |
+
.addcard:hover { background: #efecec; color: var(--ink); }
|
| 233 |
+
|
| 234 |
+
/* calendar view */
|
| 235 |
+
.cal-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
|
| 236 |
+
.cal-head h2 { margin: 0; font-size: 1.05rem; }
|
| 237 |
+
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
|
| 238 |
+
.cal-dow { padding: .35rem .5rem; font-size: .78rem; color: var(--ink-soft); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-warm); }
|
| 239 |
+
.cal-cell { min-height: 6.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .3rem; font-size: .8rem; }
|
| 240 |
+
.cal-cell.other { background: var(--bg-warm); color: var(--ink-soft); }
|
| 241 |
+
.cal-date { font-size: .75rem; color: var(--ink-soft); margin-bottom: .25rem; }
|
| 242 |
+
.cal-date.today { background: var(--coral); color: #fff; border-radius: 999px; width: 1.4rem; height: 1.4rem; display: inline-flex; align-items: center; justify-content: center; }
|
| 243 |
+
.cal-task { display: block; width: 100%; text-align: left; border: none; border-radius: 5px; color: #fff; padding: .18rem .4rem; margin-bottom: .2rem; font-size: .75rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
| 244 |
+
|
| 245 |
+
/* timeline view */
|
| 246 |
+
.tl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
|
| 247 |
+
.tl-grid { position: relative; min-width: 60rem; }
|
| 248 |
+
.tl-days { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-warm); }
|
| 249 |
+
.tl-day { width: 3rem; flex: none; font-size: .7rem; color: var(--ink-soft); text-align: center; padding: .3rem 0; border-right: 1px solid var(--line); }
|
| 250 |
+
.tl-day.wknd { background: #f1efee; }
|
| 251 |
+
.tl-row { position: relative; height: 2.3rem; border-bottom: 1px solid var(--line); }
|
| 252 |
+
.tl-bar {
|
| 253 |
+
position: absolute; top: .35rem; height: 1.6rem; border-radius: 6px; color: #fff;
|
| 254 |
+
font-size: .78rem; display: flex; align-items: center; padding: 0 .5rem;
|
| 255 |
+
overflow: hidden; white-space: nowrap; border: none; text-overflow: ellipsis;
|
| 256 |
+
}
|
| 257 |
+
.tl-bar.done { opacity: .55; }
|
| 258 |
+
.tl-unscheduled { padding: .6rem; color: var(--ink-soft); font-size: .85rem; }
|
| 259 |
+
|
| 260 |
+
/* generic cards/grids */
|
| 261 |
+
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
|
| 262 |
+
.gcard { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; cursor: pointer; background: #fff; }
|
| 263 |
+
.gcard:hover { border-color: #cfcbcb; box-shadow: 0 2px 8px rgba(30,31,33,.06); }
|
| 264 |
+
.gcard h3 { margin: .5rem 0 .2rem; font-size: 1rem; }
|
| 265 |
+
.gcard .gsub { color: var(--ink-soft); font-size: .83rem; }
|
| 266 |
+
.mode-page { max-width: 72rem; padding: 32px 40px 60px; }
|
| 267 |
+
.mode-hero { min-height: 240px; margin-bottom: 28px; padding: 34px; display: flex; align-items: center; gap: 30px; border-radius: 16px; background: #f5f3f3; }
|
| 268 |
+
.mode-hero > div { max-width: 700px; }.mode-hero h1 { margin: 5px 0 12px; font-size: 34px; line-height: 40px; }
|
| 269 |
+
.mode-hero p { margin: 0; color: var(--ink-soft); line-height: 24px; }.mode-eyebrow { color: var(--ink) !important; font-size: 11px; letter-spacing: .14em; }
|
| 270 |
+
.strategy-hero { background: #edf6ff; }.mode-card-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
|
| 271 |
+
.mode-card { width: 100%; min-height: 190px; text-align: left; color: var(--ink); }
|
| 272 |
+
.mode-card p, .people-card p { color: var(--ink-soft); line-height: 21px; }.mode-card > span:last-child, .people-card > span:last-child { display: inline-block; margin-top: 15px; font-size: 13px; font-weight: 600; }
|
| 273 |
+
.mode-card-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #ffd5d2; }
|
| 274 |
+
.mode-card-icon.large { width: 74px; height: 74px; flex: none; border-radius: 20px; font-size: 28px; }
|
| 275 |
+
.knowledge-search, .people-tools { max-width: 760px; margin: 18px 0 24px; display: flex; gap: 10px; }
|
| 276 |
+
.knowledge-search input, .people-tools input { width: 100%; height: 42px; padding: 0 13px; border: 1px solid #cfcbcb; border-radius: 8px; }
|
| 277 |
+
.people-directory { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }.people-card { min-height: 180px; width: 100%; text-align: left; color: var(--ink); }
|
| 278 |
+
.profile-menu-head { display: flex; align-items: center; gap: 12px; }.profile-menu-head h2 { margin: 0 0 3px; }.profile-menu-head .page-sub { margin: 0; }
|
| 279 |
+
.profile-menu-actions, .help-menu-grid, .home-option-list { margin-top: 18px; display: grid; gap: 8px; }.profile-menu-actions .tbtn, .help-menu-grid .tbtn, .home-option-list .tbtn { width: 100%; justify-content: flex-start; text-align: left; }
|
| 280 |
+
.progressbar { height: .45rem; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: .5rem; }
|
| 281 |
+
.progressbar > div { height: 100%; background: var(--green); }
|
| 282 |
+
|
| 283 |
+
/* Authenticated Home: geometry is derived only from the sanitized visual2 facts. */
|
| 284 |
+
.home-page { width: 100%; min-width: 0; max-width: none; min-height: 1741px; padding: 0; }
|
| 285 |
+
.home-header {
|
| 286 |
+
position: relative; height: 90px; margin: 0 24px; padding: 24px 8px 0;
|
| 287 |
+
}
|
| 288 |
+
.home-date { display: block; height: 22px; color: #1d1f21; font-size: 14px; line-height: 22px; font-weight: 500; }
|
| 289 |
+
.home-header h1 {
|
| 290 |
+
height: 40px; margin: 4px 0 0; font-size: 32px; line-height: 40px; font-weight: 400;
|
| 291 |
+
letter-spacing: normal; white-space: nowrap;
|
| 292 |
+
}
|
| 293 |
+
.home-header-actions {
|
| 294 |
+
position: absolute; right: 8px; top: 62px; height: 28px; display: flex; align-items: center; gap: 10px;
|
| 295 |
+
}
|
| 296 |
+
.home-summary { height: 28px; display: flex; align-items: center; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.88); }
|
| 297 |
+
.home-summary button, .home-customize {
|
| 298 |
+
height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: rgba(255,255,255,.56);
|
| 299 |
+
color: #38393b; font-size: 12px; line-height: 28px;
|
| 300 |
+
}
|
| 301 |
+
.home-summary button { border-radius: 0; border-right: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
|
| 302 |
+
.home-summary button:first-child {
|
| 303 |
+
background-image: linear-gradient(rgba(30,31,33,.14),rgba(30,31,33,.14));
|
| 304 |
+
background-size: 1px 24px; background-position: right center; background-repeat: no-repeat;
|
| 305 |
+
}
|
| 306 |
+
.home-summary svg { width: 12px; height: 12px; display: block; fill: currentColor; }
|
| 307 |
+
.home-summary button:nth-child(1) { width: 85px; }
|
| 308 |
+
.home-summary button:nth-child(2) { width: 150px; }
|
| 309 |
+
.home-summary button:nth-child(3) { width: 119px; }
|
| 310 |
+
.home-summary button:hover, .home-customize:hover { background: rgba(255,255,255,.84); }
|
| 311 |
+
.home-customize {
|
| 312 |
+
width: 94px; padding: 0 6px; border: 1px solid rgba(30,31,33,.18); font-size: 12px;
|
| 313 |
+
white-space: nowrap;
|
| 314 |
+
}
|
| 315 |
+
.home-customize > span {
|
| 316 |
+
width: 12px; height: 12px; margin-right: 4px; display: inline-block; vertical-align: -2px;
|
| 317 |
+
border-radius: 2px; color: transparent;
|
| 318 |
+
background: conic-gradient(#f06a6a 0 25%, #f1bd6c 0 50%, #5da283 0 75%, #4573d2 0);
|
| 319 |
+
}
|
| 320 |
+
.home-list {
|
| 321 |
+
display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
| 322 |
+
width: auto; margin: 12px 24px 0;
|
| 323 |
+
}
|
| 324 |
+
.home-section { height: 416px; min-width: 0; padding: 8px; }
|
| 325 |
+
.home-card {
|
| 326 |
+
width: 100%; height: 400px; overflow: hidden; background: #fff; border: 1px solid rgba(30,31,33,.08);
|
| 327 |
+
border-radius: 8px; box-shadow: 0 1px 2px rgba(30,31,33,.06);
|
| 328 |
+
}
|
| 329 |
+
.home-card h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; }
|
| 330 |
+
.home-task-head { height: 97px; border-bottom: 1px solid var(--line); }
|
| 331 |
+
.home-title-row { height: 52px; padding: 24px 24px 0; display: flex; align-items: center; gap: 8px; }
|
| 332 |
+
.home-title-row h2 { flex: none; }
|
| 333 |
+
.home-avatar { width: 24px; height: 24px; font-size: 9px; }
|
| 334 |
+
.home-lock { color: #6d6e6f; font-size: 10px; }
|
| 335 |
+
.home-more {
|
| 336 |
+
width: 28px; height: 28px; margin-left: auto; padding: 0; border: 0; border-radius: 6px;
|
| 337 |
+
background: transparent; color: var(--ink-soft); letter-spacing: 1px;
|
| 338 |
+
}
|
| 339 |
+
.home-title-row, .home-project-head { position: relative; }
|
| 340 |
+
.home-title-row > .home-more, .home-project-head > .home-more {
|
| 341 |
+
position: absolute; right: 8px; top: 8px; width: 38px; height: 38px;
|
| 342 |
+
border: 1px solid #e5e2e1; border-radius: 9px; background: rgba(255,255,255,.92);
|
| 343 |
+
box-shadow: 0 1px 2px rgba(30,31,33,.03);
|
| 344 |
+
}
|
| 345 |
+
.home-more:hover { background: var(--bg-warm); }
|
| 346 |
+
.home-task-tabs { height: 44px; margin: 0 24px; padding: 8px 0; display: flex; align-items: stretch; gap: 4px; }
|
| 347 |
+
.home-task-tabs button {
|
| 348 |
+
height: 28px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent;
|
| 349 |
+
color: var(--ink-soft); font-size: 14px; line-height: 28px;
|
| 350 |
+
}
|
| 351 |
+
.home-task-tabs button:hover { background: var(--bg-warm); color: var(--ink); }
|
| 352 |
+
.home-task-tabs button.active { background: #e9f1fe; color: #335fb5; font-weight: 500; }
|
| 353 |
+
.home-task-panel { height: 301px; display: flex; flex-direction: column; overflow: hidden; }
|
| 354 |
+
.home-task-create { height: 53px; min-height: 53px; padding: 0 24px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: #55575a; text-align: left; }
|
| 355 |
+
.home-task-create:hover { background: var(--bg-warm); }
|
| 356 |
+
.home-task-rows { flex: 1; min-height: 0; padding: 0 24px; overflow-y: auto; }
|
| 357 |
+
.home-task-rows .task-row { min-height: 36px; padding: 7px 0; }
|
| 358 |
+
.home-project-chip { max-width: 92px; padding: 3px 7px; display: inline-flex; align-items: center; gap: 5px; overflow: hidden; border-radius: 5px; background: #f1f1f1; color: #4d4e50; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
|
| 359 |
+
.home-project-chip i { width: 11px; height: 11px; flex: none; border-radius: 3px; background: #ff9b6a; }
|
| 360 |
+
.home-due { min-width: 70px; color: #477b68; font-size: 12px; text-align: right; white-space: nowrap; }
|
| 361 |
+
.home-task-actions {
|
| 362 |
+
height: 43px; min-height: 43px; padding: 6px 24px 8px; display: flex; align-items: center; gap: 16px;
|
| 363 |
+
border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px;
|
| 364 |
+
}
|
| 365 |
+
.home-task-actions button, .home-project-actions button, .home-project-actions a {
|
| 366 |
+
padding: 0; border: 0; background: none; color: var(--ink-soft); font-size: 13px;
|
| 367 |
+
}
|
| 368 |
+
.home-task-actions a { margin-left: auto; }
|
| 369 |
+
.home-task-actions button:hover, .home-task-actions a:hover,
|
| 370 |
+
.home-project-actions button:hover, .home-project-actions a:hover { color: var(--ink); text-decoration: underline; }
|
| 371 |
+
.home-empty {
|
| 372 |
+
min-height: 90px; padding: 28px 8px; display: flex; flex-direction: column; align-items: center;
|
| 373 |
+
justify-content: center; gap: 4px; color: var(--ink-soft); text-align: center;
|
| 374 |
+
}
|
| 375 |
+
.home-empty strong { color: var(--ink); font-weight: 500; }
|
| 376 |
+
.home-project-head { height: 52px; padding: 22px 8px 2px 24px; display: flex; align-items: center; gap: 14px; }
|
| 377 |
+
.home-project-view { padding: 0; border: 0; background: transparent; color: #55575a; font-size: 12px; }
|
| 378 |
+
.home-project-head .home-more { margin-left: auto; }
|
| 379 |
+
.home-project-list {
|
| 380 |
+
height: 240px; padding: 16px 28px 8px; display: flex; align-items: flex-start; gap: 2px; overflow: hidden;
|
| 381 |
+
}
|
| 382 |
+
.home-project-row, .home-project-create {
|
| 383 |
+
width: 220px; min-height: 64px; padding: 8px; display: flex; align-items: center; gap: 12px;
|
| 384 |
+
border: 0; border-radius: 8px; background: #fff; color: var(--ink); text-align: left;
|
| 385 |
+
}
|
| 386 |
+
.home-project-row:hover, .home-project-create:hover { background: var(--bg-warm); }
|
| 387 |
+
.home-project-create > span { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px dashed #8e8f90; border-radius: 10px; font-size: 24px; font-weight: 300; }
|
| 388 |
+
.home-project-create strong { font-weight: 500; }
|
| 389 |
+
.home-project-icon {
|
| 390 |
+
width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center;
|
| 391 |
+
border-radius: 9px; color: #fff; font-size: 16px;
|
| 392 |
+
}
|
| 393 |
+
.home-project-row .home-project-icon { background: #ff9b6a !important; color: #292a2c; }
|
| 394 |
+
.home-project-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
|
| 395 |
+
.home-project-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
|
| 396 |
+
.home-project-copy span { color: var(--ink-soft); font-size: 12px; }
|
| 397 |
+
.row-arrow { color: var(--ink-soft); font-size: 20px; }
|
| 398 |
+
.home-project-actions {
|
| 399 |
+
height: 52px; padding: 11px 24px; display: flex; align-items: center; justify-content: space-between;
|
| 400 |
+
border-top: 1px solid var(--line);
|
| 401 |
+
}
|
| 402 |
+
.home-learn { grid-column: 1 / -1; }
|
| 403 |
+
.home-learn .home-card > h2 { height: 52px; padding: 24px 24px 0; }
|
| 404 |
+
.home-learn .home-card > h2 span { display: block; height: 28px; }
|
| 405 |
+
.learn-carousel { width: 100%; height: 338px; padding: 24px; overflow: hidden; }
|
| 406 |
+
.learn-track { width: max-content; margin: 2px; display: flex; gap: 20px; }
|
| 407 |
+
.learn-card {
|
| 408 |
+
width: 320px; height: 286px; padding: 0; overflow: hidden; flex: none; display: flex; flex-direction: column;
|
| 409 |
+
border: 1px solid #e8e9ea; border-radius: 8px; background: #fff; color: var(--ink); text-align: left;
|
| 410 |
+
}
|
| 411 |
+
.learn-card:hover { border-color: #e4bfc2; box-shadow: 0 2px 8px rgba(30,31,33,.08); }
|
| 412 |
+
.learn-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
|
| 413 |
+
.learn-graphic {
|
| 414 |
+
position: relative; width: 318px; min-height: 180px; display: block; overflow: hidden;
|
| 415 |
+
border-radius: 7px 7px 0 0; background: #ffeaec;
|
| 416 |
+
}
|
| 417 |
+
.learn-vector { position: absolute; left: 99px; top: 30px; width: 120px; height: 120px; display: block; }
|
| 418 |
+
.learn-art { position: absolute; left: 50%; top: 28px; width: 150px; height: 125px; transform: translateX(-50%); color: #a82543; }
|
| 419 |
+
.learn-art-rocket i:nth-child(1) { position: absolute; left: 57px; top: 6px; width: 38px; height: 88px; border: 2px solid currentColor; border-radius: 50% 50% 12px 12px; background: #fff5f5; }
|
| 420 |
+
.learn-art-rocket i:nth-child(2), .learn-art-rocket i:nth-child(3) { position: absolute; top: 54px; width: 34px; height: 45px; border: 2px solid currentColor; background: #f06a6a; }
|
| 421 |
+
.learn-art-rocket i:nth-child(2) { left: 28px; border-radius: 28px 5px 5px 8px; }
|
| 422 |
+
.learn-art-rocket i:nth-child(3) { right: 27px; border-radius: 5px 28px 8px 5px; }
|
| 423 |
+
.learn-art-rocket i:nth-child(4) { position: absolute; left: 36px; right: 36px; bottom: 3px; height: 28px; border-bottom: 2px solid currentColor; border-radius: 50%; box-shadow: inset 0 -11px 0 #fff; }
|
| 424 |
+
.learn-art-education i:nth-child(1) { position: absolute; left: 19px; top: 39px; width: 105px; height: 58px; border: 2px solid currentColor; background: #fff5f5; transform: skew(-18deg) rotate(-13deg); }
|
| 425 |
+
.learn-art-education i:nth-child(2) { position: absolute; left: 46px; top: 31px; width: 85px; height: 36px; border: 2px solid currentColor; background: #f7c5ca; transform: rotate(-13deg); clip-path: polygon(0 50%,50% 0,100% 50%,50% 100%); }
|
| 426 |
+
.learn-art-education i:nth-child(3) { position: absolute; right: 4px; top: 43px; width: 3px; height: 44px; background: currentColor; transform: rotate(-13deg); }
|
| 427 |
+
.learn-art-education i:nth-child(4) { position: absolute; right: 0; top: 82px; width: 10px; height: 18px; border: 2px solid currentColor; border-radius: 50%; }
|
| 428 |
+
.learn-art-calendar i:nth-child(1) { position: absolute; left: 29px; top: 12px; width: 92px; height: 88px; border: 2px solid currentColor; border-radius: 7px; background: #fff7f7; box-shadow: inset 0 23px 0 #f7c5ca; }
|
| 429 |
+
.learn-art-calendar i:nth-child(2) { position: absolute; left: 46px; top: 53px; width: 56px; height: 35px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: skew(-12deg); }
|
| 430 |
+
.learn-art-calendar i:nth-child(3) { position: absolute; left: 54px; top: 70px; width: 16px; height: 15px; background: #f06a6a; box-shadow: 20px -10px 0 #f06a6a,40px -23px 0 #f06a6a; }
|
| 431 |
+
.learn-art-calendar i:nth-child(4) { position: absolute; left: 70px; bottom: 1px; width: 18px; height: 23px; background: currentColor; clip-path: polygon(50% 0,100% 100%,0 100%); }
|
| 432 |
+
.learn-art-workflow { opacity: .7; }
|
| 433 |
+
.learn-art-workflow i { position: absolute; width: 42px; height: 42px; border: 2px solid currentColor; border-radius: 8px; background: #fff; }
|
| 434 |
+
.learn-art-workflow i:nth-child(1) { left: 12px; top: 22px; }.learn-art-workflow i:nth-child(2) { left: 54px; top: 54px; }.learn-art-workflow i:nth-child(3) { right: 12px; top: 22px; }.learn-art-workflow i:nth-child(4) { left: 54px; top: 96px; }
|
| 435 |
+
.learn-graphic-2, .learn-graphic-3, .learn-graphic-4 { background: #ffeaec; }
|
| 436 |
+
.learn-duration { position: absolute; left: 15px; bottom: 12px; padding: 2px 7px; border-radius: 4px; background: #424244; color: #fff; font-size: 12px; line-height: 20px; }
|
| 437 |
+
.learn-card:nth-child(1) .learn-duration::before,
|
| 438 |
+
.learn-card:nth-child(3) .learn-duration::before { content: "▷ "; font-size: 12px; }
|
| 439 |
+
.learn-card:nth-child(2) .learn-duration::before { content: "▤ "; font-size: 11px; }
|
| 440 |
+
.learn-card > strong { margin: 16px 16px 0; font-size: 16px; line-height: 20px; font-weight: 500; }
|
| 441 |
+
.learn-copy { margin: 8px 16px 0; color: var(--ink-soft); font-size: 14px; line-height: 20px; }
|
| 442 |
+
.home-widget { min-width: 0; }
|
| 443 |
+
.home-focus { height: 342px; }
|
| 444 |
+
.home-focus .home-card { height: 326px; }
|
| 445 |
+
.widget-card { padding: 0 24px 20px; }
|
| 446 |
+
.widget-head { min-height: 112px; padding: 28px 0 16px; display: flex; gap: 16px; justify-content: space-between; border-bottom: 1px solid var(--line); }
|
| 447 |
+
.widget-head h2 { margin-bottom: 8px; }.widget-head p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 20px; }
|
| 448 |
+
.widget-rows button { width: 100%; height: 48px; padding: 0; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
|
| 449 |
+
.widget-rows strong { overflow: hidden; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }.widget-rows time { color: var(--ink-soft); font-size: 12px; }
|
| 450 |
+
.people-grid { padding-top: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
|
| 451 |
+
.people-grid button { min-height: 118px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
|
| 452 |
+
.people-grid strong { font-size: 13px; font-weight: 500; }.people-grid small { color: var(--ink-soft); }
|
| 453 |
+
.widget-avatar { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 11px; }.widget-avatar.blue{background:#4573d2}.widget-avatar.pink{background:#f06a6a}.widget-avatar.green{background:#5da283}
|
| 454 |
+
.focus-steps { padding-top: 20px; display: flex; gap: 16px; }.focus-steps button { flex: 1; min-height: 100px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; }.focus-steps span { width: 32px; height: 32px; margin-left: 12px; display: inline-flex; align-items:center;justify-content:center;border-radius:50%;background:#ffeaec;color:#a82543; }.focus-steps strong { font-weight:500; }
|
| 455 |
+
.assistant-prompts { display: flex; flex-wrap: wrap; gap: 8px; }
|
| 456 |
+
.assistant-answer { min-height: 22px; margin: 14px 0 0; color: var(--ink-soft); }
|
| 457 |
+
.achievement-list p { padding: 10px 0; border-bottom: 1px solid var(--line); }
|
| 458 |
+
.achievement-list p > span { margin-right: 8px; }
|
| 459 |
+
.saved-view-row {
|
| 460 |
+
width: 100%; min-height: 38px; padding: 7px 9px; border: 0; border-bottom: 1px solid var(--line);
|
| 461 |
+
background: #fff; color: var(--ink); text-align: left;
|
| 462 |
+
}
|
| 463 |
+
.saved-view-row:hover { background: var(--bg-warm); }
|
| 464 |
+
.text-button { padding: 0; border: 0; background: transparent; color: var(--blue); text-align: left; }
|
| 465 |
+
.text-button:hover { text-decoration: underline; }
|
| 466 |
+
|
| 467 |
+
/* empty + error states */
|
| 468 |
+
.empty { text-align: center; padding: 3.2rem 1rem; color: var(--ink-soft); }
|
| 469 |
+
.empty h3 { color: var(--ink); margin-bottom: .3rem; }
|
| 470 |
+
.empty .art { font-size: 2.2rem; margin-bottom: .6rem; }
|
| 471 |
+
.loading { padding: 2.5rem; text-align: center; color: var(--ink-soft); }
|
| 472 |
+
.spinner { display: inline-block; width: 1.4rem; height: 1.4rem; border: 2.5px solid var(--line); border-top-color: var(--coral); border-radius: 50%; animation: spin .8s linear infinite; }
|
| 473 |
+
@keyframes spin { to { transform: rotate(360deg); } }
|
| 474 |
+
|
| 475 |
+
/* task pane */
|
| 476 |
+
.pane-backdrop { position: fixed; inset: 0; background: rgba(30,31,33,.25); z-index: 40; }
|
| 477 |
+
.task-pane {
|
| 478 |
+
position: fixed; top: 0; right: 0; bottom: 0; width: min(34rem, 100vw);
|
| 479 |
+
background: #fff; border-left: 1px solid var(--line); z-index: 41;
|
| 480 |
+
display: flex; flex-direction: column; box-shadow: -12px 0 30px rgba(30,31,33,.08);
|
| 481 |
+
}
|
| 482 |
+
.pane-top { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
|
| 483 |
+
.pane-top .spacer { flex: 1; }
|
| 484 |
+
.iconbtn { background: none; border: none; color: var(--ink-soft); font-size: 1rem; padding: .3rem .45rem; border-radius: 6px; }
|
| 485 |
+
.iconbtn:hover { background: var(--bg-warm); color: var(--ink); }
|
| 486 |
+
.pane-body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
|
| 487 |
+
.pane-body h2[contenteditable] { font-size: 1.25rem; margin: 0 0 .9rem; outline: none; border-radius: 6px; padding: .2rem .3rem; }
|
| 488 |
+
.pane-body h2[contenteditable]:focus { box-shadow: 0 0 0 2px var(--blue); }
|
| 489 |
+
.frow { display: flex; align-items: center; gap: .7rem; margin-bottom: .65rem; }
|
| 490 |
+
.frow .flabel { width: 6.5rem; color: var(--ink-soft); font-size: .85rem; flex: none; }
|
| 491 |
+
.frow select, .frow input[type=date] { border: 1px solid var(--line); border-radius: 6px; padding: .3rem .5rem; background: #fff; }
|
| 492 |
+
.notes-box { width: 100%; min-height: 5.5rem; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; resize: vertical; }
|
| 493 |
+
.subhead { font-weight: 600; margin: 1.1rem 0 .45rem; font-size: .92rem; }
|
| 494 |
+
.subtask-row { display: flex; gap: .5rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--line); }
|
| 495 |
+
.dep-row { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; font-size: .88rem; }
|
| 496 |
+
.comment { display: flex; gap: .6rem; margin-bottom: .8rem; }
|
| 497 |
+
.comment .cbody { background: var(--bg-warm); border-radius: 10px; padding: .5rem .8rem; flex: 1; }
|
| 498 |
+
.comment .cwho { font-weight: 600; font-size: .85rem; }
|
| 499 |
+
.comment .cwhen { color: var(--ink-soft); font-size: .75rem; margin-left: .4rem; font-weight: 400; }
|
| 500 |
+
.comment-box { display: flex; gap: .6rem; margin-top: .6rem; }
|
| 501 |
+
.comment-box textarea { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; min-height: 2.6rem; resize: vertical; }
|
| 502 |
+
.activity-item { color: var(--ink-soft); font-size: .82rem; padding: .22rem 0; }
|
| 503 |
+
|
| 504 |
+
/* modal */
|
| 505 |
+
.modal-backdrop { position: fixed; inset: 0; background: rgba(30,31,33,.35); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 7vh 1rem; }
|
| 506 |
+
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 30rem; padding: 1.3rem 1.4rem; box-shadow: 0 24px 60px rgba(30,31,33,.25); max-height: 84vh; overflow-y: auto; }
|
| 507 |
+
.modal h2 { margin: 0 0 1rem; font-size: 1.15rem; }
|
| 508 |
+
.modal .field { margin-bottom: .8rem; text-align: left; }
|
| 509 |
+
.modal .field label { display: block; font-size: .84rem; margin-bottom: .25rem; }
|
| 510 |
+
.modal .field input, .modal .field select, .modal .field textarea { width: 100%; border: 1px solid #cfcbcb; border-radius: 6px; padding: .5rem .6rem; }
|
| 511 |
+
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.1rem; }
|
| 512 |
+
.color-row { display: flex; gap: .4rem; flex-wrap: wrap; }
|
| 513 |
+
.color-swatch { width: 1.6rem; height: 1.6rem; border-radius: 6px; border: 2px solid transparent; padding: 0; }
|
| 514 |
+
.color-swatch.on { border-color: var(--ink); }
|
| 515 |
+
|
| 516 |
+
/* toast */
|
| 517 |
+
.toasts { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: .5rem; }
|
| 518 |
+
.toast { background: var(--ink); color: #fff; border-radius: 8px; padding: .6rem 1.1rem; font-size: .9rem; box-shadow: 0 8px 24px rgba(30,31,33,.3); }
|
| 519 |
+
.toast.error { background: var(--red); }
|
| 520 |
+
|
| 521 |
+
/* inbox */
|
| 522 |
+
.inbox-item { display: flex; gap: .7rem; padding: .75rem .4rem; border-bottom: 1px solid var(--line); align-items: flex-start; }
|
| 523 |
+
.inbox-item.unread { background: #f5f8ff; }
|
| 524 |
+
.inbox-item .when { color: var(--ink-soft); font-size: .78rem; }
|
| 525 |
+
.inbox-actions { margin-left: auto; display: flex; gap: .3rem; }
|
| 526 |
+
|
| 527 |
+
/* settings/admin */
|
| 528 |
+
.settings-block { border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; max-width: 44rem; }
|
| 529 |
+
.settings-block h3 { margin-top: 0; }
|
| 530 |
+
.member-row { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
|
| 531 |
+
.member-row .who { flex: 1; min-width: 0; }
|
| 532 |
+
.member-row .who .em { color: var(--ink-soft); font-size: .8rem; }
|
| 533 |
+
.table { width: 100%; border-collapse: collapse; }
|
| 534 |
+
.table th, .table td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); font-size: .88rem; }
|
| 535 |
+
.table th { color: var(--ink-soft); font-weight: 500; }
|
| 536 |
+
|
| 537 |
+
@media (max-width: 860px) {
|
| 538 |
+
.sidebar {
|
| 539 |
+
position: fixed; z-index: 30; height: calc(100vh - 49px); left: 0; top: 49px; margin-left: -245px;
|
| 540 |
+
}
|
| 541 |
+
.sidebar.open { margin-left: 0; box-shadow: 20px 0 50px rgba(0,0,0,.3); }
|
| 542 |
+
.sidebar.collapsed { margin-left: -245px; }
|
| 543 |
+
.main { width: 100%; }
|
| 544 |
+
.mode-page { padding: 24px 18px 48px; }.mode-hero { padding: 24px; align-items: flex-start; }.mode-hero h1 { font-size: 27px; line-height: 32px; }
|
| 545 |
+
.create-btn {
|
| 546 |
+
left: 64px; top: 10px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
|
| 547 |
+
background: var(--coral); font-size: 18px;
|
| 548 |
+
}
|
| 549 |
+
.create-btn:hover { background: #e45f5f; }
|
| 550 |
+
.create-label { display: none; }
|
| 551 |
+
.searchbox { left: 100px; top: 8px; width: calc(100% - 148px); max-width: none; }
|
| 552 |
+
.searchbox input { padding-right: 10px; font-size: 13px; }
|
| 553 |
+
.assistant-btn { right: 12px; width: 28px; height: 28px; }
|
| 554 |
+
.page { padding: .9rem .8rem 3rem; }
|
| 555 |
+
.page.home-page { min-height: 2683px; padding: 0; }
|
| 556 |
+
.home-header { height: 126px; margin: 0 8px 0 24px; padding: 24px 8px 0; }
|
| 557 |
+
.home-header-actions { top: 48px; right: 0; left: 8px; height: 78px; display: block; }
|
| 558 |
+
.home-customize { position: absolute; right: 0; top: 0; width: 91px; }
|
| 559 |
+
.home-summary { position: absolute; left: 0; top: 50px; width: 352px; padding-right: 8px; background: #fff; }
|
| 560 |
+
.home-summary button { min-width: 0; padding: 0; flex: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
| 561 |
+
.home-summary button:nth-child(1) { width: 85px; padding-left: 8px; justify-content: flex-start; gap: 4px; text-align: left; font-weight: 500; color: #626364; }
|
| 562 |
+
.home-summary button:nth-child(1) { border: 1px solid transparent; }
|
| 563 |
+
.home-summary button:nth-child(2) { width: 137px; padding-left: 16.67px; justify-content: flex-start; text-align: left; color: #626364; }
|
| 564 |
+
.home-summary button:nth-child(3) { width: 122px; padding-left: 12.4px; justify-content: flex-start; text-align: left; color: #626364; }
|
| 565 |
+
.home-summary button:nth-child(2) > span, .home-summary button:nth-child(3) > span {
|
| 566 |
+
width: 12px; height: 12px; flex: none; display: block; margin-right: 15.5px; color: #626364;
|
| 567 |
+
}
|
| 568 |
+
.home-list { display: block; width: 344px; margin: 11px 23px 0; }
|
| 569 |
+
.home-section { width: 344px; }
|
| 570 |
+
.home-my-tasks { width: 342px; margin-left: 1px; padding: 9px 8px 7px; }
|
| 571 |
+
.home-card { border-color: #fff; }
|
| 572 |
+
.home-project-list { height: 168px; }
|
| 573 |
+
.home-project-list { padding: 11px 29px 8px; flex-direction: column; gap: 8px; overflow: hidden; }
|
| 574 |
+
.home-project-row, .home-project-create { width: 268px; min-height: 64px; }
|
| 575 |
+
.home-project-create { gap: 19px; }
|
| 576 |
+
.home-project-row { gap: 20px; }
|
| 577 |
+
.home-project-actions { margin-top: 126px; }
|
| 578 |
+
.home-learn .home-card > h2 { height: 52px; padding: 24px 24px 0; }
|
| 579 |
+
.learn-carousel { height: 338px; padding: 24px; }
|
| 580 |
+
.home-focus { height: 416px; }
|
| 581 |
+
.home-focus .home-card { height: 400px; }
|
| 582 |
+
.widget-card { padding-left: 24px; padding-right: 24px; }
|
| 583 |
+
.widget-head { min-height: 112px; }
|
| 584 |
+
.people-grid { grid-template-columns: 1fr; gap: 8px; }
|
| 585 |
+
.people-grid button { min-height: 66px; flex-direction: row; justify-content: flex-start; padding: 8px 12px; }
|
| 586 |
+
.people-grid small { margin-left: auto; }
|
| 587 |
+
.focus-steps { flex-direction: column; gap: 8px; }
|
| 588 |
+
.focus-steps button { min-height: 64px; }
|
| 589 |
+
.task-pane { width: 100vw; }
|
| 590 |
+
.tmeta .chip { display: none; }
|
| 591 |
+
}
|
tasks/asana/solution/site/implementation/clone/static/app.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/auth.js
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Auth page behavior: login (two-step continue), signup + verify, forgot + reset.
|
| 2 |
+
// All requests stay on the local origin.
|
| 3 |
+
(function () {
|
| 4 |
+
"use strict";
|
| 5 |
+
|
| 6 |
+
function $(sel) { return document.querySelector(sel); }
|
| 7 |
+
|
| 8 |
+
async function post(url, body) {
|
| 9 |
+
const res = await fetch(url, {
|
| 10 |
+
method: "POST",
|
| 11 |
+
headers: { "Content-Type": "application/json" },
|
| 12 |
+
body: JSON.stringify(body || {}),
|
| 13 |
+
credentials: "same-origin",
|
| 14 |
+
});
|
| 15 |
+
let data = {};
|
| 16 |
+
try { data = await res.json(); } catch (e) { /* empty body */ }
|
| 17 |
+
return { ok: res.ok, status: res.status, data: data };
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
function showError(el, message) {
|
| 21 |
+
el.textContent = message;
|
| 22 |
+
el.hidden = !message;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
function returnTarget() {
|
| 26 |
+
const u = new URLSearchParams(location.search).get("u");
|
| 27 |
+
return u && u.startsWith("/app") ? u : "/app/home";
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
document.querySelectorAll(".sso").forEach(function (btn) {
|
| 31 |
+
btn.addEventListener("click", function () {
|
| 32 |
+
alert(btn.dataset.sso + " sign-in is not available in this offline demo. " +
|
| 33 |
+
"Use an email account instead.");
|
| 34 |
+
});
|
| 35 |
+
});
|
| 36 |
+
|
| 37 |
+
// ---- login: reveal password on first continue, then submit.
|
| 38 |
+
const loginForm = $("#login-form");
|
| 39 |
+
if (loginForm) {
|
| 40 |
+
loginForm.addEventListener("submit", async function (ev) {
|
| 41 |
+
ev.preventDefault();
|
| 42 |
+
const errEl = $("#login-error");
|
| 43 |
+
showError(errEl, "");
|
| 44 |
+
const email = $("#email").value.trim();
|
| 45 |
+
if (!email || email.indexOf("@") < 1) {
|
| 46 |
+
showError(errEl, "Enter a valid email address."); return;
|
| 47 |
+
}
|
| 48 |
+
const pwField = $("#password-field");
|
| 49 |
+
if (pwField.classList.contains("hidden")) {
|
| 50 |
+
pwField.classList.remove("hidden");
|
| 51 |
+
$("#login-continue").textContent = "Log in";
|
| 52 |
+
$("#password").focus();
|
| 53 |
+
return;
|
| 54 |
+
}
|
| 55 |
+
const password = $("#password").value;
|
| 56 |
+
if (!password) { showError(errEl, "Enter your password."); return; }
|
| 57 |
+
const r = await post("/api/auth/login", { email: email, password: password });
|
| 58 |
+
if (r.ok) { location.assign(returnTarget()); }
|
| 59 |
+
else { showError(errEl, r.data.error ? r.data.error.message : "Log in failed."); }
|
| 60 |
+
});
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
// ---- signup
|
| 64 |
+
const signupForm = $("#signup-form");
|
| 65 |
+
if (signupForm) {
|
| 66 |
+
signupForm.addEventListener("submit", async function (ev) {
|
| 67 |
+
ev.preventDefault();
|
| 68 |
+
const errEl = $("#signup-error");
|
| 69 |
+
showError(errEl, "");
|
| 70 |
+
const name = $("#name").value.trim();
|
| 71 |
+
const email = $("#email").value.trim();
|
| 72 |
+
const password = $("#password").value;
|
| 73 |
+
if (!name) { showError(errEl, "Enter your full name."); return; }
|
| 74 |
+
if (!email || email.indexOf("@") < 1) { showError(errEl, "Enter a valid email address."); return; }
|
| 75 |
+
if (password.length < 8) { showError(errEl, "Password must be at least 8 characters."); return; }
|
| 76 |
+
const r = await post("/api/auth/signup", { name: name, email: email, password: password });
|
| 77 |
+
if (!r.ok) { showError(errEl, r.data.error ? r.data.error.message : "Sign up failed."); return; }
|
| 78 |
+
signupForm.classList.add("hidden");
|
| 79 |
+
$("#verify-step").classList.remove("hidden");
|
| 80 |
+
$("#code").focus();
|
| 81 |
+
});
|
| 82 |
+
const verifyForm = $("#verify-form");
|
| 83 |
+
verifyForm.addEventListener("submit", async function (ev) {
|
| 84 |
+
ev.preventDefault();
|
| 85 |
+
const errEl = $("#verify-error");
|
| 86 |
+
showError(errEl, "");
|
| 87 |
+
const r = await post("/api/auth/verify", { code: $("#code").value.trim() });
|
| 88 |
+
if (r.ok) { location.assign("/app/home"); }
|
| 89 |
+
else { showError(errEl, r.data.error ? r.data.error.message : "Verification failed."); }
|
| 90 |
+
});
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
// ---- forgot / reset
|
| 94 |
+
const forgotForm = $("#forgot-form");
|
| 95 |
+
if (forgotForm) {
|
| 96 |
+
forgotForm.addEventListener("submit", async function (ev) {
|
| 97 |
+
ev.preventDefault();
|
| 98 |
+
const errEl = $("#forgot-error");
|
| 99 |
+
showError(errEl, "");
|
| 100 |
+
const email = $("#email").value.trim();
|
| 101 |
+
if (!email || email.indexOf("@") < 1) { showError(errEl, "Enter a valid email address."); return; }
|
| 102 |
+
const r = await post("/api/auth/forgot", { email: email });
|
| 103 |
+
if (!r.ok) { showError(errEl, r.data.error ? r.data.error.message : "Request failed."); return; }
|
| 104 |
+
forgotForm.classList.add("hidden");
|
| 105 |
+
$("#reset-step").classList.remove("hidden");
|
| 106 |
+
});
|
| 107 |
+
$("#reset-form").addEventListener("submit", async function (ev) {
|
| 108 |
+
ev.preventDefault();
|
| 109 |
+
const errEl = $("#reset-error");
|
| 110 |
+
showError(errEl, "");
|
| 111 |
+
const password = $("#new-password").value;
|
| 112 |
+
if (password.length < 8) { showError(errEl, "Password must be at least 8 characters."); return; }
|
| 113 |
+
const r = await post("/api/auth/reset", { code: $("#code").value.trim(), password: password });
|
| 114 |
+
if (r.ok) {
|
| 115 |
+
location.assign("/-/login");
|
| 116 |
+
} else { showError(errEl, r.data.error ? r.data.error.message : "Reset failed."); }
|
| 117 |
+
});
|
| 118 |
+
}
|
| 119 |
+
})();
|
tasks/asana/solution/site/implementation/clone/static/favicon.svg
ADDED
|
|
tasks/asana/solution/site/implementation/clone/static/home.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(() => {
|
| 2 |
+
const setActive = (buttons, selected) => {
|
| 3 |
+
buttons.forEach(button => {
|
| 4 |
+
const active = button === selected;
|
| 5 |
+
button.classList.toggle("is-active", active);
|
| 6 |
+
button.setAttribute("aria-selected", String(active));
|
| 7 |
+
const mark = button.querySelector("b");
|
| 8 |
+
if (mark) mark.textContent = active ? "−" : "+";
|
| 9 |
+
});
|
| 10 |
+
};
|
| 11 |
+
|
| 12 |
+
const aiButtons = [...document.querySelectorAll(".ai-story-tab")];
|
| 13 |
+
const aiStage = document.querySelector(".ai-story-stage");
|
| 14 |
+
const aiImage = document.getElementById("ai-stage-image");
|
| 15 |
+
const aiTitle = document.getElementById("ai-stage-title");
|
| 16 |
+
aiButtons.forEach(button => button.addEventListener("click", () => {
|
| 17 |
+
setActive(aiButtons, button);
|
| 18 |
+
aiStage.classList.add("is-changing");
|
| 19 |
+
aiImage.src = button.dataset.image;
|
| 20 |
+
aiImage.alt = button.dataset.alt;
|
| 21 |
+
aiTitle.textContent = button.dataset.stageTitle;
|
| 22 |
+
requestAnimationFrame(() => aiStage.classList.remove("is-changing"));
|
| 23 |
+
}));
|
| 24 |
+
|
| 25 |
+
const productDetails = [
|
| 26 |
+
["Goals and portfolios", "Strategy stays connected to every project.", "One shared plan", "People and agents act with the same context."],
|
| 27 |
+
["Requests to resolution", "Route service work to the right expert instantly.", "Governed automation", "Agents resolve requests with clear permissions."],
|
| 28 |
+
["Client context", "Keep briefs, meetings, and delivery in one view.", "Durable relationships", "Teams and agents remember every commitment."],
|
| 29 |
+
["Product context", "Issues, pull requests, and decisions stay connected.", "Faster shipping", "Humans and agents coordinate every handoff."],
|
| 30 |
+
["Agentic workflows", "Connect enterprise knowledge to repeatable flows.", "Enterprise control", "Build, monitor, and govern every agent."],
|
| 31 |
+
];
|
| 32 |
+
const productButtons = [...document.querySelectorAll(".productivity-tab")];
|
| 33 |
+
const productStage = document.querySelector(".productivity-stage");
|
| 34 |
+
const productImage = document.getElementById("product-image");
|
| 35 |
+
const productTitle = document.getElementById("product-title");
|
| 36 |
+
const productCopy = document.getElementById("product-copy");
|
| 37 |
+
const sideFields = ["product-left-title", "product-left-copy", "product-right-title", "product-right-copy"];
|
| 38 |
+
productButtons.forEach((button, index) => button.addEventListener("click", () => {
|
| 39 |
+
setActive(productButtons, button);
|
| 40 |
+
productStage.classList.add("is-changing");
|
| 41 |
+
productTitle.textContent = button.dataset.title;
|
| 42 |
+
productCopy.textContent = button.dataset.copy;
|
| 43 |
+
productImage.src = button.dataset.image;
|
| 44 |
+
productImage.alt = button.dataset.alt;
|
| 45 |
+
sideFields.forEach((id, field) => { document.getElementById(id).textContent = productDetails[index][field]; });
|
| 46 |
+
requestAnimationFrame(() => productStage.classList.remove("is-changing"));
|
| 47 |
+
}));
|
| 48 |
+
})();
|
tasks/asana/solution/site/implementation/clone/static/official-pages/academy--trainings.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/academy.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/agencies.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/apps.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/certifications.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/community.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/customer-success.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/customers.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/developers.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/download.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/enterprise.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/events.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/features--admin-security.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/help.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/industry--education.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/industry--financial-services.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/industry--government-solutions.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/industry--healthcare.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/industry--manufacturing.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/industry--nonprofit.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/industry--retail.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/partners--channel--directory.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/partners.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/product--ai--ai-studio.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/product--ai--ai-teammates.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/product--ai--dash.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/product--ai.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/product--client-management.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/product--command.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/product--service-management.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tasks/asana/solution/site/implementation/clone/static/official-pages/product--stackai.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|