-
Notifications
You must be signed in to change notification settings - Fork 211
feat: Add prompts for new activities #4222
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This commit introduces three new prompts to the application to suggest relevant follow-up activities to the user. - When a user finishes the last planting in a garden, they are prompted to create a new activity for soil cultivation. - When a user creates a new garden, they are prompted to plan a weeding activity for two weeks in the future. - When a user marks an activity as finished, they are prompted to repeat the activity in two weeks. These prompts are displayed as flash messages and include links to pre-filled forms for the new activities.
…ture/add-activity-prompts
CloCkWeRX
commented
Sep 7, 2025
CloCkWeRX
commented
Sep 9, 2025
CloCkWeRX
commented
Sep 9, 2025
CloCkWeRX
added a commit
that referenced
this pull request
Sep 21, 2025
* Format * Bump puma from 7.0.2 to 7.0.3 Bumps [puma](https://github.com/puma/puma) from 7.0.2 to 7.0.3. - [Release notes](https://github.com/puma/puma/releases) - [Changelog](https://github.com/puma/puma/blob/master/History.md) - [Commits](puma/puma@v7.0.2...v7.0.3) --- updated-dependencies: - dependency-name: puma dependency-version: 7.0.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Bump active_utils from 3.5.0 to 3.6.0 Bumps [active_utils](https://github.com/shopify/active_utils) from 3.5.0 to 3.6.0. - [Release notes](https://github.com/shopify/active_utils/releases) - [Changelog](https://github.com/Shopify/active_utils/blob/main/CHANGELOG.md) - [Commits](Shopify/active_utils@v3.5.0...v3.6.0) --- updated-dependencies: - dependency-name: active_utils dependency-version: 3.6.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Bump rexml from 3.4.1 to 3.4.2 Bumps [rexml](https://github.com/ruby/rexml) from 3.4.1 to 3.4.2. - [Release notes](https://github.com/ruby/rexml/releases) - [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md) - [Commits](ruby/rexml@v3.4.1...v3.4.2) --- updated-dependencies: - dependency-name: rexml dependency-version: 3.4.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Bump recaptcha from 5.20.1 to 5.21.1 Bumps [recaptcha](https://github.com/ambethia/recaptcha) from 5.20.1 to 5.21.1. - [Changelog](https://github.com/ambethia/recaptcha/blob/master/CHANGELOG.md) - [Commits](ambethia/recaptcha@v5.20.1...v5.21.1) --- updated-dependencies: - dependency-name: recaptcha dependency-version: 5.21.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Merge pull request #4222 from Growstuff/feature/add-activity-prompts feat: Add prompts for new activities * Add ability to copy/duplicate an activity * Rubocop * Rubocop fixes * Rubocop * Rubocop * Rubocop * Rubocop * Rubocop * Add ability to create companion plantings This change adds the ability for crop wranglers to create and manage companion plantings for crops. - Adds a `source_url` to the `CropCompanion` model to store an optional reference URL. - Restricts the management of companion plantings to users with the `crop_wrangler` role. - Creates a new admin interface for managing companion plantings for a specific crop. - Updates the crop show page to display companions from both the crop and its parent crop. * Merge pull request #4262 from Growstuff/feature/github-releases-widget feat: Add cached GitHub releases widget to homepage * Add recurring activities feature without database persistence (#4261) * This change introduces a new feature that allows users to create recurring activities. A user can now specify that an activity should be repeated "X" times, every "Y" weeks. When an activity is created with these options, the application will create the initial activity and then "X" additional copies, with each copy's due date offset by "Y" weeks from the previous one. The repeat information is not stored in the database. It is only used at the time of creation to generate the recurring activities. The following changes were made: - Updated the new activity form to include fields for "repeat times" and "repeat weeks". - Modified the `ActivitiesController#create` action to handle the creation of recurring activities. - Added feature tests to ensure the new functionality works as expected. * Remove not very useful spec --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Daniel O'Connor <daniel.oconnor@gmail.com> * Adjust copy of activities and prompts (#4260) * Adjust copy * Adjust copy * Move repeat prompt * Improve prompts * Clean up schema * Fix spec --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduces three new prompts to the application to suggest relevant follow-up activities to the user.
These prompts are displayed as flash messages and include links to pre-filled forms for the new activities.