Portofino 5.3.2 ui build

46 views
Skip to first unread message

Smoc George

unread,
Sep 9, 2022, 5:14:11 AM9/9/22
to manydesigns-portofino
Hey! I just downloaded the portofino-5.3.2-src, built the ui submodule using mvn package command and then tried to use it in portofino-5.3.2. I moved all the files from .\ui\dist\ui (ignoring the folders assets and pages) to the ROOT folder of portofino-5.3.2. After logging in, i tried to use the Administration dropdown and observed that the portofino-upstairs option was no longer available (the others were still there). I also tried accessing it at: localhost:8080/portofino-upstairs, but this gave me as response the message "Page not found! Error: Unknown component type 'portofino-upstairs' for path '/portofino-upstairs'". Can somebody explain me what I am doing wrong in the aforementioned process?

Alessio Stalla

unread,
Sep 9, 2022, 7:15:56 AM9/9/22
to manydesign...@googlegroups.com
Hi,

I don't understand clearly what you're trying to accomplish. When you speak of the ROOT folder of portofino-5.3.2, do you mean the ROOT folder of the Tomcat application you downloaded from SourceForge?
That application already comes with the UI, so there's no need to recompile and copy it. Unless you're modifying the UI and want to use the modified version, but then the process would be different.

Alessio

On Fri, 9 Sept 2022 at 11:14, Smoc George <george...@gmail.com> wrote:
Hey! I just downloaded the portofino-5.3.2-src, built the ui submodule using mvn package command and then tried to use it in portofino-5.3.2. I moved all the files from .\ui\dist\ui (ignoring the folders assets and pages) to the ROOT folder of portofino-5.3.2. After logging in, i tried to use the Administration dropdown and observed that the portofino-upstairs option was no longer available (the others were still there). I also tried accessing it at: localhost:8080/portofino-upstairs, but this gave me as response the message "Page not found! Error: Unknown component type 'portofino-upstairs' for path '/portofino-upstairs'". Can somebody explain me what I am doing wrong in the aforementioned process?

--
You received this message because you are subscribed to the Google Groups "manydesigns-portofino" group.
To unsubscribe from this group and stop receiving emails from it, send an email to manydesigns-port...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/manydesigns-portofino/557f2ac9-32e5-4e5e-8298-cc352b417839n%40googlegroups.com.

Alessio Stalla

unread,
Sep 9, 2022, 7:22:07 AM9/9/22
to manydesigns-portofino
PS if you haven't done already, could you fill in the Portofino Survey? https://forms.gle/QL3GKBbUsDAZGHmR7
It only takes a few minutes and it doesn't ask for any personal or company data to send spam/commercial offerings.

Smoc George

unread,
Sep 9, 2022, 7:47:49 AM9/9/22
to manydesigns-portofino
Yes, I was talking about that ROOT folder. My goal is to modify UI a litttle bit and use the modified version. How can this be done correctly?
Should I modify portofino-src, build it as a whole and use frontend subfolder from target folder of demo-tt?

Alessio Stalla

unread,
Sep 9, 2022, 8:43:41 AM9/9/22
to manydesign...@googlegroups.com
No, there's no need to do things manually.

First, the application you download from SourceForge is generated from the portofino-war-archetype, as you can see here https://github.com/ManyDesigns/Portofino/wiki/Building-from-source#one-click
So, if you generate another application with the Maven archetype, you can customize it to some extent, without having to modify Portofino's source code.

Then, the issue becomes: are the modifications you want to do to the UI possible using only the extension points provided by the UI library, or do you have to build a new version of the library?
In the first case, you're done – just do your changes in the application generated with the archetype.
In the latter case, you're on new territory; you may want to follow the same approach as the demo-tt application, so have a Maven project with two modules, one the Portofino application and the other the modified UI. The Portofino application will then load the UI library from your filesystem rather than from the NPM registry.

Merely copying dist/ui does not work because dist/ui contains the standalone upstairs application, which is not the same as the Angular application that's generated by the archetype.

Hope this makes it clearer.

Alessio

You received this message because you are subscribed to a topic in the Google Groups "manydesigns-portofino" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/manydesigns-portofino/QkAjBfKoB2o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to manydesigns-port...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/manydesigns-portofino/28bfadf9-53a9-4cca-b094-c810f6a3e1b0n%40googlegroups.com.

Smoc George

unread,
Sep 12, 2022, 3:27:04 AM9/12/22
to manydesign...@googlegroups.com
Thank you again for your answer! The main modification to be done to the UI is due to some of the issues that could be observed. I ran the application on Windows 10 and observed the following:
1. The  <additional-child path=[path_to_login] segment=":auth"/> from action.xml is always generated wrong and leads to this error on backend:
org.apache.commons.vfs2.FileSystemException: Could not find file with URI "/swagger_generator/portofino-5.3.2/apache-tomcat-9.0.62/webapps/ROOT/WEB-INF/actions/login" because it is a relative path, and no base URI was provided.   
2. After solving this issue manually I logged in and accessed http://localhost:8080/portofino-upstairs/permissions and got an error message saying that
t.permissions is undefined
(also it cannot be closed even if pressed on ok)
3.  I used wizard to connect to a postgresql db, accessed http://localhost:8080/portofino-upstairs/tables and selected a table from the saved configuration of postgresql db.
This resulted in a page with 2 blank snack-bar-container objects and nothing about the selected table. In the console there were the following errors:
- n.permissionMap is undefined
- this.tableInfo.table.columns is undefined
Also at this step the error from step 2 persists




--
Cu stimă,
Elevul Smoc George

Alessio Stalla

unread,
Sep 26, 2022, 9:19:02 AM9/26/22
to manydesign...@googlegroups.com
It looks like you may have found some bugs. I'll check ASAP if I can reproduce them. For sure, you are not expected to fix them yourself by rebuilding the UI.

Alessio Stalla

unread,
Sep 30, 2022, 8:25:03 AM9/30/22
to manydesign...@googlegroups.com
Probably the root cause is this known bug https://github.com/ManyDesigns/Portofino/issues/566
I'll try solving it and seeing what happens

Alessio Stalla

unread,
Oct 23, 2022, 3:56:43 AM10/23/22
to manydesigns-portofino
Hi, we've released Portofino 5.3.3, could you see if it solves your issue?

Alessio
Reply all
Reply to author
Forward
0 new messages