Skip to content

test(showcase): exercise the spec bare-string sort form on a real list view#3174

Merged
os-zhuang merged 1 commit into
mainfrom
claude/dashboard-filters-followups-kd45yo
Jul 18, 2026
Merged

test(showcase): exercise the spec bare-string sort form on a real list view#3174
os-zhuang merged 1 commit into
mainfrom
claude/dashboard-filters-followups-kd45yo

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Summary

Regression fixture from the browser verification of the ListView bare-string sort fix (objectstack-ai/objectui#2601).

The spec↔objectui shape-mismatch audit that produced #2601 found the showcase had zero list views using @objectstack/spec ListViewSchema.sort's bare string form ("field [asc|desc]") — every view used the {field, order}[] array form. That gap is exactly why the "schema.sort.map is not a function" crash lurked undetected through green unit tests: nothing in the running app exercised the string shape.

This adds sort: 'estimate_hours desc' to the Task List (tabular) view — one line — so the string form is now exercised by any browser dogfood or coverage pass over the showcase.

Browser verification (latest main, both repos)

Reproduced end-to-end against a live stack (framework backend + objectui console dev, both on latest main):

  • backend boots with zero errors — the bare-string sort passes spec load-time validation;
  • GET /api/v1/meta/view/showcase_task confirms the server sends sort: "estimate_hours desc" as a plain string (the exact shape that crashed pre-docs(site): mermaid rendering, stat removal, and full-corpus persona-review fixes #2601 objectui);
  • the Task List renders 10 records with no crash, no error boundary, no sort.map error, and the Estimate column is correctly descending: 60 → 40 → 30 → 24 → 20 → 18 → 16 → 16 → 12 → 8. The toolbar Sort control shows "1" active sort.

Testing

  • pnpm test in examples/app-showcase — 55/55 passing.
  • No changeset — @objectstack/example-showcase is private/unpublished.

Refs objectstack-ai/objectui#2601, objectstack-ai/objectui#2578

🤖 Generated with Claude Code

https://claude.ai/code/session_01HG5LQnPbQbjAAyofghzz3Z


Generated by Claude Code

…t view

The spec/renderer shape-mismatch audit (objectui#2601) found the showcase
had ZERO list views using @objectstack/spec ListViewSchema.sort's bare
STRING form ('field [asc|desc]') — only the {field,order}[] array form —
which is exactly why the 'schema.sort.map is not a function' crash lurked
undetected. Add sort: 'estimate_hours desc' to the Task List (tabular) view
as a live coverage fixture so the string form is exercised by any browser
dogfood / coverage pass.

Browser-verified end-to-end on latest main (objectui + framework): the list
renders 10 records with no crash, no error boundary, no sort-map error, and
the Estimate column is correctly descending (60→40→30→24→20→18→16→16→12→8).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HG5LQnPbQbjAAyofghzz3Z
@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jul 18, 2026 6:25am

Request Review

@os-zhuang
os-zhuang marked this pull request as ready for review July 18, 2026 12:22
@os-zhuang
os-zhuang merged commit ff41188 into main Jul 18, 2026
15 checks passed
@os-zhuang
os-zhuang deleted the claude/dashboard-filters-followups-kd45yo branch July 18, 2026 12:22
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.

2 participants