Commit Graph
82 Commits
Author SHA1 Message Date
Brenda Wallace 232a62c3a8 feat: Enhance post editor with link suggestions for crops, members, and plantings 2026-10-28 21:50:26 +13:00
Daniel O'Connorandgoogle-labs-jules[bot] ad74235b95 Make flash messages sticky when page is scrolled (#4999)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-10-24 12:40:18 +10:30
Brenda Wallace ca7fd81439 Tidy/login signup (#4958)
* Add authentication dialogs for sign in and sign up

- Implemented AuthDialog component to manage sign in and sign up modals.
- Created SignInModal and SignUpModal components for handling respective authentication processes.
- Added AuthFields component for reusable form fields and error handling.
- Updated various views to utilize the new authentication dialogs instead of traditional links.
- Enhanced user experience by allowing sign in and sign up actions to occur without full page reloads.
- Added feature specs for testing the functionality of the new dialogs.

* Refactor modals and input fields for improved accessibility and styling; adjust button sizes and text formatting

* Refactor authentication forms and modals for improved usability and accessibility; integrate reCAPTCHA handling and enhance error messaging

* Refactor SignUpModal layout for improved responsiveness and accessibility; organize fields into rows and enhance styling

* Refactor session view spec to streamline field checks; remove redundant test and retain essential content expectations
2026-10-17 09:26:39 +10:30
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 3535826dde Refactor seed facts display and editable forms for improved clarity and functionality 2026-10-11 17:10:44 +13:00
Brenda Wallace 113f469b50 Add plant_before_year attribute to seeds and update related forms and views 2026-10-11 16:41:59 +13:00
Brenda Wallace 145d0a6d3a Refactor record meta rendering for consistency across gardens, harvests, plantings, and seeds 2026-10-11 11:48:16 +13:00
Brenda Wallace 3472559e78 Add hide_label option to form fields for improved accessibility 2026-10-11 11:41:43 +13:00
Brenda Wallace 83d2e074a2 Refactor styles and structure for record pages, enhancing layout and consistency across planting, harvest, and seed views 2026-10-11 11:18:25 +13:00
Brenda Wallace a48e82eba5 Refactor styles and improve layout for planting details, including muted text color updates and enhanced card displays 2026-10-11 10:29:58 +13:00
Brenda WallaceandClaude Sonnet 5 a9193dc988 Use Bootstrap 5 close buttons and alert-dismissible
.close with a times character -> .btn-close (which draws its own cross), with an
aria-label on each. The alert helper said alert-dismissable, Bootstrap 3's
spelling; Bootstrap 5 needs alert-dismissible for the close button's spacing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 18:03:36 +12:00
Brenda WallaceandClaude Sonnet 5 742599fea6 Rename Bootstrap 3/4 grid, button and form-group classes
col-xs-N -> col-N, col-md-offset-N -> offset-md-N, row-fluid -> row,
btn-block -> w-100, btn-xs -> btn-sm, form-group -> mb-3 (Bootstrap 5 dropped
form-group), and btn-default (Bootstrap 3) -> btn-outline-secondary. The three
helpers that combined btn-default with btn-secondary keep just btn-secondary.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 18:01:45 +12:00
Brenda WallaceandClaude Sonnet 5 be5ed5fca5 Rename Bootstrap 4 utility classes to their Bootstrap 5 names
text-left/right -> text-start/end, float-left/right -> float-start/end,
ml-/mr-/pl-/pr- -> ms-/me-/ps-/pe-, border-left/right -> border-start/end,
dropdown-menu-left/right -> dropdown-menu-start/end, font-weight-* -> fw-*,
font-italic -> fst-italic and sr-only -> visually-hidden. Bootstrap 5 dropped
text-justify, so the site keeps a one-line rule for it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 18:01:00 +12:00
Daniel O'Connorandgoogle-labs-jules[bot] c8ea225b10 Ensure garden creation flash prompt is rendered as HTML (#4633)
Updated app/views/shared/_flash_messages.html.haml to use sanitize(content)
instead of = content. This ensures that HTML content in flash messages,
such as the prompt to add an activity after creating a garden, is
correctly rendered even if its html_safe status is lost during session
serialization.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-05-14 12:35:18 +09:30
google-labs-jules[bot]andDaniel O'Connor 13a8276313 Add version tracking to crops model (#4343)
* feat: Add version tracking to Crop model

This commit introduces version tracking for the Crop model using the PaperTrail gem.

Key changes include:
- Integrating `has_paper_trail` into the `Crop` model.
- Adding a "History" section to the crop show page to display a timeline of changes for that specific crop.
- Creating a new admin page for users with the "crop_wrangler" role to view a log of all recent crop edits, creations, and deletions.
- Fixing several N+1 query performance issues by eager-loading associated `Member` records in both the `CropsController` and the new `Admin::CropsController`.
- Refactoring view logic into a shared partial to reduce code duplication.

* Add papertrail

* Admin UI

* Add papertrail DB

* Add papertrail DB

* Rearrange

* Fix permissions

* Fix permissions

* Fix UI

* Fix UI

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Daniel O'Connor <daniel.oconnor@gmail.com>
2025-11-30 14:47:46 +10:30
Daniel O'Connor 196ca1ba49 Merge pull request #3896 from Growstuff/CloCkWeRX-patch-2
Update _form.html.haml
2024-10-13 23:53:28 +10:30
Daniel O'Connor 66f3a712ea Update _form.html.haml 2024-10-13 23:32:19 +10:30
Daniel O'Connor 8459bc2fdf Swap to HTML5 date field 2024-10-13 23:29:17 +10:30
Daniel O'Connor 7d63234841 Upgrade to bootstrap 5 (#3605)
* Upgrade boostrap

* Remove deprecated bootstrap toggles

* Migrate other details

* Avoid accidentally including bootstrap twice

* Avoid accidentally including bootstrap twice

* Avoid accidentally including bootstrap twice

* Fix spec

* Fix spec, where the size of the screen has gone to a partial breakpoint/you can't click on your own name in tablet view

* Fix spec

* Cleanup

* Cleanup
2024-03-10 11:49:22 +10:30
Daniel O'Connor 81fdfbdc0b DEPRECATION WARNING: Date#to_s(:ymd) is deprecated. Please use Date#to_fs(:ymd) instead. 2022-11-07 22:25:34 +10:30
Daniel O'Connor 5621666383 DEPRECATION WARNING: Date#to_s(:ymd) is deprecated. Please use Date#to_fs(:ymd) instead. 2022-11-07 22:05:39 +10:30
Brenda Wallace 0a327cba67 Tidier sign-in/sign-up links 2019-11-30 21:53:23 +13:00
Brenda Wallace b0c8b11246 📝 Inline editing and display tidy ups (#2200)
* Inline editing and display tidy ups
2019-10-08 11:06:53 +13:00
Brenda Wallace b1b459f9d8 link to markdown docs using https 2019-07-10 09:03:05 +00:00
Brenda Wallace 1c50d9e50d rename blog_icon to post_icon 2019-07-08 09:42:06 +12:00
Brenda Wallace 528e4c2c85 button to get to timeline 2019-07-07 22:08:42 +12:00
Brenda Wallace 952c1b9a2a styled and moved the signin/signup prompts 2019-06-27 22:04:54 +12:00
Brenda Wallace 5cedea9da8 removing trailing whitespace 2019-06-14 16:23:31 +12:00
Brenda Wallace e801a1d7c6 Removing unused views 2019-06-13 21:06:10 +12:00
Brenda Wallace 0d3bdc09ab Tool tips on actions 2019-05-25 17:17:25 +12:00
Brenda Wallace 4caa30b2f5 button horizontal again 2019-05-25 10:22:57 +12:00
Brenda Wallace b07f5526f1 Vertical buttons 2019-05-24 20:50:17 +12:00
Brenda Wallace a8f1740584 Re-instate the buttons 2019-05-21 13:39:56 +12:00
Brenda Wallace f47b22505c Comment out global actions until it is prettier 2019-05-13 07:53:08 +12:00
Brenda Wallace 0c81f962aa homepage tidy 2019-04-29 18:16:14 +12:00
Brenda Wallace d400e73ff6 Move global actions 2019-04-29 15:31:47 +12:00
Brenda Wallace 6d8a9c3579 Move global actions 2019-04-26 17:54:52 +12:00
Brenda Wallace 4196ce9e6b Fix search 2019-04-26 17:35:22 +12:00
Brenda Wallace f5f5ecdea7 Merge remote-tracking branch 'upstream/dev' into material-merge
Conflicts:
	Gemfile.lock
	app/assets/javascripts/application.js
	app/assets/stylesheets/application.sass
	app/assets/stylesheets/plantings.sass
	app/views/crops/_thumbnail.html.haml
	app/views/crops/show.html.haml
	app/views/home/_members.html.haml
	app/views/layouts/application.html.haml
	app/views/photos/show.html.haml
	app/views/plantings/_descendants.html.haml
	app/views/plantings/show.html.haml
	app/views/seeds/_thumbnail.html.haml
	app/views/shared/_global_actions.html.haml
	spec/models/crop_spec.rb
2019-04-21 11:27:27 +12:00
Brenda Wallace 27d12bf07e Isotope making nice layout on plantings#show 2019-04-20 09:09:07 +12:00
Brenda Wallace 3ed173ebcd Material design changes 2019-02-17 21:33:36 +13:00
Brenda Wallace 3d3d1407cd Fixed link in global actions 2019-01-27 18:28:42 +13:00
Brenda Wallace e912211cee DRY the icons 2019-01-24 12:17:40 +13:00
Brenda Wallace 2a98cefedb Copy finish planting from view to helper 2019-01-24 12:17:40 +13:00
Brenda Wallace 424866b733 Add "something" to global action labels 2019-01-24 12:17:40 +13:00
Brenda Wallace 761a0b4142 Always use the helper for add_photo buttons 2019-01-24 12:17:40 +13:00
Brenda Wallace 8270611f0c Removed un-used viewss 2019-01-24 12:17:40 +13:00
Brenda Wallace e2a0278e40 Use same t() for the button for writing blog posts 2019-01-24 12:17:40 +13:00
Brenda Wallace 67e58fe901 Moving buttons to the right of page (with translations) 2019-01-24 12:17:40 +13:00