Skip to content

feat: add info button for scripts permissions page#66

Merged
Ventus218 merged 6 commits intodevelopfrom
feature/add-permissions-info
Sep 1, 2025
Merged

feat: add info button for scripts permissions page#66
Ventus218 merged 6 commits intodevelopfrom
feature/add-permissions-info

Conversation

@MarkRagg
Copy link
Contributor

Tell me if you like also to add this button on the tasks and automations permissions page, where there are the tasks and automations lists.

<div class="modal-box max-w-sm">
<h2 class="card-title mb-2">Scripts permissions info</h2>
<p>
In this page, an admin can modify the editlist (task/automation), whitelist and blacklist (only for tasks).
Copy link
Contributor

Choose a reason for hiding this comment

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

I won't say "an admin", we can just say "you" as there can be only one admin and he's the only one able to see this page

In this page, an admin can modify the editlist (task/automation), whitelist and blacklist (only for tasks).
</p>
<p>
The admins are not showed in these lists since they already have every permission to modify and execute every task and automation.
Copy link
Contributor

Choose a reason for hiding this comment

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

Here we can say "you", instead of "the admins" for the same reasons stated before

</li>
<li>
<span class="font-bold">Whitelist</span>: a whitelisted user can execute the task
even if he doesn't have the permissions for executing devices inside it.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would refer to user-device permissions as "for executing devices" is not so clear

</li>
<li>
<span class="font-bold">Blacklist</span>: a blacklisted user can't execute the task
even if he has the permissions for executing devices inside it.
Copy link
Contributor

Choose a reason for hiding this comment

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

"for executing devices" same as before

Copy link
Contributor

@Ventus218 Ventus218 left a comment

Choose a reason for hiding this comment

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

About your question I'd say is a good idea to also add a description to user-device permissions page

@Corstor
Copy link
Contributor

Corstor commented Aug 29, 2025

I'd put the info button and dialog in the page where the admin can see all the tasks/automations and not where they manage the permissions of a single script, if you want to do so I'd say split the dialog in two: for tasks just talk about tasks, for automations just talk about automations.

@MarkRagg MarkRagg requested a review from Ventus218 August 30, 2025 07:53
</li>
<li>
<span class="font-bold">Blacklist</span>: a blacklisted user can't execute the task
even if he has the permissions for user-device permissions inside it.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd say "A blacklisted user can't execute the task even if he has all the necessary user-device permissions." And viceversa for the whitelist.

</p>
<p>
By clicking on a user, you are shown a list of device permissions that you can add or remove for the selected user.
The device permission allows the user to use that device.
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd say "allows the user to execute actions of that device"

When a user has all the device permissions required by a task, he can execute it.
</p>
<p>
You are not showed in these lists since you already have every permission to execute every device.
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

@Ventus218 Ventus218 merged commit e25ee54 into develop Sep 1, 2025
3 checks passed
@Ventus218 Ventus218 deleted the feature/add-permissions-info branch September 1, 2025 12:28
@github-actions
Copy link

github-actions bot commented Sep 1, 2025

🎉 This PR is included in version 0.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants