open-ux-tools
open-ux-tools copied to clipboard
TBI - (fiori-elements-writer): Remove dependency on 'sap.fe.templates' for custom page V4
Description (include screenshots)
Feedback from our V4 Fiori elements colleagues about changes to the V4 generated projects (regardless of UI5 version):
- The UI5 dependencies should depend on
sap.fe.corefor custom page, otherwise in V4 should depend onsap.fe.templatesin the manifest.json - Remove the manifest.json dependency on
sap.ushell, it shouldn't be needed. - The generated flpSandbox.html should pre-load
sap.fe.coreandsap.fe.templatesfor better performance where possible.
Value
Align with best practice recommendations from V4 Fiori elements.
Architecture Elaboration
Does it requires architecture elaboration?
Notes
Tasks
- [ ] Task 1
FYI @tobiasqueck. Might be some middleware updates required as part of this for the flpSandbox.html update.
@nlunets could you please check this one. I am aware that you are the source for this but I don't think the requirements above are correct, I think it should be more like
sap.fe.templatesshould still be used for LROPsap.fe.coreshould be used instead ofsap.fe.templatesif a custom page project is generated- ushell should not be in the manifest (that is correct)
- the test/flp.html should contain templates (and core) to have the best preview expierence - keep in mind the flp.html is only used for local preview, not productively
Yes @tobiasqueck you are correct
@tobiasqueck @nlunets @ianquigley-sap a few additions:
- propose to keep any changes to the preview html files out-of-scope here as their generation is soon be obsolete as we can create them on the fly in the preview middleware, and changes will be done there instead
- this BLI has a dependency to an FPM writer enhancement to also maintain the lib section when adding pages, e.g. adding
sap.fe.templateswhen creating a floorplan page like the list report, and addingsap.fe.corefor FPM custom pages.
Would this be something you can take together with this BLI as both have to be delivered in sync or shall I create a separate BLI for it?