Skip to content

feat(signals): add LAT-XYZ visual ids for copy and PR references - #3931

Closed
geclos wants to merge 9 commits into
developmentfrom
cursor/signal-visual-ids-2868
Closed

feat(signals): add LAT-XYZ visual ids for copy and PR references#3931
geclos wants to merge 9 commits into
developmentfrom
cursor/signal-visual-ids-2868

Conversation

@geclos

@geclos geclos commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Signals now get a stable, human-readable visual id in LAT-001 form at creation time. The id is stored in Postgres, returned by the public API, and shown in the signals list and detail UI with one-click copy.

This is the foundation for referencing signals in GitHub PR titles/bodies and linking them back later.

Changes

  • Schema: add signals.visual_id (globally unique) plus signal_visual_id_seq for allocation; backfill existing rows ordered by created_at.
  • Domain: formatSignalVisualId, extractSignalVisualIds, and resolveSignalsMentionedInTextUseCase for parsing PR text into project-scoped signal matches.
  • Creation paths: user-created and discovery-created signals allocate a visual id inside the existing creation transactions.
  • API/UI: visualId on list + detail responses; list table and detail header show the id instead of the slug.

Out of scope (follow-up)

  • GitHub webhook ingestion to auto-link PRs that mention LAT-* ids
  • Updating signal status from linked PR events

Test plan

  • pnpm --filter @domain/signals test
  • pnpm --filter @domain/notifications test
  • pnpm --filter @domain/agent-dispatch test
  • pnpm --filter @domain/signals typecheck
  • pnpm --filter @platform/db-postgres typecheck
  • pnpm --filter @repo/operations typecheck
  • pnpm --filter web typecheck
  • pnpm openapi:emit
  • Apply migration in a running environment and verify existing signals receive sequential ids
  • Manually confirm list + detail UI copy buttons show LAT-* ids

Closes LAT-731

Linear Issue: LAT-731

Open in Web Open in Cursor 

Assign each signal a stable human-readable visual id (LAT-001 style) at
creation time, persist it in Postgres, expose it on API responses, and
surface it in the signals list and detail UI for easy copy/reference.

Includes a text parser and resolve use-case foundation for detecting
visual ids mentioned in GitHub PR bodies.

Co-authored-by: Gerard <gerard@latitude.so>
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Jul 8, 2026 12:35pm

Request Review

Co-authored-by: Gerard <gerard@latitude.so>
Co-authored-by: Gerard <gerard@latitude.so>
Co-authored-by: Gerard <gerard@latitude.so>
- Add visualId to direct signal inserts in workers and API integration tests
- Remove extra blank line in Fern-generated Python signal types

Co-authored-by: Gerard <gerard@latitude.so>
Co-authored-by: Gerard <gerard@latitude.so>
Co-authored-by: Gerard <gerard@latitude.so>
Co-authored-by: Gerard <gerard@latitude.so>
Co-authored-by: Gerard <gerard@latitude.so>
@neoxelox

Copy link
Copy Markdown
Contributor

superseeded by #4154

@neoxelox neoxelox closed this Jul 21, 2026
@github-project-automation github-project-automation Bot moved this from Inbox to Done in Latitude LLM Roadmap Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants