-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move the ALKiln trigger variable code out of the styled package #355
Comments
Not sure of other options to place the code, but I feel pretty sure that the al_package_unstyled.yml shouldn't override any screen parts, especially since One option would just be to clearly document this as something who wants to use the unstyled code will need to manually add. We could also move this snippet of HTML into a template so it's better encapsulated and can be centrally updated for both the styled/unstyled variations. |
I like the idea of a template. What file would that live in? Regarding documentation, it's there already 👍 . [That said, that alone doesn't seem like a complete solution. If someone can figure out a better way to do this that's more flexible than |
I think the template could go in |
IMO this should remain open. Switching to a template is pretty straight forward, shouldn't break anything existing, and would make using it with unstyled a bit easier. The only thing that makes it take more than 5 minutes is aligning docs, but it's still a small task. |
Eh, that's fine. I think this is describing a vanishingly small use case, but I'm fine to let someone else give it a try. |
@plocket can we describe why the trigger variable is still needed, and are there any other upstream options we should push for? |
Makes it easier to be reused in unstyled interviews, while keeping all styled and unstyled interviews the same. Fixes #355.
I made a quick patch for this. Sorry, I've probably spent more time responding to the issue than it took to just change it. The trigger variable is needed because docassemble's encoding of field ids and names on generic objects still uses We have additional things that we might add to this template as well, as in SuffolkLITLab/ALKiln#582. I don't think it's something that we can push upstream. |
Jonathan at some recent point mentioned that he would consider changing some of the stuff to do with |
docassemble-AssemblyLine/docassemble/AssemblyLine/data/questions/al_visual.yml
Lines 51 to 52 in be4a8dd
This is currently in al_visual.yml, which is excluded from al_package_unstyled.yml. That means that developers that use that unstyled version have to do extra work to set up for ALKiln testing. In addition, this doesn't do anything visual to the interviews.
Is there a better place to put this code?
The text was updated successfully, but these errors were encountered: