0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-09 09:48:40 +00:00
Commit Graph

7430 Commits

Author SHA1 Message Date
Gazook89 d1686c4c8f Add in handlers for TagInput value changes
Now brew metadata is actually updated and preserved across reloads to match updated tag values.  useEffect calls the props.onChange event from the parent component on every change to the valueContext state of this component (right now, after hitting Enter in a tag input).
2024-09-18 22:18:18 -05:00
Gazook89 c5033db336 add editing of input functionality
Currently uses uncontrolled inputs with a `defaultValue` attribute set to the values passed in via props.  The input can then be edited, and when `Enter` is pressed, it updates the stored value state.  Later, this can be updated to be trigger with `Tab` or clicking outside the active input element.
2024-09-18 21:00:24 -05:00
David Bolack 672b787cd5 Merge branch 'Issue_1958' of github.com:dbolacksn/homebrewery-broken into Issue_1958 2024-09-18 16:28:19 -05:00
David Bolack 931566636b Merge branch 'master' into Issue_1958 2024-09-18 16:26:39 -05:00
David Bolack ffaca4ec10 Update server/middleware/content-negotiation.js
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2024-09-18 16:21:31 -05:00
Trevor Buckner fabc0bea83 Merge branch 'experimentalNotificationDB' of https://github.com/G-Ambatte/homebrewery into pr/2586 2024-09-18 15:50:55 -04:00
Trevor Buckner 5c2ad7dfee More Linting 2024-09-18 15:50:46 -04:00
Víctor Losada Hernández 3e7d4714a2 Merge branch 'experimentalNotificationDB' of https://github.com/G-Ambatte/homebrewery into experimentalNotificationDB 2024-09-18 21:47:05 +02:00
Víctor Losada Hernández 77c4ac6640 deleting useless state 2024-09-18 21:47:03 +02:00
Trevor Buckner a7c892c1bb Lint 2024-09-18 15:36:48 -04:00
Trevor Buckner dca7086522 Merge branch 'experimentalNotificationDB' of https://github.com/G-Ambatte/homebrewery into pr/2586 2024-09-18 15:35:12 -04:00
Trevor Buckner 6c42a7e180 Lint 2024-09-18 15:34:58 -04:00
Víctor Losada Hernández e8c2858154 Merge branch 'experimentalNotificationDB' of https://github.com/G-Ambatte/homebrewery into experimentalNotificationDB 2024-09-18 21:32:19 +02:00
Víctor Losada Hernández 84f84782f5 Merge branch 'experimentalNotificationDB' of https://github.com/G-Ambatte/homebrewery; branch 'master' of https://github.com/naturalcrit/homebrewery into experimentalNotificationDB 2024-09-18 21:32:17 +02:00
Trevor Buckner 3caec793d8 Linting 2024-09-18 15:30:30 -04:00
Trevor Buckner 9717f0cd66 Split state into separate states. 2024-09-18 15:09:53 -04:00
Trevor Buckner 0cdc1947c1 Linting 2024-09-18 14:45:17 -04:00
Gazook89 36aa4ea508 Add click handler for readTags to open text input
Clicking on a readTag now converts that tag to a text input, and maintains the tag value.  It also closes any other open text inputs amongst the tags (but leaves the "new tag" input open).
2024-09-17 23:50:59 -05:00
Gazook89 d5c5b4315b Render tags as "write" or "read"
Tags are now either "readTag" or "writeTag", with the former being a div with the tag value and the latter a text input with the value.

Minor class name change in LESS.
2024-09-17 23:28:56 -05:00
Gazook89 d505e4e24c Render element for each value from props
Take an array of values from props, load it into valueContext state with an "editing" boolean for each value.  Then, when rendering the component, take each value in the valueContext array and create a div for each --

at this point, if the value is "being edited", it returns a div with text "editing".  If not being edited, it returns a div with the value as text.

