-
Notifications
You must be signed in to change notification settings - Fork 82
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree the styling is not delightful but I think it's fine for now.
The short label concept is to provide condensed text that can be shown in a summary or table of contents view. So it looks like Enketo doesn't really support it as intended. To see a short label in Collect, go to the "jump" view.
https://github.com/getodk/build/pull/244/files#diff-ba8409fc6425bc4d7fb9b5152c790bd614d0c382f4f3463c4dbab6031eba5250R212 looks a little convoluted to me but I don't know the context well enough to be able to assess. Would be great to get a quick look from @issa-tseng
re styling: Edit: added some line breaks and styling to improve readability, see below. Absolutely happy to follow directions by core team on layout and styling though. re addTranlation: |
67c0e5c adds support for media labels and refactors handling of extra control objects in I'll test locally within the next day and am open to any suggestions and directions. Attached: Form with translations (En and Bv) as odkbuild and XML. XML also below.
|
Thanks for continuing to improve this! Looks great to me. Upon further reflection, I probably would have omitted short labels and guidance text from the inline question box but I don't have strong feelings about it. I think it would be helpful to make it clear that |
Re-ordering This is how @lognaturel's suggested order would look: |
I'd move the Maybe the media types could have a |
The current preview places the new fields after the shared properties. (It's also the lazy implementation that just shuffles them to the bottom of Media field labels - including a (filename) makes perfect sense. Even better would be an indication whether a plain filename would do, or a path is needed, and how the path relates to the contents of the media folder. The field description or tips would be a good place for a working example. Media file prefix and paths - I need to read up and experiment more with media file paths to understand what's a valid path and how the folder structure inside the form media should look like. Any pointers would speed up my process but I'll get there eventually. |
It's all flat. Technically a server or client could segregate media by type but in practice I don't know of any that do. Regardless, that will be up to the user and the server to negotiate once the form gets used. So a user really just needs to provide a full filename with extension and you just need to prepend the correct connector based on media type (though in practice it wouldn't really matter if they were all the same). |
* Media label controls could alternatively be collapsed like Advanced * Likert appearance for SelectOne but not SelectMultiple
Pushed a4878cf to address
|
…help text paths * Prevent empty itext nodes * Only media labels are now prefixed with jr://[images, video, audio]/ * Help text paths changed from /xforms/data/path to /data/path/field
Up to now, this PR does everything the way @lognaturel described and I understood. I'll need a day (Wed) to test the produced XML and verify that everything works as intended, then this PR will be ready for review. |
* Resize properties pane from 27 to 35em * Shrink workspace accordingly * Fix layout of advanced properties to show all fields (calculate was hidden) and prevent unsightly overlap
Short guidance media likert.zip Here's my test form including media files and a quick write-up. Test devices:
a26d629 is gonna be controversial, as it changes the sacred sidebar styling to make it 35em wide. While I hope not to upset anyone with strong feelings about the sidebar width and am happy to revert this change, this fix improves readability, prevents overflow, and makes sure the This PR will close #242, #172 and #173. Happy to hand over this PR to @issa-tseng or anyone else for review, and looking forward to any and all review suggestions. |
i will admit to having not read or run the code, and not done a very close reading of this thread. but here are some thoughts:
|
* Update links to getodk/build GH repo * Update author names * Swap short and long label positions
Thanks for the feedback @issa-tseng. Re short label in question box Latest commit as suggestion: Re lots of new fields Re changes to code Finally found a few outdated links and names in the index.erb, hope you don't mind me updating them. Didn't add new places of implementation (Thevenard Island and Perth) - remember, only if it contains turtles it's a real PR from Florian, else it's just a sparkling commit. |
how about you drop the text size of the long label then? what does that look like? |
no, the long label. |
can you make the long label small only if there is a short label? then i think i'm good w it. otherwise it's fine as is i think? what do you reckon? |
Conditional text resizing sounds like a neat UX feature. I've pushed the static sizes as is. Feel free to merge if the status quo is good enough. I think to format label dependent on presence of short label, we'd have to modify https://github.com/getodk/build/blob/master/public/javascripts/control.js#L81-L99 - does that sound right? I can address this in about 12h from now. |
depends if you're applying a class based on whether short exists or not. in most browsers something like
should work |
i'm p cool w that. @lognaturel ? |
Works for me! Thanks for that good iteration!! |
Add support for short label and guidance as per #242 and discussions on ODK Slack.
A few impressions:
Form builder draggable widget
Enketo preview
Collect form
Attached
A minimal form with one text field with short and guidance, and one without, as shown in screenshots as .odkbuild and .xml and exported .xlsx. The xslx discards short and guidance but shows that this PR will at least not break build2xlsform.
Short guidance.zip
Related
This change is