Commit Graph
12703 Commits
Author SHA1 Message Date
Brenda Wallace 0ff036dbff Enhance comment section: update comment button to link to form and ensure form is displayed on the page release98 2026-10-16 22:21:26 +13:00
Brenda Wallace 6b4b407e1f Refactor menus and modals to enhance usability and consistency; add error handling in modals and update actions menus with descriptive labels. 2026-10-16 22:21:26 +13:00
Brenda Wallace 2f20eb7258 Implement modal for editing activities and refactor form fields for improved usability 2026-10-16 22:21:26 +13:00
Brenda Wallace c3f9df44db Refactor photo editing components to use modal and streamline field rendering 2026-10-16 22:21:26 +13:00
Brenda Wallace 7280340850 Add photo label and dialog data methods to PhotosHelper for improved photo handling 2026-10-16 22:21:26 +13:00
Brenda Wallace 77437e262e Refactor photo button helpers to streamline path generation and remove unused icon method 2026-10-16 22:21:26 +13:00
Brenda Wallace 7e5113c82c Add edit modal for comments and update actions menu for consistency 2026-10-16 22:21:26 +13:00
Brenda Wallace 3deb7befbc Add modal form helper and update post actions to use modal for editing 2026-10-16 22:21:26 +13:00
Brenda Wallace b609911039 Remove unused edit button and button helper methods for cleaner code 2026-10-16 22:21:26 +13:00
Brenda Wallace a52ce59997 Refactor planting and activity action menus for improved structure and consistency 2026-10-16 22:21:26 +13:00
Brenda Wallace 9a9430048e Refactor action buttons for garden types and remove unused button partials 2026-10-16 22:21:26 +13:00
Brenda Wallace 3cfdbcd7bd Refactor menu icon implementation for consistency across edit links 2026-10-16 22:21:26 +13:00
Brenda Wallace 77f29bfab9 Remove unused post-actions styles and optimize imports in MarkFinishedModal 2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 2374501758 Tidy the garden chooser and the crop page's "who's planted" list
The garden chooser lines names and notes up on the left and uses the shared
dialog padding. Under "who's planted" each row is the grower, then their
garden and place, without repeating the crop name, and the plant button
opens the garden chooser over the page.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 b7dbb84ebd Add a garden and plant from the home page without leaving it
The garden dialog now adds a garden as well as edits one (new.json and
create.json on GardensController), and a GardenPicker button opens it from the
home page. A plant_picker helper replaces the home page's separate plant
links and the plant_button partial. The plant dialog asks when it was
planted (Today, Yesterday, Enter date), using a WhenPicker shared with the
harvest dialog. Members with no garden still get the full-page plant link.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 a5156f6b9e Add the garden form dialog
One dialog for adding and editing a garden, replacing the edit-only dialog
in the next commit.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 64c9bd3baa Open every add-photo link in the photo dialog
The dialog is mounted once in the layout and any link marked
data-photo-dialog opens it, naming its record in the heading. The gardens
and posts menus, the old planting card and add_photo_button now use it
instead of going to the new-photo page.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 73bf8b5552 Write a comment on the post page itself
The comment form now sits under the post's comments instead of on a page of
its own; the Comment buttons jump to it.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 5fed21e811 Keep menu icons in one place and remove unused helpers
The icon drawings were duplicated between Ruby and React; they now live in
app/javascript/menuIcons.json, read by both. Deletes the button and icon helpers
nothing calls any more, and their spec lines.

Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
Brenda WallaceandClaude Sonnet 5.5 be04ef963f Give record action menus a shared three-dot menu with green icons
One actions_menu helper now builds the three-dot toggle and dropdown for
seeds, harvests, crops, gardens, posts, photos, activities and comments,
replacing the text "Actions" toggle. Every item carries a green line icon
(menu_icon), and delete uses a darker red ($danger-text, 5.6:1 on white)
so it stays readable; it is still last, under a divider, with its own icon.
The React menus draw the same icons. DESIGN.md now says menu items have icons.

Also fixes the posts menu delete, which confirmed but never sent DELETE.

Closes #4939
Closes #4940
Closes #4942
Closes #4943
Closes #4944
Closes #4945
Closes #4946
Part of #4933

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 22:21:26 +13:00
dependabot[bot] 50c7a1a2f2 Bump cancancan from 3.6.1 to 3.6.2 (#4938)
Bumps [cancancan](https://github.com/CanCanCommunity/cancancan) from 3.6.1 to 3.6.2.
- [Release notes](https://github.com/CanCanCommunity/cancancan/releases)
- [Changelog](https://github.com/coorasse/cancancan/blob/main/CHANGELOG.md)
- [Commits](https://github.com/CanCanCommunity/cancancan/compare/3.6.1...3.6.2)

---
updated-dependencies:
- dependency-name: cancancan
  dependency-version: 3.6.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-16 19:08:53 +10:30
Brenda Wallace 40e31c67ab Refactor message specs to ensure member sign-in is consistently applied and streamline conversation retrieval 2026-10-16 17:32:09 +13:00
Brenda Wallace 32ea1d02af Add verification for heirloom fact update in seed facts spec 2026-10-16 17:32:09 +13:00
Brenda Wallace 0e11e0bf80 Fix seed index specs to use match_array for crop uniqueness and correct seed count for CSV format 2026-10-16 17:32:09 +13:00
Brenda Wallace 7c4cf30f4f Enhance seed ownership display in specs and helper methods 2026-10-16 17:32:09 +13:00
Brenda Wallace db8ad5a1f5 Enable view rendering for 'GET index as the results alone' in SeedsController specs 2026-10-16 17:32:09 +13:00
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 050c4bad78 Remove seed toolbar partial from views 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 24b8edad30 Remove unused seed context and stack open partials 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 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 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