Nothing is being edited at this point since that functionality doesn't exist yet.
2024-09-17 23:16:06 -05:00
Gazook89 ea7f18e3b0 Merge branch 'master' into Functional-Tag-Editor 2024-09-17 14:50:31 -05:00
Gazook89 e8e16f4d66 Initial commit: Rename component, set basic structure
No actual functionality implemented yet, just renames the component from "StringArrayEditor" to "TagInput", for brevity at the possible cost of clarity.  For now, the original StringArrayEditor is kept and named "TagInput-class.jsx" so that I can reference it as I work on the functional component.
2024-09-17 14:46:56 -05:00
Trevor Buckner a8e5a96c98 Merge pull request #3733 from naturalcrit/fix-history-state-snippetbar-error
fix
2024-09-17 15:33:57 -04:00
Víctor Losada Hernández f024bea493 delete unused error 2024-09-17 19:58:49 +02:00
Víctor Losada Hernández 61d77b4d2d fix 2024-09-17 19:55:50 +02:00
Víctor Losada Hernández 2e5ebb861e simplify logic 2024-09-17 19:50:39 +02:00
Víctor Losada Hernández 1b577c4030 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into scroll-to-element 2024-09-17 13:20:32 +02:00
Víctor Losada Hernández bbe4b5f978 Merge branch 'master' into fix-vulnerability-admin-pages 2024-09-17 12:47:18 +02:00
Víctor Losada Hernández 14d2534542 linting 2024-09-17 12:46:24 +02:00
Víctor Losada Hernández 3b49b5180e update error to auth 2024-09-17 12:25:54 +02:00
Víctor Losada Hernández 30e042635c Merge pull request #3724 from dbolack-ab/Pagella
Add Pagella Font family to Blank
2024-09-17 08:11:13 +02:00
David Bolack 3c04d491e6 Merge branch 'master' into Pagella 2024-09-16 18:34:07 -05:00
David Bolack 41e08831c6 Update font format. 2024-09-16 18:30:59 -05:00
Trevor Buckner 32c583ece8 Merge pull request #3634 from naturalcrit/nav-wrapping 2024-09-16 19:29:51 -04:00
Víctor Losada Hernández a92b44427d lint 2024-09-16 23:17:12 +02:00
Víctor Losada Hernández 5961e9042a merge from master 2024-09-16 23:11:27 +02:00
Víctor Losada Hernández 2028f3dccd removing console log 2024-09-16 23:04:30 +02:00
Víctor Losada Hernández 8e4fc01831 linting 2024-09-16 23:03:50 +02:00
Víctor Losada Hernández e92c169e71 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into scroll-to-element 2024-09-16 23:01:40 +02:00
Víctor Losada Hernández e2ae6898fd Merge branch 'master' of https://github.com/naturalcrit/homebrewery into fix-vulnerability-admin-pages 2024-09-16 23:00:52 +02:00
Trevor Buckner 471de9df9f Merge pull request #3692 from 5e-Cleric/more-style-snippets
Style snippets, more page sizes, A3, A5, Card
2024-09-16 16:55:58 -04:00
Trevor Buckner 398e6ef6f2 Slight rearranging 2024-09-16 16:53:55 -04:00
Víctor Losada Hernández 44262e2aae change initial status code 2024-09-16 22:52:56 +02:00
Víctor Losada Hernández d8e174e143 update package-lock, apparently 2024-09-16 22:41:59 +02:00
Víctor Losada Hernández bb59f0bbae moving page sizes around 2024-09-16 22:38:58 +02:00
Víctor Losada Hernández c50ffe0723 linting 2024-09-16 22:38:08 +02:00
Víctor Losada Hernández 0d2878a7e7 merge from master and change error codes 2024-09-16 22:34:28 +02:00
Víctor Losada Hernández a0d043439c Merge branch 'master' of https://github.com/naturalcrit/homebrewery into fix-vulnerability-admin-pages 2024-09-16 22:29:16 +02:00
Víctor Losada Hernández 8126271ea3 Merge branch 'fix-vulnerability-admin-pages' of https://github.com/5e-Cleric/homebrewery into fix-vulnerability-admin-pages 2024-09-16 22:25:17 +02:00
Víctor Losada Hernández 9bb21ddd04 Merge branch 'more-style-snippets' of https://github.com/5e-Cleric/homebrewery into more-style-snippets 2024-09-16 22:20:54 +02:00