fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.17k stars 434 forks source link

Make scripts editable in Fleet UI #24195

Open eugkuo opened 5 days ago

eugkuo commented 5 days ago

Goal

User story
As an admin,
I want to be able to edit scripts within the Fleet UI
so that I can quickly fix typos or other errors without having to download and re-upload the script.

Key result

Original requests

Context

Changes

Product

Engineering

ℹ️  Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".

QA

Risk assessment

Manual testing steps

  1. Step 1
  2. Step 2
  3. Step 3

Testing notes

Confirmation

  1. [ ] Engineer (@____): Added comment to user story confirming successful completion of QA.
  2. [ ] QA (@____): Added comment to user story confirming successful completion of QA.
eugkuo commented 5 days ago

FYI @noahtalerman I've added this prototype to show editing scripts from the script library page.

eugkuo commented 7 hours ago

FYI (to discuss) @noahtalerman I've updated the design and the prototype.

After thinking about this a little bit, I wanted to be clearer to people when text has been entered into the edit field (in case they accidentally did something.

So when people first hit the modal, the button at the bottom is . If they enter text or delete text the button changes to with a secondary button.

A few questions:

  1. Do we do any checks on the syntax or formatting of scripts when people are entering text or saving it?
  2. What type of error mesesaging could we see here? I've rendered a success message. If we have standard messages for this lmk (and if we have standard messages can I say "use standard messaging" without rendering them?

Thanks! Hope you had a great Thanksgiving!