162 Commits
Author SHA1 Message Date
tobayahandClaude Opus 4.7 2fe4fbbcd0 docs(handoff): Sprint 5 plan + add compass-pr-reviewer wrapper
Add docs/handoffs/2026-05-18-sprint5-handoff.md — full Sprint 5 scope post Sprint 4 push (origin/main 79d2048): DE jurisdiction module (BGB § 309, GeschGehG, BDSG) as moat #3 expansion, JWT custom claims trigger + storage bucket RLS migrations closing 4 of 5 audit follow-up notes, audit_log + task_events writers with DBPoolHolder injection pattern, pilot live eval for Bielik baseline. Stretch: Termination clause, integration tests, dataset 4 to 20.

Add .claude/agents/compass-pr-reviewer.md — thin Compass-specific wrapper over generic pr-reviewer-orchestrator. Supplies project config (compass-architecture 12-pkt, compass-ai-native-mandates 8-pkt, compass-clause-taxonomy 13-pkt conditional) + scope filters + exception marker. Enforces CLAUDE.md AI-native discipline mandatory pre-merge self-check.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 21:29:18 +02:00
tobayahandClaude Opus 4.7 2faa2b2c04 chore(web): use env vars for Supabase credentials
Replace hardcoded Lovable-generated URL + anon key in apps/web/src/integrations/supabase/client.ts with import.meta.env.VITE_SUPABASE_* reads. Throw at boot if missing so misconfiguration fails loud instead of silent 401s downstream.

Add apps/web/.env.example as template (gitignored .env.local pattern already in repo). VITE_ prefix is intentional — anon key is meant to be client-bundled. Service role keys never go here.

Closes Sprint 4 working-tree drift before Sprint 5 work begins.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 21:28:58 +02:00
tobayahandClaude Opus 4.7 79d20482aa feat(clauses): add Confidentiality clause type (PL)
Sprint 4 second concrete clause type — validates the add-clause workflow
from compass-clause-taxonomy fundament 7 by exercising every step on
Confidentiality after Liability shipped in Sprint 2.

Pydantic schema (compass_schemas.clauses.confidentiality):
- duration_years, mutual, exceptions (5 Literal values), survives_termination,
  residuals_clause, preliminary_status, key_observations,
  suggested_questions_for_counsel
- Two model_validators parallel to LiabilityClause:
    enforce_counsel_disclaimer  — auto-append the legal-tech sign-off line
    flag_indefinite_duration    — None duration_years + Approved -> downgrade
                                  to Needs Attention with explanatory observation

Prompt (compass_prompts.clauses.confidentiality_extraction_v1):
- PROMPT_VERSION = "confidentiality_v1"
- 13 numbered rules covering schema fields, PL/EN terminology,
  carve-out semantics, never-assert-enforceability discipline
- 4 few-shot examples: mutual 3yr full exceptions (Approved), indefinite
  one-sided no exceptions (Needs Attention), PL § 9 5yr partial
  exceptions (Needs Attention), clause absent

PL jurisdiction overlay (compass_jurisdictions.pl.confidentiality):
- MANDATORY_OBSERVATIONS reference UoZNK art. 11 (tajemnica
  przedsiębiorstwa — statutory indefinite protection independent of
  contract) and KC art. 484 § 2 ("rażąco wygórowana" reduction)
- PROMPT_HINTS adds PL vocabulary, market-norm reference (3-5 years),
  antitrust angle on indefinite obligations
- post_extraction_check downgrades when: duration > 5 years (UoZNK
  statutory already covers indefinitely), fewer than 3 of 4 core
  exceptions present, residuals_clause set in a PL contract

Golden dataset (packages/evals/datasets/confidentiality_pl.jsonl):
- 4 synthetic examples on launch + TODO marker to expand to 20+
  (user-side curation from anonymized PL contracts)
- Mix English / Polish text per PL real-world distribution

Eval test (packages/evals/tests/test_confidentiality_extraction.py):
- @pytest.mark.eval with the same thresholds as liability
  (precision >= 0.85, recall >= 0.80, cost_per_doc <= $0.02)
- Live test skipped when ANTHROPIC_API_KEY absent
- Mock smoke test independent of --profile flag verifies runner pipeline

Registry + zod mirror:
- CLAUSE_REGISTRY in compass_agents.clause_extractor += confidentiality
- apps/web/src/components/contract-form/clauses/confidentiality.ts
  is the manual zod mirror per fundament 2 sync rule

Tests: 17/17 llm-gateway + 9 evals green (2 live correctly skipped).

13-pkt compass-clause-taxonomy self-check:
- Schema fields typed (Literal enums, int, bool), two validators ✓
- Zod mirror created in same change ✓
- CLAUSE_TYPES enum already covers "confidentiality" (Sprint 2 migration) ✓
- Prompt versioned with PROMPT_VERSION constant ✓
- Few-shot count 4 covers standard / red flag / PL / absent ✓
- Disclaimer hardcoded in system prompt + auto-appended by validator ✓
- Golden dataset: 4 synthetic with explicit expand-to-20 TODO ✓
- Eval test with explicit thresholds + CI workflow trigger path ✓
- Prompt change CI hook (eval.yml watches packages/prompts/**) ✓
- PL jurisdiction post_extraction_check ✓
- Confidence threshold default (0.7/0.5) ✓
- legal-tech red flags reflected (indefinite, partial exceptions,
  residuals in PL) ✓
- ADR-001 M2 schema-first + M4 eval-driven satisfied ✓

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 17:40:59 +02:00
tobayahandClaude Opus 4.7 17f6bc1f62 ci(eval): add eval gate workflow (mock default, live via dispatch)
Sprint 4 ADR-001 M4 enforcement in CI.

Triggers:
- pull_request on packages/{prompts,agents,evals,jurisdictions,
  schemas/clauses,llm-gateway}/** — always runs with --profile=mock
  (zero LLM creds in PR CI, no accidental cost)
- workflow_dispatch with choice [mock, cloud-cheap, cloud-premium] for
  manual live runs

local-data-sovereign profile is NOT available in CI by design (no
Ollama / GPU on GitHub runners) — run locally with
  uv run pytest packages/evals/tests/ -m eval --profile=local-data-sovereign

junit XML uploaded as artifact for regression triage. ANTHROPIC_API_KEY
passed from secrets but only consumed when profile != mock; harmless
when unset.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 17:40:25 +02:00
tobayahandClaude Opus 4.7 f876883a47 feat(core): wire JWT verify, tenant_context, Redis pub/sub
Sprint 4 replaces the Sprint 1 NotImplementedError stubs in compass_core
with working multi-tenant security primitives.

auth.py
- Supabase JWT verify (RS256) against .well-known/jwks.json
- Process-wide JWKS cache, refresh-once on signature failure (key
  rotation), 401 on persistent failure
- Defensive extraction of sub / app_metadata.tenant_id / role / email;
  missing tenant_id claim is fatal (tenant_id_claim_missing)
- current_user FastAPI dependency for route handlers

tenant.py
- tenant_context(tenant_id, db_pool) async manager that opens a
  transaction and pins app.tenant_id via SELECT set_config($1, $2, true)
  (parameterized; SET LOCAL takes no parameters). LOCAL scope drops the
  setting on commit / rollback / pool return — no cross-tenant leak via
  pooled connections.

events.py
- redis.asyncio pub/sub for SSE event stream
- tenant_id is keyword-only on publish_event AND subscribe_task_events
  so callers must be explicit (defense in depth)
- subscriber drops events whose tenant_id does not match (no-op with
  correct RLS+auth, mechanical guard against cross-tenant leak via
  Redis)
- Auto-break on done event so SSE generators exit cleanly

Caller updates (atomic with the new signature):
- apps/workers/tasks/extraction.py — every publish_event call passes
  tenant_id, task_id+tenant_id are UUIDs; removed NotImplementedError
  fallback shims
- apps/api/routes/stream.py — current_user dependency, UUID validation
  on task_id, tenant-scoped subscribe

docs/auth/jwt-custom-claims.md spec for the Supabase side (Postgres
trigger that mirrors compass.users.tenant_id into auth.users
raw_app_meta_data). Trigger migration deferred to Sprint 5.

packages/core/pyproject.toml gains asyncpg, httpx, python-jose,
fastapi for the new code paths.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 17:40:12 +02:00
tobayahandClaude Opus 4.7 142400947a feat(db): add compass schema + RLS day 1 migration
Sprint 4 first production migration. New `compass` schema isolates the
multi-tenant data layer from the legacy Lovable `public.*` demo tables
so both can coexist until the demo is retired.

Tables (all with tenant_id + RLS enabled in the same file):
- compass.tenants / compass.users
- compass.contracts / compass.clauses (denormalized tenant_id for RLS perf)
- compass.audit_log + compass.task_events (append-only: SELECT+INSERT
  policies only, REVOKE UPDATE/DELETE as defense-in-depth)
- compass.jurisdictions (global reference, no RLS, GRANT SELECT)

Fail-closed posture: when middleware does not SET LOCAL app.tenant_id,
current_setting(..., true) returns NULL and policy filter evaluates
false, leaving rows invisible rather than open.

Audit report in docs/audits/2026-05-18_rls_day_one.md walks
compass-rls-auditor checklist + CLAUDE.md security invariants 9-pkt +
compass-architecture self-check 12-pkt. Verdict PASS with 5 non-blocking
follow-up notes (storage bucket policy, soft-delete filter,
jurisdictions Python sync, service_role runtime discipline, audit_log
writer Sprint 5).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 17:39:46 +02:00
tobayahandClaude Opus 4.7 8771a72f50 docs: Sprint 4 handoff — RLS day 1 + JWT + Confidentiality + eval CI
Scope: ADR-001 W3 plan + drugi clause type (Confidentiality). Focus na
multi-tenant security day 1 (RLS + JWT + audit propagation) + validate
add-clause workflow z compass-clause-taxonomy. MCP server, compass-pr-reviewer,
Ollama bundling — explicite Sprint 5+.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 17:03:43 +02:00
tobayahandClaude Opus 4.7 944eed2106 feat: provider-agnostic LLM gateway + curated profiles (Sprint 3, ADR-002)
- ADR-002 formalizuje BYOK + 5 curated profiles + Claude Code side-channel
- packages/llm-gateway: LLMGatewayConfig (pydantic-settings env-driven),
  profile-based routing (cloud-cheap/cloud-premium/local-data-sovereign/
  hybrid/custom), Ollama models (Bielik 11B, Llama 3.3 70B), mock provider
  deterministic stub, hybrid promotion logic, routing_decision w Langfuse
  trace metadata; GatewayRejected nadal provider-agnostic
- packages/evals: mock mode (CI bez ANTHROPIC_API_KEY), --profile flag
  w conftest, lazy import compass_agents
- .claude/skills/compass-legal-review: internal-use side-channel workflow
  (Claude Code reuses packages/* jako library, 12-pkt self-check)
- scripts/setup_local_llm.{sh,ps1}: Ollama+Bielik bootstrap (winget/curl)
- CLAUDE.md + .env.example: BYOK + 5 profiles + model routing matrix
  per profile + cross-references do ADR-002 + compass-legal-review skill

Tests: 17/17 llm-gateway config, 9/9 evals --profile=mock,
8/9 default (1 correct skip without ANTHROPIC_API_KEY).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 16:54:47 +02:00
tobayah 9c50931209 docs: Sprint 3 handoff — hybrid B+C+A (BYOK + local LLM + internal-use)
Strategic pivot decided 2026-05-17 evening:
- Compass-runtime becomes provider-agnostic (BYOK pattern, MikeOSS-compatible)
- Default deployment profile = local-data-sovereign (Ollama+Bielik on-prem)
- Claude Code internal-use side-channel — reuses packages/* as library
- ADR-002 (LLM provider BYOK) authored in Sprint 3
- RLS+JWT migration deferred to Sprint 4 (no customers yet)

Full scope + new-window prompt in docs/handoffs/2026-05-17-sprint3-handoff.md.
2026-05-17 16:21:20 +02:00
tobayah 979a835ef2 feat: liability extraction pipeline (Sprint 2 W2)
First concrete clause type — Limitation of Liability for PL jurisdiction —
shipped through the full AI-native stack designed in Sprint 0/1.

Schemas:
- packages/schemas/clauses/base.py ClauseBase with hardcoded
  requires_counsel_review=True (legal-tech disclaimer)
- packages/schemas/clauses/liability.py LiabilityClause + LiabilityCap with
  two model_validators: (a) auto-append "REQUIRES LEGAL COUNSEL SIGN-OFF"
  to key_observations when missing, (b) downgrade Approved -> Needs Attention
  when cap is None (catches unconditional acceptance of unlimited liability)

Prompt (liability_v1):
- packages/prompts/clauses/liability_extraction_v1.py — versioned per
  compass-clause-taxonomy fundament 4
- SYSTEM_PROMPT: schema-first instructions + 9 rules + anti-legal-advice
  disclaimer
- 3 FEW_SHOT_EXAMPLES: standard mutual cap (Approved), unlimited liability
  vendor-side (Rejected), fixed cap w/o carve-outs (Needs Attention)
- compass_prompts.load_prompt() helper for runtime resolution

Jurisdiction overlay (PL):
- packages/jurisdictions/pl/liability.py — references KC art. 473 § 2
  (nieważne wyłączenie odpowiedzialności za winę umyślną / rażące
  niedbalstwo) + KC art. 484 § 2 (court may reduce "rażąco wygórowana"
  kara umowna)
- MANDATORY_OBSERVATIONS auto-prepended to every extracted PL clause
- PROMPT_HINTS injected into system prompt with PL terminology
- post_extraction_check() downgrades Approved when gross_negligence /
  willful_misconduct carve-outs are missing (PL law makes the exclusion
  ineffective for those)
- compass_jurisdictions.get_jurisdiction_module() dynamic loader with
  graceful None fallback for missing (jurisdiction, clause) pairs

Agent + LLM gateway:
- packages/agents/clause_extractor.py — generic extract_clause(text,
  clause_type, jurisdiction_code, tenant_id, contract_id=...) routes
  through LLMRouter so M5 cost-aware + M8 Langfuse observability are
  enforced at gateway level
- Schema-first with up to 3 Pydantic retries (M2) prepending the
  validation error to the next attempt as correction guidance
- Single Opus 4.7 fallback after Sonnet retries exhaust (M5 fallback chain
  partial — DLQ in Celery task)
- CLAUSE_REGISTRY {"liability": {...}} — extend per
  compass-clause-taxonomy adding-clause workflow

Eval framework:
- packages/evals/runner.py — load_dataset() JSONL reader, _compare_fields()
  recursive precision/recall on objective fields only (subjective fields
  text/key_observations/etc graded by LLM-as-judge in Sprint 3+),
  EvalResult.summary() with precision/recall/cost_per_doc/error_rate
- packages/evals/datasets/liability_pl.jsonl — 4 synthetic PL examples
  (mutual cap, unlimited, missing carve-outs, clause absent) + TODO marker
  for user to expand to >=20 from real anonymized contracts
- packages/evals/tests/test_liability_extraction.py — @pytest.mark.eval
  with precision >= 0.85 / recall >= 0.80 / cost_per_doc <= $0.02 /
  error_rate <= 10% thresholds. Skipped without ANTHROPIC_API_KEY
- packages/evals/tests/test_liability_schema.py — 7 offline unit tests
  (no LLM) verifying disclaimer auto-append, unlimited liability
  downgrade, confidence bounds, requires_counsel_review immutability, PL
  post_extraction_check side effects. ALL 7 PASS in 0.08s

Async pipeline (M3 + M7):
- apps/workers/tasks/extraction.py extract_contract_task — Celery task,
  fan-out over CLAUSE_REGISTRY via asyncio.gather, retry_backoff up to 3
  on transient errors, autoretry_for=(ConnectionError, TimeoutError)
- Per-clause SSE event emission via compass_core.events.publish_event
  (stub raises NotImplementedError -> caught + logged in Sprint 2;
  Sprint 3 wires Redis pub/sub)
- apps/workers/celery_app.py updated: include + task_routes for new task

API:
- apps/api/routes/contracts.py POST /api/v1/contracts/{id}/extract —
  Pydantic input (tenant_id, contract_text, jurisdiction_code), returns
  202 + task_id + status_url + stream_url
- apps/api/routes/stream.py GET /api/v1/stream/{task_id} SSE +
  /api/v1/tasks/{task_id} poll-style fallback for non-SSE clients
- Both wired into apps/api/main.py
- Live smoke test passed: /health 200, 6 routes in OpenAPI, POST with
  empty body returns 422, POST with valid body dispatches Celery (hangs
  on Redis broker offline — expected)

Frontend zod mirror:
- apps/web/src/components/contract-form/clauses/liability.ts — manual
  mirror per compass-clause-taxonomy fundament 2 Opcja A; matches all
  Pydantic fields + enums + nested LiabilityCap

Subagent:
- .claude/agents/compass-prompt-tester.md — Haiku 4.5 orchestrator for
  eval gate. Read-only on prompts/schemas, Write only to
  packages/evals/results/

Sprint 2 self-check summary:
- compass-architecture 12-pt: 10/12 pass, 2 N/A (no migrations / DB ops yet)
- compass-clause-taxonomy 13-pt: 13/13 pass (golden dataset 4/20, user
  expands)
- compass-ai-native-mandates 8-pt: 8/8 pass (M6 cache layers stubs only —
  Sprint 3 wires Redis embedding + result memoization)

Not done in this sprint (deferred to Sprint 3):
- Golden dataset expansion to >=20 (user must curate from real contracts)
- Redis pub/sub for SSE events (compass_core.events stub still raises)
- Eval CI workflow (.github/workflows/eval.yml — needs prompt-tester
  subagent runner script)
- Real LLM smoke test (requires ANTHROPIC_API_KEY in env + spending
  budget; currently @pytest.mark.eval skips without key)
- Anthropic prompt caching markers on system prompts (M6 layer 1)
2026-05-17 15:50:42 +02:00
tobayah 5bcb5871b3 feat: scaffold Compass AI-native foundation (Sprint 0+1)
Sprint 0 — .claude/ and project memory:
- ADR-001 AI-native mandates (8 rules: agent-first, schema-first, streaming, eval-driven, cost-aware routing, cache-aware, async-first, observable)
- 3 project skills: compass-architecture (12-pt self-check), compass-clause-taxonomy (13-pt), compass-ai-native-mandates (8-pt)
- CLAUDE.md (project identity, 5 moats, stack, skill priority, security invariants, license PRIVATE, Bridgestone IP risk)
- AGENTS.md (8-subagent topology spec with model + tools + parallelizable + routing)
- .claude/settings.json (permissions + hooks placeholders)

Sprint 1 — monorepo, Python skeleton, hooks:
- Disconnected Lovable: removed lovable-tagger from package.json + vite.config.ts; rewrote README to Compass-focused
- npm workspaces root + apps/web/ (existing frontend moved intact; vite/tailwind/tsconfig paths still relative to apps/web/)
- uv workspace root (12 members): apps/{api,workers,mcp-server} + packages/{core,schemas,prompts,agents,llm-gateway,retrieval,ingestion,evals,jurisdictions}
- apps/api: FastAPI app with /health, /ready, / endpoints + structlog lifespan (smoke-tested: 200 OK + JSON)
- apps/workers: Celery configured (Redis broker, no tasks yet)
- packages/core: auth (User), tenant context, audit log, SSE events, confidence classifier (all stubs except confidence which is functional)
- packages/llm-gateway: working LLMRouter with select_model() per ADR-001 M5 + Langfuse trace wrapper + GatewayRejected if tenant_id/operation missing (M5+M8 enforcement at gateway)
- 6 subagent definitions in .claude/agents/: doc-parser, clause-extractor, clause-reviewer, jurisdiction-checker, rls-auditor, test-writer
- 5 hook scripts in scripts/hooks/: check_destructive_sql, check_secrets_stage, check_git_identity (Bridgestone domain block), format_file (ruff/prettier router), warn_sensitive_paths (prompts/migrations reminders)
- .claude/settings.json hooks block activated (PreToolUse Bash + PowerShell, PostToolUse Edit/Write)
- .env.example template + extended .gitignore (Python, .venv, .uv, secrets, eval results, Hetzner state)

Smoke tests passed:
- npm install (371 packages, no lovable-tagger)
- uv sync --all-packages (297 packages including FastAPI, Celery, LiteLLM, Langfuse, Voyage)
- compass imports: confidence + schemas + jurisdictions + llm-gateway all green
- npm run build (3894 modules transformed, 27s, dist 1.5MB)
- uvicorn serving /health 200 + /ready 200 + / 200 + /docs Swagger UI

Refs: docs/architecture/ADR-001-ai-native.md, docs/handoffs/2026-05-17-sprint0-handoff.md
2026-05-17 15:24:20 +02:00
gpt-engineer-app[bot] 668857deb8 Apply SQL security policies
Run the approved SQL commands to update security policies and repopulate the company list.
2025-06-15 21:33:38 +00:00
gpt-engineer-app[bot] 13771d7872 Run SQL to add security policies.
Apply the provided SQL commands to enable row-level security and define policies for the companies table.
2025-06-15 21:32:35 +00:00
gpt-engineer-app[bot] 79b5b61d4d Run SQL to repopulate company base
Run the provided SQL to add companies from existing contracts to the company base.
2025-06-15 21:29:35 +00:00
gpt-engineer-app[bot] 743a2105ad Fix: Vendor Industry chart visualization
The Vendor Industry chart was not displaying correctly. This commit addresses the issue.
2025-06-15 21:26:51 +00:00
gpt-engineer-app[bot] 3b99a43a5f Fix security vulnerabilities
Implement the security fixes as outlined in the security review, including RLS policy adjustments, user association, secure storage, input validation, and error handling.
2025-06-15 21:25:45 +00:00
gpt-engineer-app[bot] 0e2d67d6a1 Fix: Show welcome message
The welcome message is not showing.
2025-06-15 21:22:09 +00:00
gpt-engineer-app[bot] 9293341bea Run SQL for admin role and credentials
Implement database changes for admin role and credentials.
2025-06-15 21:15:05 +00:00
gpt-engineer-app[bot] cf69819988 Fix: Resolve useContext error
The error `Uncaught TypeError: Cannot read properties of null (reading 'useContext')` is likely caused by a missing or improperly configured context provider. This commit will investigate the use of context in the project and ensure that all necessary providers are correctly wrapping the components that consume them, specifically addressing the error related to `next-themes`.
2025-06-15 21:12:06 +00:00
gpt-engineer-app[bot] 8c6f894619 Connect authentication to data
Connect the authentication system to the data, ensuring that the user's data is associated with their account.
2025-06-15 21:10:49 +00:00
gpt-engineer-app[bot] df94fb8e6a Apply database security changes
Apply the SQL database migration to implement security enhancements, including user profiles, RLS policies, and data associations.
2025-06-15 21:08:16 +00:00
gpt-engineer-app[bot] 101a494949 Reverted to commit 3cd72d6458 2025-06-15 21:01:42 +00:00
gpt-engineer-app[bot] 381f8f365f Fix: Welcome message not showing
Ensure welcome message is displayed on initial dashboard load.
2025-06-15 21:00:09 +00:00
gpt-engineer-app[bot] ca132ce7b2 Remove 'x' button from welcome message
Removed the close button from the welcome message dialog in `src/components/tour/GuidedTour.tsx`.
2025-06-15 20:58:19 +00:00
gpt-engineer-app[bot] 3cd72d6458 Fix: Welcome message reappears
Ensure welcome message is only shown once.
2025-06-15 20:56:37 +00:00
gpt-engineer-app[bot] 388e692495 Fix: Welcome message appearing repeatedly
Ensure welcome message only shows on first dashboard visit.
2025-06-15 20:54:37 +00:00
gpt-engineer-app[bot] 168843ec89 Fix: Welcome message appearance
Ensure welcome message shows only once on first dashboard visit.
2025-06-15 20:50:11 +00:00
gpt-engineer-app[bot] 74a15d4386 Fix: Welcome screen visibility
Ensure welcome screen appears on dashboard.
2025-06-15 20:46:06 +00:00
gpt-engineer-app[bot] 01bba514fd Fix: Show welcome message on dashboard
Ensure welcome message appears on the dashboard as intended.
2025-06-15 20:44:10 +00:00
gpt-engineer-app[bot] dfecce212a Fix: Router context error in GuidedTour
Wrapped the `GuidedTour` component with a `Router` component to resolve the `useLocation` error. This ensures that `useLocation` is used within a valid router context.
2025-06-15 20:41:58 +00:00
gpt-engineer-app[bot] 5e3055ea3f Remove welcome screen from negotiation room
Conditionally render the welcome screen, excluding it when the user navigates to the negotiation room.
2025-06-15 20:41:17 +00:00
gpt-engineer-app[bot] fa38b34fc5 Add "go back to dashboard" link
Adds a link to return to the dashboard on the contracts list page.
2025-06-15 20:38:24 +00:00
gpt-engineer-app[bot] 222b265665 Add close button to expiration popups
Added an 'x' button to contract expiration popups to allow users to close them.
2025-06-15 20:34:45 +00:00
gpt-engineer-app[bot] 9a33d99ddd Add AI data mapping sentence
Added a sentence about AI-based contract data mapping to the welcome screen.
2025-06-15 20:33:18 +00:00
gpt-engineer-app[bot] 7246a6559d Fix: Welcome screen not showing
Ensured the welcome screen is always visible on refresh.
2025-06-15 20:31:50 +00:00
gpt-engineer-app[bot] c27b438830 Show welcome screen on load
Show the welcome screen modal when the app loads.
2025-06-15 20:30:13 +00:00
gpt-engineer-app[bot] 86b1718927 Add welcome screen
Implemented a welcome screen with a bullet-point list highlighting key features.
2025-06-15 20:27:38 +00:00
gpt-engineer-app[bot] 7ea72b7ebd Fix: Resolve ClauseReview type mismatch
The `status` property in `ClauseReview` was required, but the code was passing an optional `status`. This commit fixes the type mismatch by ensuring the `status` property is always present.
2025-06-15 20:24:27 +00:00
gpt-engineer-app[bot] f5fcf60ceb Fix: ClauseReview type mismatch in KeyClauses
The `review` property in `KeyClauses` was not correctly assigning the `status` property, which is required in the `ClauseReview` type. This commit fixes the type mismatch.
2025-06-15 20:22:13 +00:00
gpt-engineer-app[bot] 2cad0ff50f Fix: Add clause comparison highlight
Added clause comparison highlighting when creating a new contract to compare against the Clause Base.
2025-06-15 20:19:48 +00:00
gpt-engineer-app[bot] 2341b1f4ad Fix: Improve highlight box transparency
Adjusted the highlight box's background to be more transparent in `src/components/tour/GuidedTour.tsx` to improve readability.
2025-06-15 20:15:13 +00:00
gpt-engineer-app[bot] 62c0648999 Fix: Guided tour highlight issue
Fixes an issue where the guided tour highlights were not correctly positioned.
2025-06-15 20:12:30 +00:00
gpt-engineer-app[bot] 5090d11bbc Fix: Guided tour hint box position
Adjusted the positioning of the floating hint box to prevent it from appearing at the bottom of the screen.
2025-06-15 20:10:45 +00:00
gpt-engineer-app[bot] 69bb8f122b Fix: Guided tour highlighting issues
The guided tour was not highlighting the correct content. This commit addresses the issue.
2025-06-15 20:08:02 +00:00
gpt-engineer-app[bot] 996d6628b5 Add guided tour feature
Introduces a guided tour to showcase system functions. Includes an option to enable/disable the tour, saved under a new icon on the dashboard.
2025-06-15 20:05:44 +00:00
gpt-engineer-app[bot] a00a09ef70 Refactor: Update dashboard title
Updated the dashboard title in `src/components/dashboard/DashboardHeader.tsx`.
2025-06-15 20:02:27 +00:00
gpt-engineer-app[bot] 218aa0df20 Fix: Compass icon size
The compass icon size was not updated. This commit fixes the issue.
2025-06-15 20:01:24 +00:00
gpt-engineer-app[bot] 4359dca793 Increase Compass icon size
Adjusted the size of the Compass icon within the floating menu.
2025-06-15 19:59:39 +00:00
gpt-engineer-app[bot] 4cc1fafefc Refactor: Break down Index.tsx into smaller components
Refactored src/pages/Index.tsx into smaller, more manageable components to improve code organization and readability.
2025-06-15 19:59:08 +00:00
gpt-engineer-app[bot] 8dce11e063 Fix cursor on Contracts by Status
Ensured hand cursor appears on hover for "Contracts by Status" chart in `FuturisticPieChart.tsx`.
2025-06-15 19:56:50 +00:00