Skip to content

fix(site): refactor trajectory routing to use job and trial names directly - #58

Merged
liangfung merged 2 commits into
mainfrom
fix/precomputed-trial-fields
Jun 15, 2026
Merged

fix(site): refactor trajectory routing to use job and trial names directly#58
liangfung merged 2 commits into
mainfrom
fix/precomputed-trial-fields

Conversation

@liangfung

@liangfung liangfung commented Jun 13, 2026

Copy link
Copy Markdown
Member

Summary

  • Direct Filesystem Routing: Renamed the trajectory route from /tasks/[name]/[jobId]/trajectory to /jobs/[jobName]/[trialName]/trajectory, aligning the URLs directly with the filesystem's job_name and trial_name.
  • Eliminated Derived IDs: Removed the client-side splitTrialName and script-side deriveJobId helpers. The job_id field has been completely removed from the schema since routing is now based on existing, unique filesystem names.
  • Deterministic Job Ordering: Updated compute-tasks.ts to sort the discovered job directories alphabetically during task computation.

Test plan

  • Verify that tasks.json schema is correctly generated without job_id fields.
  • Verify that clicking a trial on the tasks page navigates to /jobs/[jobName]/[trialName]/trajectory.
  • Verify that the trajectory page loads correctly and parses the jobName and trialName from the URL parameters to locate the correct trial.

Screenshot

image

🤖 Generated with Pochi | Task

…ring splitting

Precompute task_name and job_id in the trial data pipeline and store them in tasks.json. This allows us to remove the dynamic string-splitting helper on the client side, improving reliability and decoupling URL routing from filesystem layout.

🤖 Generated with [Pochi](https://getpochi.com) | [Task](https://app.getpochi.com/share/p-1a36ce2d8278492084c60d900cbc080c)

Co-Authored-By: Pochi <noreply@getpochi.com>
@github-actions

github-actions Bot commented Jun 13, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-15 06:56 UTC

@liangfung liangfung changed the title fix(site): transition to precomputed trial fields fix(site): refactor trajectory routing to use job and trial names directly Jun 14, 2026
@liangfung
liangfung requested a review from icycodes June 14, 2026 17:11
@liangfung
liangfung merged commit fdfaf6f into main Jun 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants