Skip to content

Add patch for harvest addition exception and refactor to shared Harvest type#192

Merged
SvenVw merged 2 commits into
mainfrom
hotfix/wizard-add-harvest
Jul 22, 2025
Merged

Add patch for harvest addition exception and refactor to shared Harvest type#192
SvenVw merged 2 commits into
mainfrom
hotfix/wizard-add-harvest

Conversation

@SvenVw
Copy link
Copy Markdown
Collaborator

@SvenVw SvenVw commented Jul 21, 2025

Summary by CodeRabbit

  • Bug Fixes

    • Resolved an issue that caused an exception when adding a harvest in the farm creation wizard.
  • Chores

    • Updated the app version to 0.20.3.
    • Added a changelog entry for the new release.

@SvenVw SvenVw self-assigned this Jul 21, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 21, 2025

⚠️ No Changeset found

Latest commit: f19e2d1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jul 21, 2025

Walkthrough

The changes update the harvest aggregation logic in the farm creation wizard to use the shared Harvest type instead of a local interface, refactor type usage in the reducer, and update the similarity check accordingly. Additionally, the package version is incremented to 0.20.3, and a changelog entry documents the patch.

Changes

File(s) Change Summary
.../routes/farm.create.$b_id_farm.$calendar.cultivations..._index.tsx Refactored harvest aggregation logic to use imported Harvest type instead of local interface
CHANGELOG.md Added entry for version 0.20.3, documenting a harvest-related patch
package.json Updated package version from 0.20.2 to 0.20.3

Estimated code review effort

2 (~15 minutes)

Poem

🥕
A patch for the fields, a version anew,
Harvests combine with a type that is true.
The changelog now sings of a bug put to rest,
While package.json dons its fresh versioned vest.
In the garden of code, the crops grow just right—
Thanks to a rabbit who codes through the night!
🐇


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4f25214 and f19e2d1.

📒 Files selected for processing (2)
  • fdm-app/CHANGELOG.md (1 hunks)
  • fdm-app/package.json (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • fdm-app/CHANGELOG.md
  • fdm-app/package.json
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch hotfix/wizard-add-harvest

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@SvenVw SvenVw added bug Something isn't working branch:main An issue, affecting the main branch, that requires an hotfix labels Jul 21, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.42%. Comparing base (2edb034) to head (f19e2d1).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #192   +/-   ##
=======================================
  Coverage   93.42%   93.42%           
=======================================
  Files          74       74           
  Lines        8894     8894           
  Branches     1126     1126           
=======================================
  Hits         8309     8309           
  Misses        583      583           
  Partials        2        2           
Flag Coverage Δ
fdm-calculator 94.86% <ø> (ø)
fdm-core 93.01% <ø> (ø)
fdm-data 94.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot changed the title @coderabbitai Add patch for harvest addition exception and refactor to shared Harvest type Jul 21, 2025
@coderabbitai coderabbitai Bot added the fdm-app label Jul 21, 2025
@SvenVw
Copy link
Copy Markdown
Collaborator Author

SvenVw commented Jul 22, 2025

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jul 22, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@SvenVw SvenVw merged commit 8588609 into main Jul 22, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch:main An issue, affecting the main branch, that requires an hotfix bug Something isn't working fdm-app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant