mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-01 10:49:12 -05:00
* Implement AddSeedsPicker component and enhance planting selection UI; update styles and serializers for better seed management * Enhance PlantingPicker component: add hints and titles for harvest and seed actions; update test to reflect changes in seed saving behavior * Enhance harvest recording: allow harvesting from crops without plantings; update forms and modals for better user experience * Refactor code structure for improved readability and maintainability * Remove AddSeedsPicker component and its associated tests * Add planting picker functionality for harvesting and seed saving - Introduced PlantingPickersController to handle JSON responses for member's plantings. - Updated HomeHelper to include crop ID in planting picker properties. - Refactored PlantPicker and PlantSomethingModal components to support multiple gardens. - Created PlantingFlow component to manage planting actions (harvest and save seeds). - Implemented RecordDialog component to handle server-rendered links for harvesting and seed saving. - Updated various views to include data attributes for triggering the record dialog. - Added routes for planting picker and corresponding request specs for testing. - Adjusted styles in _plantings.scss for better layout and spacing. * Add job management features including job creation and wishlist functionality * Remove WishlistJobsController and associated views and tests * Add suggestion links rendering and fix routes formatting * Refactor AddJobModal and JobPicker components to simplify props and enhance user experience * Update seed addition test to check dialog presence and current path * Apply suggestion from @CloCkWeRX --------- Co-authored-by: Daniel O'Connor <daniel.oconnor@gmail.com>
15 lines
803 B
Plaintext
15 lines
803 B
Plaintext
-# Packets they hold, one per crop, with how many varieties of it.
|
|
- stash = dashboard.seeds_on_hand
|
|
= home_section(title, action: react_component('PlantingPicker', { action: 'seeds', label: t('home.dashboard.add_seeds'), buttonClass: 'home-section-add', plantings: planting_picker_props(dashboard) })) do
|
|
%p.home-section-note= t('home.dashboard.seeds_note')
|
|
- if stash.empty?
|
|
%p= t('home.dashboard.no_seeds')
|
|
- else
|
|
.index-cards
|
|
- stash.each do |crop, seeds|
|
|
= render 'seeds/card', seed: seeds.first
|
|
- if dashboard.seed_varieties > stash.size
|
|
%p= link_to t('home.dashboard.all_varieties', count: dashboard.seed_varieties), member_seeds_path(current_member)
|
|
- if stash.any?
|
|
%p= link_to t('home.dashboard.view_seed_library'), member_seeds_path(current_member)
|