Skip to content

Conversation

@lucaslyl
Copy link
Contributor

linear: https://linear.app/cardstack/issue/CS-10082/fix-incorrect-fieldname-and-spectype-in-field-spec-instance

Changes

  • Set all field spec instances to specType: "field" instead of "card".
  • Ensure every field spec JSON has a cardTitle and cardDescription attribute.
  • Clean up outdated per-example title fields on related field-spec examples

@lucaslyl lucaslyl requested review from a team January 21, 2026 10:10
@github-actions
Copy link

github-actions bot commented Jan 21, 2026

Host Test Results

    1 files  ±0      1 suites  ±0   1h 39m 56s ⏱️ +14s
1 897 tests ±0  1 880 ✅ ±0  17 💤 ±0  0 ❌ ±0 
1 912 runs  ±0  1 895 ✅ ±0  17 💤 ±0  0 ❌ ±0 

Results for commit 5501de0. ± Comparison against base commit 143407c.

♻️ This comment has been updated with latest results.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request normalizes field spec instances across the catalog-realm by correcting the specType attribute and standardizing field naming conventions.

Changes:

  • Changed specType from "card" to "field" in all field spec instances
  • Renamed title/description to cardTitle/cardDescription at the root level
  • Standardized cardInfo nested fields (replacing title, description, thumbnailURL with name, notes, summary, cardThumbnailURL)
  • Removed outdated title fields from nested example objects in AudioFieldSpec

Reviewed changes

Copilot reviewed 24 out of 24 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
YearFieldSpec/28586f71-ae89-4a22-b5e6-eb640271c16e.json Changed specType to "field", repositioned cardTitle
WeekFieldSpec/4b22d528-586f-41ae-89aa-22f5e6eb6402.json Renamed title/description to cardTitle/cardDescription, updated cardInfo structure
TimeRangeFieldSpec/87ec994b-22d5-4858-af71-ae89aa22f5e6.json Standardized field naming and specType
TimePeriodFieldSpec/fd42a287-ec99-4b22-9528-586f71ae89aa.json Applied field normalization
TimeFieldSpec/c2d571fd-42a2-47ec-994b-22d528586f71.json Updated to standard field structure
RelativeTimeFieldSpec/ed74a6c2-d571-4d42-a287-ec994b22d528.json Normalized field spec format
RecurringPatternFieldSpec/b27590ed-74a6-42d5-b1fd-42a287ec994b.json Applied normalization with truncated cardTitle
RatingFieldSpec/8a795bb2-7590-4d74-a6c2-d571fd42a287.json Fixed incorrect cardTitle and normalized structure
QuarterFieldSpec/e8a4788a-795b-4275-90ed-74a6c2d571fd.json Standardized field naming
QuantityFieldSpec/863082e8-a478-4a79-9bb2-7590ed74a6c2.json Applied field normalization
NumberFieldSpec/f8ea8805-8068-481e-953e-2166c21cd1a9.json Normalized field spec format
MultipleImageFieldSpec/ddd219dc-8efa-4586-b082-e8a4788a795b.json Updated to standard structure
MonthYearFieldSpec/c34eb6dd-d219-4c8e-ba25-863082e8a478.json Applied field normalization
MonthFieldSpec/a5b2c1c3-4eb6-4dd2-99dc-8efa25863082.json Standardized field naming
MonthDayFieldSpec/6ce6c8a5-b2c1-434e-b6dd-d219dc8efa25.json Normalized field spec format
ImageFieldSpec/7c9e416c-e6c8-45b2-81c3-4eb6ddd219dc.json Applied field normalization
DurationFieldSpec/a4eb337c-9e41-4ce6-88a5-b2c1c34eb6dd.json Updated to standard structure
DayFieldSpec/ed6780a4-eb33-4c9e-816c-e6c8a5b2c1c3.json Repositioned cardTitle and changed specType
DatetimeStampFieldSpec/98da21ed-6780-44eb-b37c-9e416ce6c8a5.json Standardized field naming
DatetimeFieldSpec/1bee4e98-da21-4d67-80a4-eb337c9e416c.json Normalized structure but removed example values
DateRangeFieldSpec/5339d01b-ee4e-48da-a1ed-6780a4eb337c.json Applied field normalization
DateFieldSpec/b9c37d53-39d0-4bee-8e98-da21ed6780a4.json Updated to standard structure
ColorFieldSpec/f1b66e4b-b9c3-4d53-b9d0-1bee4e98da21.json Normalized field spec format
AudioFieldSpec/aad14b4f-2b08-468f-ab34-18d9890c39c3.json Removed per-example title fields and normalized structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"occurrences": 2
},
"description": null,
"cardTitle": "Recurring Pattern Field Spe",
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

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

The cardTitle value appears to be truncated. It reads "Recurring Pattern Field Spe" but should be "Recurring Pattern Field Spec" (missing the final 'c'). This inconsistency with other field specs in this PR should be corrected.

Suggested change
"cardTitle": "Recurring Pattern Field Spe",
"cardTitle": "Recurring Pattern Field Spec",

Copilot uses AI. Check for mistakes.
Comment on lines 15 to 26
"short": null,
"readMe": null,
"cardInfo": {
"name": null,
"notes": null,
"title": null,
"description": null,
"thumbnailURL": null
"summary": null,
"cardThumbnailURL": null
},
"specType": "card",
"standard": "2026-01-08T16:03:00",
"description": null,
"customFormat": "2026-01-08T16:04:00",
"specType": "field",
"standard": null,
"cardTitle": "Datetime Field Spec",
"customFormat": null,
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

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

The example values for the "short", "standard", and "customFormat" fields are being changed from valid datetime strings to null. This removes the example data that demonstrates how these field variants should be used. Verify that this data removal is intentional, as it may reduce the usefulness of this field spec as a reference.

Copilot uses AI. Check for mistakes.
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.

2 participants