Skip to content

Conversation

@andig
Copy link
Member

@andig andig commented Jan 11, 2026

Fix #26596

TODO

  • read/write userflow (read only mode)
  • improve i18n strings
  • add e2e tests

Out of scope

  • show qr code

/cc @Maschga

@andig andig added the infrastructure Basic functionality label Jan 11, 2026
@andig andig marked this pull request as draft January 11, 2026 13:15
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@andig
Copy link
Member Author

andig commented Jan 21, 2026

Friedly ping regarding ui

@Maschga
Copy link
Collaborator

Maschga commented Jan 21, 2026

What needs to be changed here in the UI?

@naltatis
Copy link
Member

@Maschga replace the yaml editor in ui with custom form based ui (json). relevant fields are shipid, certificate.public and certificate.private (masked). Since these fields are auto-generated on startup the user usually does not have to do anything there. that's why I'd show these values as readonly and make the user enter an explicit "edit mode". editing this may break existing integrations with established connection (grid operator).

If you like you can do this. Should follow our existing pattern of yaml>json conversions 😄

@Maschga
Copy link
Collaborator

Maschga commented Jan 21, 2026

Thanks for the instructions. Will create a PR for the UI.

@Maschga Maschga mentioned this pull request Jan 21, 2026
4 tasks
andig and others added 2 commits January 22, 2026 09:09
Co-authored-by: Michael Geers <michael@geers.tv>
Co-authored-by: Michael Geers <michael@geers.tv>
optional
>
<PropertyField :id="formId('shipid')" v-model="values.shipid" type="String" />
</FormRow>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested Order:

shipid
certs
-- advanced --
port
interfaces

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fine with me. I wasn't sure how to arrange them, thought that changing ports or interfaces might happen a little more often.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My assumption would be that a regular user touches non of this - ever 😄

},
textarea() {
return ["accessToken", "refreshToken", "identifiers"].includes(this.property);
return ["accessToken", "refreshToken", "identifiers", "interfaces"].includes(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return ["accessToken", "refreshToken", "identifiers", "interfaces"].includes(
return this.array || ["accessToken", "refreshToken"].includes(

@naltatis
Copy link
Member

Do we want to add QR Code as part of this PR as well? See #26882 (comment) by @CiNcH83

This could solve the user flow issue. When opening the eebus modal we could show only the description text and the QR-code - no form, delete and edit options. If the users confirms that he really wants to manual configure (I know what I'm doing) he enters edit-mode (the regular edit form).

@andig do we have the qr-code string (see comment) at hand? If we would publish this along side the config (see Status discussion above) generating the QR code in ui is easy.

@andig
Copy link
Member Author

andig commented Jan 22, 2026

Do we want to add QR Code as part of this PR as well?

No. Our library version doesn't support that.

@naltatis
Copy link
Member

Ok, that let's save that for a later pr.

@andig
Copy link
Member Author

andig commented Jan 22, 2026

Added config/ski to published values

@Maschga
Copy link
Collaborator

Maschga commented Jan 22, 2026

@naltatis Do we already have such a read/write user flow elsewhere?

Co-authored-by: Michael Geers <michael@geers.tv>
@naltatis
Copy link
Member

@naltatis Do we already have such a read/write user flow elsewhere?

Do you mean my suggestion that fields are read-only at start?

I just look at how we implemented SMA/SEMP. There we decided to make all fields advanced since no manual configuration should be required for most people. We could keep it simple and do exactly the same here.

  • Make all fields advanced.
  • Add a danger-disclaimer-box "No changes required. Only change if you really know what you're doing" to the top of the advanced section.
  • Expand the above description and add required system info as above the "show advanced" block. Once we have the QR-code we could also add it there.

@DerAndereAndi What text info should we present the user in this dialog? ship id, ski, fingerprints, brand? What is the eebus recommended or commonly used end-user naming? QR-code will follow later.

Bildschirmfoto 2026-01-23 um 08 26 44 Bildschirmfoto 2026-01-23 um 08 26 47

@Maschga
Copy link
Collaborator

Maschga commented Jan 23, 2026

Do you mean my suggestion that fields are read-only at start?

Yes. :)

There we decided to make all fields advanced since no manual configuration should be required for most people. We could keep it simple and do exactly the same here.

I like this idea. It is simple and follows a pattern that is already used. I'll create a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Basic functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup EEBUS by default

5 participants