Commit Graph
5036 Commits
Author SHA1 Message Date
Brenda Wallace 050c4bad78 Remove seed toolbar partial from views 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 24b8edad30 Remove unused seed context and stack open partials 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 5926047199 Implement SeedStack component and enhance seed display with owner avatars and improved styles 2026-10-16 17:32:09 +13:00
Brenda Wallace 49800d574b Refactor seed display logic and styles for improved user experience 2026-10-16 17:32:09 +13:00
Brenda Wallace 3a03a98a40 Refactor SeedsController and related views for improved seed filtering and display
- Introduced a new `filter` method in SeedsController to streamline seed filtering logic based on various parameters.
- Updated the `library_stats` method to calculate statistics for a member's seed library.
- Enhanced the seeds index view with a new toolbar for search and filtering options.
- Created new partials for seed packets and page headers to improve code organization and readability.
- Added support for displaying past sow-by dates and improved the presentation of seed varieties and stacks.
- Refactored existing views to utilize new partials and methods, ensuring a cleaner and more maintainable codebase.
2026-10-16 17:32:09 +13:00
Brenda Wallace dc28cee60e Implement seed sharing features with UI updates, distance calculations, and improved context display 2026-10-16 17:32:09 +13:00
Brenda Wallace c8d1b6ab38 Enhance seed context and stack display with improved styles and structure 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 4605e953f4 Refactor seed index layout with improved header and filter buttons 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 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 52d0ce4598 Remove link functionality from home stat tiles for simplified display 2026-10-15 21:58:46 +13:00
Brenda Wallace b812c40fbe Add URL to 'ready' stat tile 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 96641e3723 Update welcome message link on neighbours page 2026-10-14 12:11:24 +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 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 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 b94c4c437e Add filters and update GrowingTable component for improved plant and garden selection 2026-10-13 13:46:22 +13:00
Brenda Wallace b386ddace2 Add ChipToggle component and refactor HarvestChart and GrowingTable to use it 2026-10-13 13:12:24 +13:00
Brenda Wallace 31978698c2 the growing/ready on the home page should also be react, so it changes without a page reload 2026-10-13 13:10:12 +13:00
Brenda Wallace 29c9cb2ef6 show harvests by count, not weight 2026-10-13 13:08:02 +13:00
Brenda Wallace 99ab3ee33b Fix menu underline bug by removing caching for menu items to ensure proper rendering. 2026-10-13 09:24:00 +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 4fd4c146df Merge remote-tracking branch 'origin/feat/home-page-redesign' into feat/home-page-redesign 2026-10-12 21:32:27 +13:00
Brenda Wallace 36291f12c8 Refactor search bar styling and update button structure for improved accessibility 2026-10-12 21:32:03 +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 37cbef43c7 Fix rendering syntax for 'blurb' section in home index view 2026-10-12 19:36:12 +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 76e01832e3 Refactor suggestions index view to simplify month variable usage and remove redundant crop rendering logic 2026-10-12 19:25:00 +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 76a0af7d82 Implement action bar for mobile with plant and harvest options; enhance navbar search functionality 2026-10-12 19:21:26 +13:00
Brenda Wallace d389104e4d Redesign mobile navigation and search bar for improved usability and aesthetics 2026-10-12 19:20:17 +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 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