frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Move Editing of Dashboard to config page

Open zsarnett opened this issue 2 years ago • 9 comments

Breaking change

Proposed change

CleanShot 2022-05-10 at 10 36 55

Type of change

  • [ ] Dependency upgrade
  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [ ] New feature (thank you!)
  • [ ] Breaking change (fix/feature causing existing functionality to break)
  • [ ] Code quality improvements to existing code or addition of tests

Example configuration


Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

Checklist

  • [ ] The code change is tested and works locally.
  • [ ] There is no commented out code in this PR.
  • [ ] Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

zsarnett avatar May 10 '22 15:05 zsarnett

I feel like this is a bit inconsistent.

CleanShot 2022-05-11 at 08 11 34

We use the pencil icon

CleanShot 2022-05-11 at 08 12 13@2x

in Automations, Scenes, Scripts & Zones; and could not find any other occurrence using an edit button with "edit" as a text in a data table.

Is there a specific reason this one is different?

frenck avatar May 11 '22 06:05 frenck

I agree with Frank. We should be consistent and use the pencil icon here.

spacegaier avatar May 12 '22 08:05 spacegaier

How about this on desktop (prototype). On desktop we show the buttons on hover. I've also changed the button to View, because with the different options added to the table you can open different kind of things. CleanShot 2022-05-12 at 14 32 10@2x

And this on mobile (prototype). On smaller devices in an overflow menu. CleanShot 2022-05-12 at 14 34 23@2x

matthiasdebaat avatar May 12 '22 12:05 matthiasdebaat

Why only show on hover? For the other tables (automations, scripts, ...) we always show the icons. Overflow for narrow screens is a good idea.

spacegaier avatar May 12 '22 12:05 spacegaier

Why should we only do what we have already done? I agree with consistency though. We just need to make sure to update the others to be consistent

Showing on hover is a good way to clean up a dashboard on load. Less Busy. Just need to make sure it's accessible

zsarnett avatar May 12 '22 12:05 zsarnett

Why should we only do what we have already done?

If you want my vote, please don't go the route of big textual buttons in data tables, I might be acceptable in the English language, but especially with translations that can become too large to be friendly (and grow unexpectedly in size). I would prefer the icon in those cases instead.

However, that is a different discussion, not sure if that should be solved in this PR. I like the suggestion made by @matthiasdebaat, feels natural to do; but maybe we should overhaul that in a separate PR for all data tables.

frenck avatar May 12 '22 13:05 frenck

I do agree with using the icons for edit instead. I didn't look at anything before adding this. Going to change to icon before merging then do the Matthias design in a different PR

zsarnett avatar May 12 '22 13:05 zsarnett

I do agree with using the icons for edit instead.

Aah ok, my misunderstanding / bad. 👍

frenck avatar May 12 '22 13:05 frenck

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

github-actions[bot] avatar Aug 10 '22 14:08 github-actions[bot]

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

github-actions[bot] avatar Nov 22 '22 21:11 github-actions[bot]

@zsarnett Do you plan on moving that forward with the pencil icon for the edit mode?

spacegaier avatar Nov 29 '22 22:11 spacegaier

We'll close this PR for now. This should originate from out of UX.

../Frenck

frenck avatar Oct 09 '23 08:10 frenck