Skip to content

feat(studio): job-detail placeholder route for Anonymizer [ASTD-331] - #887

Merged
marcusds merged 4 commits into
mainfrom
astd-331-anonymizer-job-detail-placeholder/mschwab
Jul 24, 2026
Merged

feat(studio): job-detail placeholder route for Anonymizer [ASTD-331]#887
marcusds merged 4 commits into
mainfrom
astd-331-anonymizer-job-detail-placeholder/mschwab

Conversation

@marcusds

@marcusds marcusds commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

What

Splits /anonymizer/:anonymizerJobName off the builder so it renders a job-detail placeholder instead of the create form (ASTD-331).

Part of ASTD-215.

Why

/new and /:name both routed to AnonymizerBuilderRoute, so clicking a job in the list (and the post-create redirect) landed on the create form.

Changes

  • New AnonymizerJobDetailRoute — placeholder showing the job name + breadcrumbs ("Job details coming soon")
  • ROUTES.workspace.anonymizerJob now points at it in groups/anonymizerRoutes.tsx; /new keeps the builder

Full detail page (status, results, Replacement Map, download, actions) is ASTD-330.

Testing

  • @nemo/studio tsc --noEmit — no new errors; eslint clean.
  • Gated behind VITE_FF_ANONYMIZER_ENABLED (default false).

Summary by CodeRabbit

  • New Features
    • Added an anonymizer job details page when anonymizer functionality is enabled.
    • Added breadcrumbs that show the “Anonymizer” section along with the selected job name (with a fallback label).
    • Added a “Job details coming soon” placeholder message.
  • Bug Fixes
    • Updated the anonymizer job route to render the new job details page while preserving the existing error handling behavior.

…TD-327]

The :name route rendered the builder form (shared component). Split it:
/new keeps the builder, /:name renders a job-detail placeholder showing
the job name. Full detail page is ASTD-330.

Signed-off-by: mschwab <mschwab@nvidia.com>
@marcusds
marcusds requested review from a team as code owners July 24, 2026 15:41
@github-actions github-actions Bot added the feat label Jul 24, 2026
@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 68904dae-7027-44e7-a136-2a318b09487f

📥 Commits

Reviewing files that changed from the base of the PR and between 0cde4a7 and 032de70.

📒 Files selected for processing (1)
  • web/packages/studio/src/routes/groups/anonymizerRoutes.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • web/packages/studio/src/routes/groups/anonymizerRoutes.tsx

📝 Walkthrough

Walkthrough

Adds a feature-flagged anonymizer job detail placeholder route, uses the job name for breadcrumbs and headings, and wires the route through lazy loading.

Changes

Anonymizer job detail

Layer / File(s) Summary
Job detail route and router wiring
web/packages/studio/src/routes/AnonymizerJobDetailRoute/index.tsx, web/packages/studio/src/routes/groups/anonymizerRoutes.tsx
Adds the conditional job detail placeholder with breadcrumbs and fallback labels, then lazy-loads it for ROUTES.workspace.anonymizerJob when anonymizer support is enabled.

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: adding an Anonymizer job-detail placeholder route.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch astd-331-anonymizer-job-detail-placeholder/mschwab

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (1)
web/packages/studio/src/routes/AnonymizerJobDetailRoute/index.tsx (1)

9-9: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use import type for FC in both modules.

  • web/packages/studio/src/routes/AnonymizerJobDetailRoute/index.tsx#L9-L9: change the FC import to import type.
  • web/packages/studio/src/routes/groups/anonymizerRoutes.tsx#L25-L31: split FC from the value import and import it with import type.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@web/packages/studio/src/routes/AnonymizerJobDetailRoute/index.tsx` at line 9,
Use type-only imports for FC in
web/packages/studio/src/routes/AnonymizerJobDetailRoute/index.tsx lines 9-9 and
web/packages/studio/src/routes/groups/anonymizerRoutes.tsx lines 25-31; split FC
from any value imports in the latter module while preserving all existing
runtime imports.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@web/packages/studio/src/routes/AnonymizerJobDetailRoute/index.tsx`:
- Around line 12-13: Update AnonymizerJobDetailRoute and the ANONYMIZER_ENABLED
definition so the anonymizer is disabled when VITE_FF_ANONYMIZER_ENABLED is
unset, enabling it only when explicitly opted in. Preserve the route’s existing
conditional behavior for explicit enablement.

---

Nitpick comments:
In `@web/packages/studio/src/routes/AnonymizerJobDetailRoute/index.tsx`:
- Line 9: Use type-only imports for FC in
web/packages/studio/src/routes/AnonymizerJobDetailRoute/index.tsx lines 9-9 and
web/packages/studio/src/routes/groups/anonymizerRoutes.tsx lines 25-31; split FC
from any value imports in the latter module while preserving all existing
runtime imports.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 21ea0749-1563-4fae-9199-a9bb458854c0

📥 Commits

Reviewing files that changed from the base of the PR and between 009588a and 5e79bec.

📒 Files selected for processing (2)
  • web/packages/studio/src/routes/AnonymizerJobDetailRoute/index.tsx
  • web/packages/studio/src/routes/groups/anonymizerRoutes.tsx

Comment thread web/packages/studio/src/routes/AnonymizerJobDetailRoute/index.tsx
@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor
Suite Lines Covered Line Rate Branch Rate
Unit Tests 27157/34869 77.9% 62.1%
Integration Tests 15969/33581 47.5% 20.0%

@steramae-nvidia steramae-nvidia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but seems like you need to fix the lint error

…331]

Signed-off-by: mschwab <mschwab@nvidia.com>
@marcusds
marcusds enabled auto-merge July 24, 2026 17:09
@marcusds
marcusds added this pull request to the merge queue Jul 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 24, 2026
@marcusds
marcusds added this pull request to the merge queue Jul 24, 2026
Merged via the queue into main with commit 1b9bfa1 Jul 24, 2026
58 checks passed
@marcusds
marcusds deleted the astd-331-anonymizer-job-detail-placeholder/mschwab branch July 24, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants