Add formula function library documentation#87
Merged
xuyushun441-sys merged 3 commits intomainfrom Jan 23, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add documentation for formula function library
Add formula function library documentation
Jan 23, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive documentation for the formula function library, addressing the gap where formula fields existed (expression: z.string()) but lacked reference documentation about available functions.
Changes:
- Created
/packages/spec/docs/formula-functions.mdwith detailed documentation for 20 formula functions across 4 categories (Text, Math, Date, and Logical) - Added usage examples, parameter specifications, return types, and real-world use cases for each function
- Included type compatibility matrix and best practices guidance
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.
Formula fields existed with
expression: z.string()but lacked function reference documentation, making them unusable without implementation knowledge.Changes
Created
/packages/spec/docs/formula-functions.mddocumenting 20 formula functions across 4 categories:UPPER,LOWER,CONCATENATE,TEXT,LENSUM,AVERAGE,ROUND,CEILING,FLOORTODAY,NOW,YEAR,MONTH,DAY,ADDDAYSIF,AND,OR,NOT,ISBLANKEach function includes:
Usage
Aligns with industry standards (Salesforce: 100+ functions, ServiceNow: 50+ functions).
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.