Skip to content

Show custom search attribute values in the SAA table - #3987

Merged
laurakwhit merged 4 commits into
mainfrom
laura/fe-1011-custom-sa-values-missing-in-saa-table
Oct 7, 2026
Merged

laurakwhit merged 4 commits into
mainfrom
laura/fe-1011-custom-sa-values-missing-in-saa-table

Conversation

@laurakwhit

Copy link
Copy Markdown
Collaborator

Description & motivation 💭

When a custom search attribute was added as a column on the Standalone Activities list page, the column was always empty. The activities table cell had no handling for custom search attributes and the list API returns raw payloads that were never decoded.

This PR shows those values and shares the rendering with the workflows table, so the two tables behave the same:

  • Decode once, at load time. fetchPaginatedActivities maps each item through toActivityExecutionListInfo. It reuses toSearchAttributes from the workflow model, the same decoding the workflows list uses. A new ActivityExecutionListInfo type carries the decoded values. The detail page keeps the raw ActivityExecutionInfo, because its Search Attributes tab decodes on its own.
  • Shared rendering. Both table cells now use isFilterableCustomSearchAttribute and a new components/table/search-attribute-value.svelte:
    • Custom Keyword and Text values get filter and copy buttons.
    • Datetime shows as a timestamp and Bool as a badge.
    • Everything else is text with an optional truncation tooltip.
  • Reactivity fix. Both cells now check label in $customSearchAttributes. The old isCustomSearchAttribute read the store once with get(), so a custom column could stay blank if the table drew before the namespace's search attributes loaded.
  • Cleanup. The activity workers tab uses toSearchAttributes instead of its own copy of the decoding, and isCustomSearchAttribute is removed.

Screenshots (if applicable) 📸

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

  • Add a custom Keyword, Text, Int, Bool, Datetime and KeywordList search attribute as columns on the standalone activities list and confirm the values show
  • Filter from a custom Keyword column on the activities list
  • Confirm custom search attribute columns on the workflows list are unchanged

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

…s table

Custom search attribute columns on the standalone activities list were
always empty: the table cell had no branch for them, and list items
carried undecoded payloads.

- Decode search attributes when loading the activities list
  (ActivityExecutionListInfo), reusing toSearchAttributes from the
  workflow model
- Share custom search attribute rendering between the workflows and
  activities tables via isFilterableCustomSearchAttribute and a new
  table/search-attribute-value component
- Read customSearchAttributes reactively in both cells so columns fill
  in once the namespace's search attributes load
- Reuse toSearchAttributes in the activity workers tab
- Remove the now-unused isCustomSearchAttribute

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
holocene Ready Ready Preview Oct 7, 2026 5:31pm UTC

Request Review

@laurakwhit
laurakwhit marked this pull request as ready for review October 7, 2026 04:42
@laurakwhit
laurakwhit requested a review from a team as a code owner October 7, 2026 04:43
@Alex-Tideman

Copy link
Copy Markdown
Collaborator

What was the root issue here since I thought all filterable tables shared the same components? What was different about the SAA SAs from workflow SAs? Do we need to check SANO / Schedule SAs?

laurakwhit and others added 2 commits October 7, 2026 10:04
… in tables

- Decode search attributes when loading the standalone Nexus operations
  list, and render custom search attribute columns in its table cell,
  with filter and copy buttons for Keyword and Text values
- Render custom search attribute values in the schedules table with
  the shared SearchAttributeValue component, decoding without mutating
  the schedule
- Accept the proto SearchAttribute type in toSearchAttributes
- Remove standalone-activities.test.ts

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…d as parseSearchAttributes

The helper is now shared by the workflows, activities, Nexus operations
and schedules tables and the activity workers tab, so it no longer
belongs in the workflow model. It sits next to parseRawPayloadToJSON
and parsePayloadAttributes, and is renamed to match the file's
"parse" (no codec) naming.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
{/if}
{:else if label === 'State Transitions'}
{operation.stateTransitionCount ?? ''}
{:else if label in $customSearchAttributes && customSearchAttributeValue !== undefined}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

What was the root issue here since I thought all filterable tables shared the same components?

They share the wrapper of the table, but not the code that turns a row into cells. The custom search attribute support lived in the part that isn't shared.

What was different about the SAA SAs from workflow SAs?

The workflows list has a conversion layer that decodes search attributes along with the rest of each row. The standalone activities list used the API response directly and its table cell never had the custom search attribute logic like the workflows did.

Do we need to check SANO / Schedule SAs?

Yup, updated in c1c352d.

@laurakwhit
laurakwhit requested a review from rossedfort October 7, 2026 17:20
@laurakwhit
laurakwhit merged commit 01b6163 into main Oct 7, 2026
17 checks passed
@laurakwhit
laurakwhit deleted the laura/fe-1011-custom-sa-values-missing-in-saa-table branch October 7, 2026 17:42
rossedfort added a commit that referenced this pull request Oct 7, 2026
#3987 added custom search attribute rendering and filtering to the activities
and Nexus tables using the per-column structure this branch replaced, so its
intent is ported rather than its diff. Its SearchAttributeValue component now
renders the per-type display all three cells were duplicating, the two value
getters fall through to a row's indexed fields, and activities take the decoded
ActivityExecutionListInfo.

Its isFilterableCustomSearchAttribute is deliberately not adopted: it narrows
custom attributes to Keyword and Text, which this branch supersedes by gating on
the search attribute store so every custom type can be filtered.

This branch was successfully deployed

1 active deployment
Preview — 0a8cd982 Deployed Oct 7, 2026 by vercel[bot]
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.

3 participants