Skip to content

poc: scaffold basic tangent dashboard ux#2360

Draft
maxy-shpfy wants to merge 1 commit into
06-02-chore_generate_api_sdk_from_tangentfrom
06-02-poc_scaffold_basic_tangent_dashboard_ux
Draft

poc: scaffold basic tangent dashboard ux#2360
maxy-shpfy wants to merge 1 commit into
06-02-chore_generate_api_sdk_from_tangentfrom
06-02-poc_scaffold_basic_tangent_dashboard_ux

Conversation

@maxy-shpfy

@maxy-shpfy maxy-shpfy commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Description

Introduces the Tangent dashboard as a Phase 1 prototype — a new section of the app that surfaces ML pipeline optimization opportunities for the Search team. The feature is entirely driven by a mocked API layer (with simulated network latency) so the UI can be built and reviewed before the real backend endpoints are available.

Routes added:

  • /tangentTangentDashboardView: lists all pipelines ranked by opportunity score, with filter support (my_pipelines, no_scenario, has_results) and a "Re-analyze all" action.
  • /tangent/$runIdTangentProjectDetailView: shows per-pipeline details including current performance metrics vs baseline, Tangent analysis summary, experiment ideas (both Tangent-generated and human-submitted), and previous optimization results.

Layout:

  • TangentLayout wraps both routes with a fixed sidebar containing navigation filters, links back to the main dashboard, docs, settings, footer links, and a git commit version stamp.

Components:

  • OpportunityScoreRing — SVG ring that renders a 0–100 score with color bands (green ≥ 70, amber ≥ 45, grey below).
  • PipelineRow — clickable table row with cmd/ctrl+click support for opening in a new tab.
  • ScenarioStatusBadge, RunStatusIndicator, MetricDelta, IdeaTypeChip — status and metric display primitives.
  • HeroBanner + StatBoxes — hero section with team-level stats (members, scenarios, pipelines with results).
  • AnalyzeRunBlock — input for pasting a Tangle run ID, with format validation (stub in Phase 1).
  • Detail sub-components: CurrentPerformance, TangentAnalysis, ScenarioSection, IdeaCard, ResultsSection.

Data layer:

  • types.ts defines all domain types (TangentPipeline, ExperimentIdea, TangentResults, TeamStats, etc.) and TangentQueryKeys.
  • tangentApi.ts provides mocked fetch functions (fetchTangentPipelines, fetchTangentPipeline, fetchTangentStats, reanalyzeAllPipelines) that resolve from in-memory fixtures with a 350 ms simulated delay. These are the single swap point when real endpoints land.
  • React Query hooks: useTangentPipelines, useTangentPipeline, useTangentStats, useReanalyzeAll.

The src/routes/tangent directory is also added to the React Compiler enabled paths.

Related Issue and Pull requests

Type of Change

  • Bug fix
  • New feature
  • Improvement
  • Cleanup/Refactor
  • Breaking change
  • Documentation update

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Test Instructions

  1. Navigate to /tangent — the dashboard should load with the pipeline table ranked by opportunity score.
  2. Use the sidebar filters (My pipelines, No scenario, Has results) to verify the table filters correctly.
  3. Click a pipeline row to navigate to /tangent/<runId> and verify the detail view renders performance metrics, analysis, scenarios, and (for queryEncoderPipeline) the results section.
  4. Cmd/Ctrl+click a row to confirm it opens in a new tab.
  5. Click "Re-analyze all" and confirm the spinner appears and a success toast is shown after ~600 ms.
  6. Paste an invalid run ID into the "Add your run here" input and click Analyze — confirm the validation error message appears.
  7. Paste a valid-format run ID and confirm the "coming soon" info toast appears.

Additional Comments

All API calls in this phase resolve from mockData.ts fixtures. No real network requests are made. The mocked service layer in tangentApi.ts is the only file that needs to change when the backend Tangent/* endpoints are ready.

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: 06-02-poc_scaffold_basic_tangent_dashboard_ux/b43711f

maxy-shpfy commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant