-
Notifications
You must be signed in to change notification settings - Fork 75
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
Implement setting pdfLayoutName
for a layoutSet
#12829
Implement setting pdfLayoutName
for a layoutSet
#12829
Comments
Reviewed this case - will ask for more information tomorrow in refinement before we proceed. |
After a short discussion with Team Apps a suggestion is to only move (and not duplicate) the layout from Open question; should there be a |
Not sure if I understood this correctly. Are you suggesting that it should be possible to chose predefined layoutset as PDF? Is this something you can do in the Process level, when creating a new layout? Could this be something you dragged in the BPMN? Or should you have the opportunity to chose a layoutset and then add as PDF in the settings with a button for example? I'm not entirely sure which settings you need to configure and where, I notice. |
There is only a single layout from a layoutset that can be set as a PDF for that particular layoutset. This is the case since the apps are generating separate PDFs for each data task in the process. We will also need to display different options after assigning a layout as the PDF;
Hope it make sense 😅 And again, not sure that process is the best place to have this setting, but my intuition says so for now 😅 |
@nkylstad |
New suggestion is to separate all these pdf-related actions. The add new, empty designated PDF is suggested to be a button below the
While the excludeFromPdf and This section can also include what components from the layout to exclude from pdf. These will ba added to the array of all components from the layoutset in the settingsfile to exclude from pdf. |
(Disussion points since we cancelled the meeting @framitdavid @nkylstad @bjosttveit @Edavda @RonnyB71 @Magnusrm @standeren ) After looking deeper into the issue, we got some questions that need to be discussed:
From our side, we see two ways to solve custom PDF:We believe that the first one will be the most user-friendly and useful based on the advantages we can see and the cases we can think of. You might have different insights🤔
Both solutions should include the possibility to see the auto-generated PDF. |
Probably not, although there might be a wish for some informative texts in the receipt PDF that are not there in the form pages. I'm sure someone from team apps might have some more insight here, but my understanding is that most of the content will still be summary-components referring to components within the layoutset. So the only addition I see is informative texts, and possibly having a different order/grouping of components. Apart from this, setting components/pages to be excluded from PDF might be enough.
Again probably not. I think this "need" came from the payment task layout. But being able to copy content into the PDF layout as suggested would cover that nicely.
That would be cool! Maybe something we could delay to a second iteration of this, depending on how far Team Apps have come with the new summary component - my understanding is that that component could take over some of this functionality. Someone from team apps would need to comment on that.
Agreed. Some button to open it directly, or at the very least a shortcut to open it in preview, would be a great feature!
I definitely prefer option 1 here as well! |
We're waiting for a demo of Summary 2.0 from the apps team before we decide how to solve it. |
@standeren I suggest we meet later this week to split this issue into multiple parts and clarify our needs, to simplify the implementation process (implement it more step-by-step). We talk short about it on sprint plan today. |
Let's keep it simple and stupid for now. Let's just make it possible to mark a page within a layout set as a PDF page. When the user opens another page and clicks on the "use as pdf", then we can display f.ex "Page 3 is already added as PDF page, do you want to change to this page". 😊 Suggest that we add a pdf-icon to the page accordion if the page is marked as pdf-page. If our user needs more features, let's implement that when we know more about the use cases. |
Good suggestion @framitdavid !👏🏻In addition, can we open an issue to look into the preview button? I still think it's important to allow users to see how the PDF will look, both for the general PDF and when a page is added as a PDF |
Should I implement that new design in this PR then? 🙈 |
Let's follow our own guidelines and do that in a separate PR, to avoid large and long reviews 😄 |
Re-tested all points: Still tested OK:
This is now tested OK, works as expected with no error messages:
This is still an issue, nothing happens visually when adding a new page and then converting it to PDF.
Functionally this is not super critical, as the settings are set correctly, and the text on the button is in fact updated, even though the page is not moved to the bottom as I would expect. I suggest we merge this feature now, and create a follow-up issue to fix this visual problem 😊 Do you agree @standeren? |
Description
Default PDF print layout uses the summary-mode for all existing layout-files. However, it is possible to define a custom PDF layout for a given layoutset.
To do this, an app developer must set the
pdfLayoutName
property inSettings.json
for the layoutset to the desired layout-name.This is something we should support setting in Studio.
Additional Information
Suggested approach is to add a new config panel section "PDF", as already specified in the latest sketches for the forms editor config panel. And then add a switch to that panel for page/layout settings, allowing user to set the selected layout as
pdfLayoutName
. See acceptance criteria section for more details on suggested solution.@Annikenkbrathen can you take a look?
Tasks
Tasks
Acceptance Criterias
pdfLayoutName
.pdfLayoutName
in the current layoutset'sSetting.json
file to the selected layout name.pdfLayoutName
should remove thepdfLayoutName
property from theSettings.json
filepdfLayoutName
property for multiple layouts.pdfLayoutName
property is set for a layout that is not the selected layout, the switch should be disabled, and app developer should be informed of which layout has been set aspdfLayoutName
.The text was updated successfully, but these errors were encountered: