mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 03:09:06 -04: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>
48 lines
1.8 KiB
Plaintext
48 lines
1.8 KiB
Plaintext
!!! 5
|
|
%html{ lang: "en", prefix: "og: https://ogp.me/ns#" }
|
|
-# The sign in and sign up dialogs need the islands bundle on every page a
|
|
-# visitor can see, and a page that already asked for it must not load it twice.
|
|
- unless member_signed_in? || content_for(:scripts).to_s.include?('react_islands')
|
|
- content_for :scripts do
|
|
= javascript_include_tag 'react_islands', defer: true
|
|
= yield :scripts
|
|
= render "layouts/head"
|
|
%body.d-flex.flex-column.vh-100
|
|
= query_diet_widget if Rails.env.development?
|
|
.visually-hidden= link_to t(".skip"), "#skipnav"
|
|
= render "layouts/header"
|
|
-# anchor tag for accessibility link to skip the navigation menu
|
|
%a{ name: 'skipnav' }
|
|
|
|
.container
|
|
#maincontainer
|
|
- if content_for?(:breadcrumbs)
|
|
%nav{ "aria-label" => "breadcrumb" }
|
|
%ol.breadcrumb
|
|
%li.breadcrumb-item= link_to 'Home', root_path
|
|
= yield(:breadcrumbs)
|
|
- if content_for?(:buttonbar)
|
|
= yield(:buttonbar)
|
|
|
|
- if content_for?(:subtitle)
|
|
%small= yield(:subtitle)
|
|
|
|
= render "shared/flash_messages", flash: flash
|
|
%main= yield
|
|
|
|
-# Every "add photo" link opens its dialog over the page (see PhotoDialog), and
|
|
-# every sign in and sign up link its own (see AuthDialog).
|
|
- if member_signed_in?
|
|
= react_component 'PhotoDialog', photo_dialog_props
|
|
= react_component 'RecordDialog', { plantings_url: planting_picker_path(format: :json) }
|
|
- else
|
|
= react_component 'AuthDialog', auth_dialog_props
|
|
|
|
%footer.page-footer.font-small.bg-dark.pt-4.mt-auto= render "layouts/footer"
|
|
/
|
|
Javascripts
|
|
\==================================================
|
|
/ Placed at the end of the document so the pages load faster
|
|
= javascript_include_tag "application"
|
|
!= Rails.application.config.analytics_code
|