wip(settings): formula fields JSON-first base and preview#14
Draft
wip(settings): formula fields JSON-first base and preview#14
Conversation
…tips, remove clutter, add guidance icons
This was referenced Mar 30, 2026
14 tasks
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.
Summary
This PR establishes the JSON-first foundation for Formula Extra Fields.
Intent
extra.<key>fields, and built-in related-entity references.Review Focus
Screenshots
Settings view:
Formula editor view:
Validation
Commands:
uv run ruff check spoolman/derived_fields.py spoolman/extra_fields.py spoolman/formula_references.py spoolman/api/v1/field.py spoolman/api/v1/spool.py spoolman/api/v1/filament.py spoolman/api/v1/vendor.py tests_integration/tests/fields/test_derived.py tests_integration/tests/fields/test_derived_api.py./node_modules/.bin/eslint src/pages/help/index.tsx src/pages/settings/formulaFieldsSettings.tsx src/pages/settings/extraFieldsSettings.tsxVITE_APIURL=/api/v1 npm run buildBrowser validation on
http://localhost:1885:Settings -> Extra Fields -> Spoolsreview_json_testwith JSON{"date_only":[{"var":"registered"}]}derived.review_json_test = 2026-01-01/help#formula-fieldsand checked the help page text matches the JSON-first scopeTest Checklist
VITE_APIURL=/api/v1Follow-up
This PR is intentionally scoped to the JSON-first foundation. Guided insertion and compatibility-driven authoring are handled in stacked PR #13.