feat: show fields inline in view commands and remove field list#111
Merged
angeloashmore merged 1 commit intoaa/remote-modelingfrom Apr 10, 2026
Merged
feat: show fields inline in view commands and remove field list#111angeloashmore merged 1 commit intoaa/remote-modelingfrom
view commands and remove field list#111angeloashmore merged 1 commit intoaa/remote-modelingfrom
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit daaf923. Configure here.
| const label = (config?.label as string) || ""; | ||
| const placeholder = config?.placeholder ? `"${config.placeholder}"` : ""; | ||
| console.info(` ${[id, field.type, label, placeholder].filter(Boolean).join(" ")}`); | ||
| } |
There was a problem hiding this comment.
Duplicated field display logic across two files
Low Severity
The field formatting logic (extracting config, label, placeholder, and joining them with filter(Boolean).join) is completely duplicated between slice-view.ts and type-view.ts. If the display format ever needs updating (e.g., adding a new field attribute or changing formatting), both files need identical changes, risking inconsistency.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit daaf923. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Resolves: #102
Description
type viewandslice viewnow display a summary of fields per tab (types) or per variation (slices). Each field entry shows ID, type, label, and placeholder if set.field listhas been removed since it's now redundant.Checklist
Preview
How to QA 1
node --run buildnpx prismic type view "<type name>"— fields should appear grouped by tabnpx prismic slice view "<slice name>"— fields should appear grouped by variationnpx prismic field list— should no longer be a valid commandNote
Medium Risk
Moderate risk because it removes the
prismic field listCLI command (breaking change) and changes the human-readable output ofslice view/type view, which may affect scripts or user workflows.Overview
slice viewandtype viewnow print fields inline: output is expanded to list fields grouped by variation (slices) or tab (types), including fieldid,type, optionallabel, and optionalplaceholder.Removes
prismic field listby deleting the command and its tests, and updating CLI routing accordingly; tests forslice view/type vieware updated/extended to assert the new output.Reviewed by Cursor Bugbot for commit daaf923. Bugbot is set up for automated code reviews on this repo. Configure here.
Footnotes
Please use these labels when submitting a review:
⚠️ #issue: Strongly suggest a change.
❓ #ask: Ask a question.
💡 #idea: Suggest an idea.
🎉 #nice: Share a compliment. ↩