Commit Graph
31 Commits
Author SHA1 Message Date
Brenda Wallace f20bf69d32 feat: Allow saving blank drafts for photo attachments and update validations 2026-10-28 21:50:26 +13:00
Brenda Wallace 96e37b6c90 feat: Enhance photo handling in posts with new features and UI updates 2026-10-28 21:50:26 +13:00
Brenda Wallace bb02a61f75 feat: Add photo selection functionality and update UI for CardPhotoDialog 2026-10-28 21:50:26 +13:00
Brenda Wallace 232a62c3a8 feat: Enhance post editor with link suggestions for crops, members, and plantings 2026-10-28 21:50:26 +13:00
Brenda Wallace b6006df384 feat: Implement draft autosave and preview functionality in PostEditor
- Added useDraftAutosave hook to handle automatic saving of post drafts.
- Enhanced PostEditor component to include a preview tab that fetches and displays rendered markdown.
- Updated Post model to manage draft state and associated published_at timestamp.
- Introduced card_photo association to Post for representing a primary image.
- Modified post form to support draft saving and publishing actions.
- Updated navigation to include links to drafts.
- Added tests for draft saving, preview functionality, and card photo validation.
- Created migrations for new database fields related to drafts and card photos.
2026-10-28 21:50:26 +13:00
Brenda Wallace 334e7a8370 feat: integrate Tiptap editor for post body editing
- Updated post actions menu to link directly to the edit post path.
- Enhanced post form to include a React-based body editor using Tiptap, with a fallback to a plain textarea.
- Added Tiptap dependencies to package.json and updated yarn.lock.
- Created a feature spec to verify navigation to the edit page from the post actions menu.
2026-10-26 15:22:45 +13:00
Brenda WallaceandClaude Sonnet 5 92f3f0cc36 Convert Bootstrap 3 horizontal forms to Bootstrap 5
The label-beside-input forms (label col-md-2, input col-md-8) relied on
form-horizontal and form-group acting as a row. Each field wrapper is now a real
.row.mb-3, labels are col-form-label, help text is form-text, and the leftover
form-horizontal and form-actions classes, which do nothing in Bootstrap 5, are
dropped.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 18:03:36 +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
Brenda Wallace 3ec0294565 post body 2019-05-24 20:47:18 +12:00
Brenda Wallace 95ed451c21 post header 2019-05-24 20:46:54 +12:00
Brenda Wallace 334037ed1e form tidy 2019-05-24 20:43:00 +12:00
Brenda Wallace 20fbec96d4 Tidying up forms 2019-05-24 20:14:24 +12:00
Brenda Wallace 9ecf210ffb More form tidy up 2019-04-27 19:19:42 +12:00
Brenda Wallace eabf1fc659 Tidy up (most) forms 2019-04-27 19:11:30 +12:00
Brenda Wallace acbb610e05 Haml clean up for posts views 2017-02-08 07:25:59 +13:00
Daniel O'Connor a9330f2d77 #857 Add length validations to UI 2016-04-03 00:15:45 +10:30
Miles Gould 897eac4fae Merge branch 'pr/727' into dev 2015-07-17 00:31:00 +01:00
Cjay Billones bb88041fef [Refactoring] Replace .count and .length with .size for collections
Improved program efficiency (in querying in particular) by replacing .count and .length with .size for collections.

Fix error in refactoring

Reverted some .size into .count
2015-06-25 12:09:03 +08:00
Mauricio e3a620a109 [#478] autofocus subject input 2015-06-02 23:21:18 -06:00
Manmeet Singh b9b2f4a57e Placing cursor in textarea on page load of write post and write comment views 2015-03-07 16:36:15 +05:30
Skud a684efcf2a b3ified some of the forms 2014-08-11 13:02:08 +10:00
Amy Hendrix db9ef0bc83 Full-width form elements 2014-07-13 20:28:20 -04:00
Cesy Avon f3cb251180 Merge branch 'standardise_buttons' of https://github.com/phazel/growstuff into dev 2013-03-24 01:56:24 -07:00
gnattery d26b3d42ed standardise button styles 2013-03-21 00:37:46 +11:00
Skud 10f8e363b1 two small improvements/bugfixes to post form
- fixed bug with "will be posted in /forums" when no forum specified
- changed wording of "what's happening..." when posting in forum
2013-03-20 22:25:15 +11:00
Skud 17309723d5 show markdown help on post and comment pages 2013-03-20 22:08:09 +11:00
Skud a0955d2bfc post in (or not in) a forum 2013-02-14 11:46:25 +11:00
Skud df76f2497a renamed Post.member_id to Post.author 2013-01-13 20:57:28 +11:00
Skud edb59e07ee s/users/members/g -- all tests pass
There's still probably stuff broken, but this seemed like a good spot to
commit.  Sorry for the enormous chunk of code.  I was attempting to
update the views, but found that I needed to update a few things
elsewhere as well to make them work.
2013-01-13 18:33:43 +11:00
Skud fc4c409cf4 Tests for views/posts now work.
Not going to make any claims for other views though!  About to test them
next.
2013-01-13 16:18:48 +11:00
Skud 21f0f39bf9 Model and controller spec files pass.
Views are another matter (and will explode badly at this point)
2013-01-13 16:12:45 +11:00