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

Explanation of buttons (on hover?) #136

Closed
antonio1475 opened this issue Aug 7, 2022 · 7 comments
Closed

Explanation of buttons (on hover?) #136

antonio1475 opened this issue Aug 7, 2022 · 7 comments
Labels
documentation Improvements or additions to documentation enhancement Improvement on an existing feature good first issue Good for newcomers ui
Milestone

Comments

@antonio1475
Copy link

Currently, the buttons in the automations list aren't self-explanatory:

image

I would expect at least a description on mouse hover over the icons. I really don't know what clicking each button will do.

@asosnovsky
Copy link
Owner

That's a good idea. I'll try to add something on my next round of UI improvements!

@asosnovsky asosnovsky added documentation Improvements or additions to documentation enhancement Improvement on an existing feature good first issue Good for newcomers and removed triage labels Aug 7, 2022
@asosnovsky asosnovsky added this to the Version 1 milestone Aug 7, 2022
@asosnovsky asosnovsky added the ui label Aug 14, 2022
@asosnovsky
Copy link
Owner

Take a look at the new release v0.6.1

@chrisduma
Copy link

Hello i would like to contribute to the description on the buttons on hover

@asosnovsky
Copy link
Owner

asosnovsky commented Aug 19, 2022

Hi @ChrizDuma I've already implemented a hover over for this in the last release.

But take a look at this on getting the dev stack up https://github.com/asosnovsky/Shortumation/wiki/Development and this for any issues I think are easy starts https://github.com/asosnovsky/Shortumation/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

Will appreciate all the help :)

@asosnovsky
Copy link
Owner

asosnovsky commented Aug 29, 2022

@ChrizDuma if you still want to help, this issue here is a good starter! #146

you basically need to add a validator and cast it's type here https://github.com/asosnovsky/Shortumation/tree/main/webapp/src/types

then you need a sun editor condition node here https://github.com/asosnovsky/Shortumation/tree/main/webapp/src/components/ConditionEditor

e.g. trigger editor

export const TriggerEditor: Editor<TriggerCondition> = ({
onChange,
condition,
langStore,
}) => {
return (
<>
<InputText
label={langStore.get("TRIGGER_ID")}
value={condition.id}
onChange={(id) =>
onChange({
...condition,
id,
})
}
/>
</>
);
};

then add sun as an option here

case "condition":
return [
"or",
"and",
"not",
"state",
"device",
"numeric_state",
"template",
"time",
"trigger",
"zone",
] as AutomationNodeSubtype<"condition">[];

I would do this, but I am trying to get a few other things implemented first XD

fyi, for visual testing create a storybook for sun condition here
https://github.com/asosnovsky/Shortumation/blob/416d88b965db3e562c0b07f5be06adb584005148/webapp/src/components/ConditionEditor/ConditionNodeBase.stories.tsx

Any help is a great help :D

@chrisduma
Copy link

chrisduma commented Aug 29, 2022 via email

@asosnovsky
Copy link
Owner

@ChrizDuma Typescirpt+React for the UI, python for the backend, please see https://github.com/asosnovsky/Shortumation/wiki/Development#prequesites

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement Improvement on an existing feature good first issue Good for newcomers ui
Projects
Development

No branches or pull requests

3 participants