Skip to content

Basic mock for cookbook #432

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Basic mock for cookbook #432

wants to merge 1 commit into from

Conversation

mrmer1
Copy link
Contributor

@mrmer1 mrmer1 commented Mar 3, 2025

This PR introduces a new interface for Cohere's Cookbooks, allowing users to search and filter cookbooks by title, description, or tags. It replaces the existing interface, which was a simple list of cards with no search or filtering capabilities.

The new interface is built using React and TypeScript, and includes the following features:

  • A search bar that allows users to search for cookbooks by title or description.
  • A sidebar with three sections: Use Cases, Endpoints, and Tools. Each section contains a list of tags that can be used to filter the cookbooks.
  • A grid of cards that displays the filtered cookbooks. Each card includes the cookbook's title, author, and a list of endpoint tags.
  • A random color is assigned to each card to improve visual appeal.

The PR also includes a new Cookbooks component that renders the new interface. This component uses React hooks to manage state, and includes helper functions for filtering cookbooks and toggling tags.

The PR also updates the description in the fern/pages/cookbooks.mdx file to reflect the new interface.

Changes:

  • A new Cookbooks component is added to fern/components/cookbooks.tsx, which renders the new interface.
  • The description in fern/pages/cookbooks.mdx is updated to reflect the new interface.
  • The CardsContainer and SecondaryTitleContainer components are removed from fern/pages/cookbooks.mdx, as they are no longer needed.
  • The agentCards, ossCards, searchCards, cloudCards, ragCards, summarizationCards, finetuningCards, and otherCards arrays are removed from fern/pages/cookbooks.mdx, as they are no longer needed.
  • The sections array is removed from fern/pages/cookbooks.mdx, as it is no longer needed.
  • The AllCardsContainer and UseCasesContainer components are removed from fern/pages/cookbooks.mdx, as they are no longer needed.
  • The HTML structure in fern/pages/cookbooks.mdx is updated to include the new Cookbooks component.

Copy link

github-actions bot commented Mar 3, 2025

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