Skip to content

Add recipes command to list custom recipes#32

Merged
milldr merged 1 commit into
milldr:mainfrom
NilsLeo:feature/recipes-command
May 22, 2026
Merged

Add recipes command to list custom recipes#32
milldr merged 1 commit into
milldr:mainfrom
NilsLeo:feature/recipes-command

Conversation

@NilsLeo
Copy link
Copy Markdown
Contributor

@NilsLeo NilsLeo commented May 21, 2026

Implements crono recipes command to read custom recipe names from Cronometer's #custom-recipes page.

Features:

  • Lists all custom recipes by name
  • Supports --json flag for machine-readable output
  • Uses Playwright codegen to scrape div.gwt-Label elements from recipe rows
  • Integrates with shared automation client via getRecipes() method

The recipes are scraped from div[role="button"] rows containing .gwt-Label children on the custom recipes page. The automation waits for the search input and at least one recipe row to ensure the GWT widget has finished rendering before scraping.

Example usage:
crono recipes
crono recipes --json

Also includes package-lock.json updates to remove peer: true flags from dev dependencies.

🤖 Generated with Claude Code

Implements `crono recipes` command to read custom recipe names from
Cronometer's #custom-recipes page.

Features:
- Lists all custom recipes by name
- Supports --json flag for machine-readable output
- Uses Playwright codegen to scrape div.gwt-Label elements from recipe rows
- Integrates with shared automation client via getRecipes() method

The recipes are scraped from div[role="button"] rows containing
.gwt-Label children on the custom recipes page. The automation waits
for the search input and at least one recipe row to ensure the GWT
widget has finished rendering before scraping.

Example usage:
  crono recipes
  crono recipes --json

Also includes package-lock.json updates to remove peer: true flags
from dev dependencies.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copy link
Copy Markdown
Owner

@milldr milldr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! ty

@milldr milldr merged commit 2fb8961 into milldr:main May 22, 2026
3 checks passed
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.

2 participants