Skip to content

Add Notes Section #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

Lettify
Copy link

@Lettify Lettify commented May 5, 2025

This pull request introduces enhancements to the function schema, improves the rendering and styling of function pages, and refines the utility functions for handling function data. Key changes include the addition of new schema properties, the implementation of a reusable NoteBox component, and updates to the getFunctionInfo utility for better type definitions and data handling.

Schema Enhancements:

  • Added an important_notes field to the function schema, which is an array of strings for capturing additional information about a function. (schemas/function.yaml schemas/function.yamlR46-R53)
  • Introduced an optional boolean property for function parameters, indicating whether a parameter is optional. (schemas/function.yaml schemas/function.yamlR174-R177)

UI Improvements:

Utility Function Enhancements:

  • Refactored getFunctionInfo to include new schema fields (important_notes, parameters) and improved type definitions for better maintainability. (web/src/utils/functions.ts web/src/utils/functions.tsL36-R85)
  • Updated the logic for categorizing functions by type and folder, ensuring compatibility with the revised schema. (web/src/utils/functions.ts web/src/utils/functions.tsL58-R106)

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.

1 participant