feat: add tabbed input field groups in form builder left panel#56
Merged
feat: add tabbed input field groups in form builder left panel#56
Conversation
Add inputFieldGroups flag that organizes the "Add Form Field" panel into tabbed groups. The old shortTextTypeList format continues to work unchanged via a backward-compatible decoder. When multiple groups are provided, a tab bar appears; with a single group, no tabs are shown. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ Deploy Preview for tiny-form-fields ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
choonkeat
commented
Mar 3, 2026
Comment on lines
+837
to
+864
| /* Field group tab bar styles */ | ||
| .tff-field-group-tabs { | ||
| @apply flex; | ||
| @apply flex-row; | ||
| @apply border-b; | ||
| @apply border-gray-200; | ||
| @apply overflow-x-auto; | ||
| @apply mb-2; | ||
| } | ||
|
|
||
| .tff-field-group-tab { | ||
| @apply px-3; | ||
| @apply py-2; | ||
| @apply text-sm; | ||
| @apply text-gray-600; | ||
| @apply border-b-2; | ||
| @apply border-transparent; | ||
| @apply cursor-pointer; | ||
| @apply whitespace-nowrap; | ||
| @apply hover:text-gray-800; | ||
| @apply hover:border-gray-300; | ||
| } | ||
|
|
||
| .tff-field-group-tab-active { | ||
| @apply text-blue-600; | ||
| @apply border-blue-500; | ||
| @apply font-semibold; | ||
| } |
Owner
Author
There was a problem hiding this comment.
any stylesheet loaded after tiny-form-fields.min.css can easily override them. No !important needed.
choonkeat
commented
Mar 3, 2026
Comment on lines
90
to
92
| , formValues : Json.Encode.Value | ||
|
|
||
| -- List because order matters | ||
| , shortTextTypeList : List CustomElement | ||
| , inputFieldGroups : List InputFieldGroup | ||
| } |
Owner
Author
There was a problem hiding this comment.
config type changes (init)
Comment on lines
100
to
106
| , trackedFormValues : Dict String (List String) | ||
|
|
||
| -- List because order matters | ||
| , shortTextTypeList : List CustomElement | ||
| , inputFieldGroups : List InputFieldGroup | ||
|
|
||
| -- Dict to lookup by `inputType` | ||
| , shortTextTypeDict : Dict String CustomElement | ||
| , activeFieldGroupIndex : Int | ||
| , selectedFieldIndex : Maybe Int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
inputFieldGroupsflag that organizes theAdd Form Fieldpanel into tabbed groups.The old
shortTextTypeListformat continues to work unchanged via a backward-compatible decoder. When multiple groups are provided, a tab bar appears; with a single group, no tabs are shown.Screen.Recording.2026-03-03.at.9.28.50.AM.mov.mp4
tiny-form-fields Chat Export.pdf