Commit Graph
2804 Commits
Author SHA1 Message Date
Brenda Wallace 5c2afe6b3e Add heirloom/hybrid fact display and editing functionality 2026-10-16 17:32:09 +13:00
Brenda Wallace c8c32014bb tidying up, as react components 2026-10-16 17:32:09 +13:00
Brenda Wallace e591f538d5 Refactor seed_choice_link helper to improve url_for handling 2026-10-16 17:32:09 +13:00
Brenda Wallace fdebe79b7d Refactor seed management features
- Introduced `@other_count` in SeedsController to track in-stock and finished seeds based on the filter applied.
- Enhanced SeedsHelper with new methods: `seed_owner_label`, `seed_stacks`, and `seed_choice_link` for better organization and readability.
- Updated views to utilize new helper methods, improving the display of seed information and filtering options.
- Adjusted the Seed model to include methods for determining if a seed's sow-by date has passed and to return the heirloom type.
- Improved tests for filters and helper methods to ensure accurate functionality and coverage.
2026-10-16 17:32:09 +13:00
Brenda Wallace d1366a0128 Update seed creation in sorting tests to include tradable_to attribute 2026-10-16 17:32:09 +13:00
Brenda Wallace 0ea9f36ece Refactor follow creation in specs to use factory method for consistency 2026-10-16 17:32:09 +13:00
Brenda Wallace eca77c8e4e Refactor follow creation to use create! method and update seed packet rule matcher for case insensitivity 2026-10-16 17:32:09 +13:00
Brenda Wallace 1b9e6d036f Add seed filtering, messaging features, and enhance seed helper methods
- Implemented filtering for seeds based on source (own, bought, traded, heirloom) and sow-by dates in the SeedsController.
- Added feature specs for seed filtering and messaging functionalities.
- Enhanced SeedsHelper with methods for seed source labels, packet rules, and distance calculations.
- Updated views to reflect changes in seed display and filtering options.
- Created request specs for message creation and conversation handling related to seeds.
2026-10-16 17:32:09 +13:00
Brenda Wallace 2709ce3e70 Implement seed stack opening feature with UI updates and tests 2026-10-16 17:32:09 +13:00
Brenda Wallace 47945492c2 Implement seed search functionality with results summary and no results handling 2026-10-16 17:32:09 +13:00
Brenda Wallace deda0350e3 Implement grouping and list view for seed shelves with updated styles 2026-10-16 17:32:09 +13:00
Brenda Wallace 2c7a6224b3 Add in stock and finished tabs to seeds index with counts 2026-10-16 17:32:09 +13:00
Brenda Wallace 0029f6e6cb Implement seed shelves feature with grouped packets by parent crop 2026-10-16 17:32:09 +13:00
Daniel O'Connorandgoogle-labs-jules[bot] 137f0c6589 Fix prompt label for matching seeds on planting page (#4936)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-10-16 14:58:27 +10:30
Brenda Wallace 484ffa5e44 Update ready banner test to include median days to first harvest and adjust planting date 2026-10-15 21:58:46 +13:00
Brenda Wallace 8235aebaa1 Refactor home stats tiles layout to use grid system and update links for improved interactivity 2026-10-15 21:58:46 +13:00
Brenda Wallace 5241f0e081 Enhance home dashboard interactivity and styling
- Update styles for home stat tiles to improve visual consistency.
- Modify home_section helper to accept an optional id for in-page linking.
- Adjust HAML views to incorporate new id functionality and ensure proper linking.
- Add feature specs for verifying stat tile links and section presence.
2026-10-15 21:58:46 +13:00
Brenda Wallace c46344f90a New menus: desktop bar, tablet and phone drawer, quick add, search (#4929)
* fixes to the menus

* Implement full screen search for mobile: add search functionality and styles

* more icons
2026-10-15 19:06:57 +10:30
Brenda Wallace 763149f842 Add ActiveSupport::Testing::TimeHelpers inclusion to NeighboursController specs 2026-10-14 12:07:59 +13:00
Brenda Wallace 02f5f95b9a Add "New" badge and welcome message for neighbours page
- Define launch date and duration for "New" badge visibility
- Update neighbours menu to display badge when applicable
- Enhance neighbours show page with a welcome message for new users
- Add corresponding translations for welcome message and feedback link
2026-10-14 12:07:49 +13:00
Brenda Wallace 19300dab4b Merge remote-tracking branch 'origin/main' into feat/friends-and-neighbours 2026-10-14 09:28:14 +13:00
Brenda Wallace 10bf0a4f6c Add coding agent guidelines and improve feature spec logging
- Create AGENTS.md with layout advice for coding agents.
- Update timeline feature spec to use rack_test driver and improve context descriptions.
- Enhance spec_helper to log feature spec execution time.
- Add support for Wikidata service mocking in specs.
2026-10-14 09:19:48 +13:00
Brenda Wallace 5c44eb6976 Redirect old timeline to friends and neighbours page and update related views 2026-10-13 20:01:21 +13:00
Brenda Wallace b4382c94cd Remove timeline controller, views, and associated specs 2026-10-13 20:01:16 +13:00
Brenda Wallace b4e5c959e3 Clear Rails cache before running tests and add neighbours controller specs 2026-10-13 17:58:01 +13:00
Brenda Wallace 3b06325e62 Add friends and neighbours feature with member dismissal functionality
- Implement RecentActivity service to track recent planting, harvesting, and trading events.
- Enhance TimelineService to include garden layouts in event queries.
- Update navigation menu to include a link to friends and neighbours.
- Create member card partial for displaying gardener information.
- Add follow button partial for managing follow actions.
- Refactor members index view to use the new member card partial.
- Introduce neighbours feed view with daily updates and entries.
- Implement entry partial for displaying individual neighbour activities.
- Create layout partial for visualizing garden layouts.
- Add posts section to neighbours view for displaying recent posts.
- Implement reach section to show nearby gardeners.
- Add suggestions section for recommending gardeners to follow.
- Create routes for neighbours functionality and member dismissals.
- Add migrations for member dismissals and garden layout timestamps.
- Write feature and request specs for neighbours functionality.
- Include support for creating located members in tests.
2026-10-13 17:08:18 +13:00
Brenda Wallace 29c9cb2ef6 show harvests by count, not weight 2026-10-13 13:08:02 +13:00
Brenda Wallace eff14940ab Refactor home page recent posts display; replace old structure with new post card layout for improved aesthetics and functionality. 2026-10-12 21:59:35 +13:00
Brenda Wallace 48fa6a6eec Enhance home page layout with new post thumbnail and photo display features; update recent posts section for improved visibility and accessibility. 2026-10-12 21:59:11 +13:00
Brenda Wallace a06b281a1d overlay modal forms for the homepage 2026-10-12 21:45:53 +13:00
Brenda Wallace 789c3e1a3b Merge branch 'main' into feat/home-page-redesign 2026-10-12 21:00:01 +13:00
Daniel O'Connorandgoogle-labs-jules[bot] f6d3b53369 Fix li tag styling and structure in activity cards (#4908)
- Remove invalid p tag wrapper around list in activities/_card
- Properly nest li elements under ul.list-unstyled.mb-0 in activities/_card
- Add mt-4 spacing class to Finished activities heading in gardens/_previously
- Add spec/views/activities/_card.html.haml_spec.rb

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-10-12 17:41:44 +10:30
Brenda Wallace 04415d38c5 Merge branch 'main' into feat/home-page-redesign 2026-10-12 19:55:53 +13:00
Brenda Wallace be38339b02 Refactor member location updates and improve error handling
- Updated MemberLocationsController to use a hash for location updates, ensuring coordinates are not geocoded again.
- Changed response status codes in member_locations_spec to use symbols for better readability.
- Modified PlacesController to use parentheses for defining MEMBER_FIELDS.
- Enhanced SuggestionsController to disable Rails/SkipsModelValidations for update_columns.
- Updated SeasonsHelper to use compact_blank for cleaner output.
- Refactored MemberDashboard service for improved readability and performance.
- Adjusted migration files to use parentheses for index definitions.
- Updated schema.rb to maintain consistency in index definitions.
- Added SampleData class to generate sample data for development.
- Cleaned up sample_data.rake task to utilize the new SampleData class.
- Updated tests in member_dashboard_spec and place_suggester_spec for consistency and readability.
2026-10-12 19:30:21 +13:00
Brenda Wallace 54258de6c4 Refactor home dashboard and related components
- Removed unused styles and helper methods from _garden_layout.scss, _homepage.scss, and overrides.scss.
- Updated _home_dashboard.scss to enhance button styles and added new harvest picker styles.
- Introduced HarvestPicker component for improved harvest recording functionality.
- Refactored home dashboard views to utilize new home_section helper for consistent layout.
- Simplified and optimized existing methods in application_helper.rb, activity.rb, and harvest.rb.
- Removed deprecated homepage_records methods from Activity and Harvest models.
- Updated tests to reflect changes in helper methods and removed obsolete tests.
2026-10-12 19:24:55 +13:00
Brenda Wallace 0c2b5b95fa Remove unused plantings and seeds partials along with their associated specs 2026-10-12 19:24:47 +13:00
Brenda Wallace c83d542146 Enhance navigation and dashboard features with current section highlighting and last year's planting data 2026-10-12 19:19:43 +13:00
Brenda Wallace 2d888a989d Add missing include for ActiveSupport::Testing::TimeHelpers in HomeHelper spec 2026-10-12 19:12:24 +13:00
Brenda Wallace ef06bab74f Add crop suggestions feature and dashboard enhancements
- Introduced crop suggestions functionality allowing users to receive tailored crop recommendations based on their location and preferences.
- Implemented the ability for users to dismiss specific crop suggestions, preventing them from receiving recommendations for crops they are not interested in.
- Added a location picker for users to set their gardening location, enhancing the accuracy of crop suggestions.
- Enhanced the dashboard to display relevant statistics, including plantings and harvests, with comparisons to previous years.
- Created new views and partials for displaying statistics, crop suggestions, and user interactions on the dashboard.
- Updated routes to accommodate new features related to crop suggestions and member locations.
- Added migrations for new database tables and columns to support crop dismissal and suggestion preferences.
- Developed tests for the new features, ensuring functionality and user experience are maintained.
2026-10-12 19:12:18 +13:00
Daniel O'Connorandgoogle-labs-jules[bot] 1a79cfa5e5 Fix deletion of photo associations in PhotoAssociationsController (#4906)
Fixes #4902 by updating PhotoAssociationsController#destroy to look up
photos and items directly rather than querying photo_associations table
with PhotoAssociation.item. Updates authorization rules to allow photo
association deletion if the current member owns the photo, owns or can
edit/manage the associated item, or is an admin. Updates the view partial
to render the delete link when the user can edit either the photo or item.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-10-12 13:57:35 +10:30
Brenda Wallace 82e8124f9c Remove garden layout teaser and associated specs from home page 2026-10-12 15:06:48 +13:00
Brenda Wallace f37fa5e0df Add "Since" section to home page and update locale for new content 2026-10-12 14:24:41 +13:00
Brenda Wallace eb86094787 Merge remote-tracking branch 'origin/main' into feat/home-page-redesign 2026-10-12 14:19:47 +13:00
Brenda Wallace 721e3fbd65 Refactor home page specs to improve clarity and remove unused setup; enhance stats view tests for gardener, planting, and crop counts 2026-10-12 14:15:11 +13:00
Brenda Wallace f302b6f77f Refactor homepage styles to exclude home-hero-photo from link color change; update home page specs to remove unused sections and ensure design compliance 2026-10-12 14:14:48 +13:00
Brenda Wallace 0882603e78 Add releases page and update homepage layout
- Introduced a new releases page linked from the homepage.
- Updated homepage to include a signed-in greeting with member avatar and season summary.
- Enhanced mobile styles for better navigation and search box visibility.
- Added season-related helper methods and tests for improved functionality.
2026-10-12 14:11:11 +13:00
Brenda Wallace c758259b17 Refactor code structure for improved readability and maintainability 2026-10-12 14:08:38 +13:00
Brenda Wallace fcd1fe0782 Redesign home page with new hero section, update signup links, and enhance styling for better user experience 2026-10-12 14:06:51 +13:00
Brenda Wallace c2e79dbc13 Enhance plant_before_year method to retain user input on error and add tests for input handling in seed model 2026-10-12 08:43:27 +13:00
Brenda Wallace 4596c4a45b Update seed photo addition test to verify dialog content 2026-10-12 08:18:42 +13:00