From 482fb9c75f076beefcc7cdbe7ab80319cf694849 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 3 Sep 2026 00:32:15 +0000 Subject: [PATCH] fix(skills): teach {current_user_id}, not $currentUser, in the ui Filtering example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `skills/objectstack-ui/rules/list-views.md` taught `$currentUser` as a filter value. No filter path resolves it: both resolvers recognise a placeholder only when the whole value is brace-wrapped (`FILTER_TOKEN_WRAPPED_RE` in `packages/spec/src/data/context-tokens.zod.ts`, `WHOLE_TOKEN_RE` in `@object-ui/core`), so an unbraced `$currentUser` is not even classified as a placeholder attempt — it reaches the data engine as a literal, matches nothing, and the list renders empty with no diagnostic anywhere. Rewrite the example value and its note to `{current_user_id}`, the declared token, so the rule file agrees with the package's own `## Date Macros — Filter Placeholders` contract in SKILL.md. Net -4 bytes (3011 -> 3010 tokens, ceiling 3011 unchanged). Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01LraLgQVGq8egUwfYZpbYt1 --- skills/objectstack-ui/rules/list-views.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/objectstack-ui/rules/list-views.md b/skills/objectstack-ui/rules/list-views.md index 51aaa12165..f301ad6c4d 100644 --- a/skills/objectstack-ui/rules/list-views.md +++ b/skills/objectstack-ui/rules/list-views.md @@ -92,7 +92,7 @@ columns: [ ```typescript filter: [ { field: 'status', operator: 'not_equals', value: 'closed' }, - { field: 'assigned_to', operator: 'equals', value: '$currentUser' }, + { field: 'assigned_to', operator: 'equals', value: '{current_user_id}' }, ] ``` @@ -100,7 +100,7 @@ Common operators: `equals`, `not_equals`, `contains`, `starts_with`, `greater_than`, `less_than`, `is_empty`, `is_not_empty`, `in`, `not_in`, `this_week`, `this_month`, `this_quarter`, `last_n_days`. -> **`$currentUser`** is a runtime variable — the logged-in user's ID. +> **`{current_user_id}`** resolves to the signed-in user's id. ### End-User Quick Filters (`userFilters`, ADR-0047)