Closed laholstege closed 4 months ago
This update introduces new metadata generation functions across multiple pages to enhance SEO and organization. Functions like caching chat data and improving chat functionalities with memoization and sanitization were added. Additionally, utility functions for text processing, such as sanitizing markdown and user input, were incorporated to ensure cleaner and safer data management.
Files | Change Summaries |
---|---|
src/app/.../page.tsx |
Added generateMetadata functions to specify page titles for about , auth/login , and privacy . |
src/app/chat/[chatid]/page.tsx , .../[shareid]/page.tsx |
Introduced chat data caching and metadata generation with getCachedChat and cleanMetadataTitle . |
src/app/layout.tsx |
Altered metadata to use title templates for dynamic page titling. |
src/components/.../chatActions.tsx |
Utilized memoization for chat data and updated CopyToClipboardButton usage. |
src/components/.../wonkMessage.tsx |
Replaced internal sanitizeMarkdown function with an imported version. |
src/lib/util.ts |
Updated text processing functions; added sanitization and title formatting utilities. |
No sequence diagram required for these changes.
In files and blocks where code doth dwell,
We added titles, metadata to tell.
Chat now stored in mem'ry bright,
Questions and answers wrapped tight.
Markdown clean, inputs pure,
For tidy pages, changes sure.
Policy Wonk we do adorn,
With clearer text and metadata born.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
closes #54
Summary by CodeRabbit
New Features
Improvements
Refactor