-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Setup wizard: Add separate step for persistence #2431
Conversation
#1930 Bundle Size — 10.58MiB (+0.09%).Warning Bundle contains 2 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
Bundle analysis report Branch mherwege:wizard-persistence Project dashboard |
@mherwege this is an excellent idea. I haven’t tested it on a real system, and I haven’t proofed your code. But conceptually it is a big improvement over prior. And certainly better than an always install addon finder. Thanks for this. .. Just one question though: you did want to do something about country specific addons, so I wonder how that would fit in this concept? |
I am not sure about the best approach for that just yet. I see 3 classifications for addons:
1 and 3 are maintained in code in the webui. 2 is maintained by the binding developer. Region and country could fit in 1 or 2, but at the moment I am tempted to go 2 for it. It shouldn't be a list maintained by the maintainers, but should be suggested from the binding metadata. |
Fully agree, but I am afraid there is none. The description on the persistence selection page is hand crafted in the webui code. And if that is available, it will default to it. What it is showing here is what was shown before this PR (with the addition of the icon if that works properly, now defaulting to the addon type icon). The |
997486e
to
d560462
Compare
The |
I’ll have a look at the add-on logos soon. 👍 Probably the setup wizard should open the quick start guide after finishing? |
c3bedb9
to
872fbcd
Compare
Done and fine on wider screens. I am unhappy about the link for smaller screens, but that is a documentation issue. |
See https://community.openhab.org/t/solar-forecast-pv/137681/157?u=mherwege Does it make sense to also include in memory db in the proposed persistence strategies? |
As a user of solar pv forecast, I would say yes. Personally I would suggest rrd4j as the default for persisting past data series (on file), and in memory for persisting future data series (NOT on file). |
4e26225
to
78582b9
Compare
Removed inmemory persistence from the wizard as there is no agreement on openhab/openhab-addons#16496. Without it, it would not be fully configured and this would require extra steps in the wizard, not part of this PR. |
DCO fails because of revert commit. |
Signed-off-by: Mark Herwege <[email protected]>
Signed-off-by: Mark Herwege <[email protected]>
Signed-off-by: Mark Herwege <[email protected]>
Signed-off-by: Mark Herwege <[email protected]>
Signed-off-by: Mark Herwege <[email protected]>
Signed-off-by: Mark Herwege <[email protected]>
Signed-off-by: Mark Herwege <[email protected]>
Signed-off-by: Mark Herwege <[email protected]>
This reverts commit 4e26225.
Signed-off-by: Mark Herwege <[email protected]>
78582b9
to
93c4ae0
Compare
@mherwege I guess you have seen my PR to the add-on logo component? |
@mherwege Can you please put the primary IP address config into a follow-up PR? |
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
@mherwege I have created mherwege#3 to your branch, please merge it using rebase merge. My add-on logo component was not working because it only supported lazy loading, I have updated the component to make lazy loading optional. Theoretically you need to rebase this PR, however please don't do, I don't want to re-apply the changes from my PR. Once I merge this PR here, the icons will work properly in the main branch. |
Signed-off-by: Mark Herwege <[email protected]>
Sorry, I missed this and pushed something. I will revert abnd put it in a separate PR. |
Thanks. |
Setup-wizard add separate step for persistence: Review changes
OK, I hope I have done things right. I merged your PR from the github web UI. |
These are on the overview page as well and cause some trouble with the get started button. Signed-off-by: Florian Hotze <[email protected]>
Signed-off-by: Florian Hotze <[email protected]>
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.
LGTM, thanks!
Looks really nice with the add-on logos now.
FYI some change from my PR got lost somehow, I just re-applied it 👍
There has been quite a bit of discussion lately on improving the first installation experience.
This has been reflected in openhab/openhab-core#4103 and https://community.openhab.org/t/ideas-for-new-openhab-installation-experience/154042/43?u=mherwege
This PR addresses two of the topics discussed:
It starts from the premise that the list of recommended addons is maintained (as before) in the webui repository (and not in a 'always suggest' suggestion finder).
The PR creates the groundwork to implement more fine grained suggestions in the setup wizard. It allows having separate steps for types of addons or specific addons. It also makes it possible to have extra text for identified addons as part of the setup wizard.
At the moment, only persistence is split out in a separate step (and no persistence will be offered in the main wizard addon selection window anymore).
This could be enhance to other types or recommendations in the future, but I want to start this small.
Addon selection now also allows unselecting addons on the shown list, without branching out to a separate window. That is still possible to add addons not in the original lists.
@florian-h05 I use the addon logo component as implemented in #2402 in this PR, but none of the logos load. Can you help me understand why?
Here are some screenshots to show how it looks like with this PR:
@andrewfg @jimtng I would appreciate your feedback on this.