Skip to content
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

Revised plan UI #11086

Merged
merged 4 commits into from
Dec 13, 2023
Merged

Revised plan UI #11086

merged 4 commits into from
Dec 13, 2023

Conversation

naltatis
Copy link
Member

@naltatis naltatis commented Dec 11, 2023

fixes #11044

  • ✂︎ removed initial "no plans" screen
  • 🔘 added active/inactive toggle (save on toggle, preparing for multiple/recurring plans)
  • 💾 plan updates are only saved on explicit user action (activate/apply)

Mobile
Bildschirmfoto 2023-12-11 um 23 47 44

Large

plan.ui.mp4

Todos

  • adjust tests

\cc @VolkerK62 @GrimmiMeloni

@VolkerK62
Copy link
Contributor

nur als Idee:
Anzeige der Ladeleistung, auch wenn der Plan noch nicht aktiv ist (die ist ja unabhängig der Plan Einstellungen)
Z.B. CHARGING TIME @ 11.0kW

@naltatis naltatis merged commit cddea4f into master Dec 13, 2023
6 checks passed
@naltatis naltatis deleted the fix/planner_ui branch December 13, 2023 13:37
naltatis added a commit that referenced this pull request Dec 13, 2023
* revised plan ui

* adjust tests

* add german translation
@andig
Copy link
Member

andig commented Dec 13, 2023

@naltatis brauchst du dafür nicht wie besprochen ein neues GetPlan Api für nicht aktive Pläne? Oder hast du dir das selbst gebaut?

@naltatis
Copy link
Member Author

Du meinst für das active/inactive? Solange das nur ein Plan ist, macht der Toggle Button einfach ein DELETE bzw. POST und der Form-Zustand wird in der UI gehalten. Damit kommen wir auch erst mal aus. Sobald wir mehrere Pläne haben, muss die active Info aber auf jeden Fall in die API.

@andig
Copy link
Member

andig commented Dec 13, 2023

Nein. Ich meine, dass ich auch für einen inaktiven Plan einen Forecast sehen wollen würde bevor ich den aktiviere. Gerade das war eine Stärke der alten Logik. Dafür muss GetPlan bzw. GET /loadpoint/plan mit den entsprechenden Parametern versorgt werden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ladeplanung: Speichern/Anwenden-Button statt Auto-Save
3 participants