Rule Collection β Improving the Schema #1539
Merged
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.
Added descriptions, and auto-population for new rules fields (filename, date created and also guid).
π€π€π€
This pull request includes several enhancements to the
Rules
collection in thetina/collections/rules.ts
file, focusing on adding descriptions and improving the user interface for various fields.Enhancements to the
Rules
collection:defaultItem
function to generate default values for new rules, including a GUID, creation date, and filename. (tina/collections/rules.ts
)title
field: "This is used as the major heading for the rule." (tina/collections/rules.ts
)uri
field: "The URI of the rule β this defines the slug and references." (tina/collections/rules.ts
)authors
field: "The list of contributors for this rule." (tina/collections/rules.ts
)related
field: "The URIs of rules that should be suggested based on the content of this rule." (tina/collections/rules.ts
)created
field: "If you see this field, contact a dev immediately π³ (should be a hidden field generated in the background)." (tina/collections/rules.ts
)archivedreason
field: "If this rule has been archived, summarise why here." (tina/collections/rules.ts
)guid
field: "If you see this field, contact a dev immediately π³ (should be a hidden field generated in the background)." (tina/collections/rules.ts
)seoDescription
field: "A summary of the page content, used for SEO purposes. This can be generated automatically with AI." (tina/collections/rules.ts
)body
field: "Rule content. This is where the magic happens." (tina/collections/rules.ts
)authors
field by adding item properties to display the contributor's name with an icon. (tina/collections/rules.ts
)created
andguid
fields hidden in the UI to avoid user modification. (tina/collections/rules.ts
)π€π€π€
Relates to #1464.