Skip to content

feat: add configurable slug for entities#4198

Merged
ashrafchowdury merged 5 commits intorelease/v0.96.8from
improve/slug-commit-modal
Apr 22, 2026
Merged

feat: add configurable slug for entities#4198
ashrafchowdury merged 5 commits intorelease/v0.96.8from
improve/slug-commit-modal

Conversation

@ashrafchowdury
Copy link
Copy Markdown
Contributor

@ashrafchowdury ashrafchowdury commented Apr 21, 2026

PR Description

Adds slug display/edit/regenerate support across entity creation and prompt creation flows.

This introduces a reusable slug utility flow that generates a human-readable slug from the entity name with a cryptographically random 4-character alphanumeric suffix.

Included changes:

  • Added shared slug utilities in @agenta/shared.
  • Added slug display/edit/regenerate UI to entity commit modals for create/save-as-new flows.
  • Added slug display/edit/regenerate UI to the Create New Prompt modal.

QA Requirements

  1. Create New Prompt modal
  • Open Create New Prompt.
  • Type a valid prompt name.
  • Confirm slug appears below the name field in display mode.
  • Confirm slug format is <slugified-name>-<4 alphanumeric chars>.
  • Click Edit.
  • Click regenerate.
  • Confirm only the suffix changes.
  • Change the slug
  1. Entity commit modal create/save-as-new flows
  • Open a committable entity modal where slug UI should appear.
  • Confirm slug displays
  • Confirm Edit opens the full slug input.
  • Confirm name edits preserve the existing suffix.
  • Confirm that regenerate changes the suffix manually.
  • Confirm invalid slug blocks save/create.
  • Confirm commit-as-existing/new-version flows that should not show slug UI still do not show it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Apr 21, 2026 1:04pm

Request Review

…rdize slug/name handling across playground controllers and components.
@ashrafchowdury ashrafchowdury linked an issue Apr 21, 2026 that may be closed by this pull request
@ashrafchowdury ashrafchowdury marked this pull request as ready for review April 21, 2026 11:42
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. feature Frontend javascript Pull requests that update javascript code typescript labels Apr 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

Railway Preview Environment

Status Destroyed (PR closed)

Updated at 2026-04-22T09:06:22.541Z

@dosubot dosubot Bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Apr 21, 2026
@ashrafchowdury ashrafchowdury changed the base branch from main to release/v0.96.8 April 21, 2026 13:23
@ashrafchowdury ashrafchowdury merged commit 13c950c into release/v0.96.8 Apr 22, 2026
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Frontend javascript Pull requests that update javascript code size:XXL This PR changes 1000+ lines, ignoring generated files. typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add slug entry when creating new evaluators

2 participants