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

feat: macOS setup experience - install software and run a script #23267

Merged
merged 48 commits into from
Oct 28, 2024

Commits on Sep 30, 2024

  1. Configuration menu
    Copy the full SHA
    1cac6ff View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2024

  1. Configuration menu
    Copy the full SHA
    c255525 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    60bc54d View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Configuration menu
    Copy the full SHA
    05e271a View commit details
    Browse the repository at this point in the history
  2. SwiftDialog interface (#22321)

    SwiftDialog interface for use in orbit. Built for the upcoming out of box experience later this sprint
    
    ---------
    
    Co-authored-by: Jahziel Villasana-Espinoza <[email protected]>
    dantecatalfamo and jahzielv authored Oct 2, 2024
    Configuration menu
    Copy the full SHA
    cf8b3cd View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2024

  1. fix: add some missing columns to migration (#22671)

    > No issue, just updating an existing migration
    
    # Checklist for submitter
    
    If some of the following don't apply, delete the relevant line.
    
    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    - [x] Input data is properly validated, `SELECT *` is avoided, SQL
    injection is prevented (using placeholders for values in statements)
    - For database migrations:
    - [x] Checked schema for all modified table for columns that will
    auto-update timestamps during migration.
    - [x] Confirmed that updating the timestamps is acceptable, and will not
    cause unwanted side effects.
    - [x] Ensured the correct collation is explicitly set for character
    columns (`COLLATE utf8mb4_unicode_ci`).
    - [x] Manual QA for all new/changed functionality
    jahzielv authored Oct 4, 2024
    Configuration menu
    Copy the full SHA
    9598b76 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2024

  1. Configuration menu
    Copy the full SHA
    d3508f6 View commit details
    Browse the repository at this point in the history
  2. feat: orbit SE status endpoint (#22678)

    > Related issue: #22637
    
    # Checklist for submitter
    
    If some of the following don't apply, delete the relevant line.
    
    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    - [x] Changes file added for user-visible changes in `changes/`,
    `orbit/changes/` or `ee/fleetd-chrome/changes`.
    See [Changes
    files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
    for more information.
    - [x] Input data is properly validated, `SELECT *` is avoided, SQL
    injection is prevented (using placeholders for values in statements)
    - [x] Added/updated tests
    - [x] Manual QA for all new/changed functionality
    jahzielv authored Oct 7, 2024
    Configuration menu
    Copy the full SHA
    0a4107c View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. Configuration menu
    Copy the full SHA
    ab1b66e View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. Configuration menu
    Copy the full SHA
    4e2791a View commit details
    Browse the repository at this point in the history
  2. Install software setup experience UI (#22651)

    relates to #22373
    
    This implements the UI for the install software setup experience in the
    UI. This includes:
    
    **updating the nav sidebar**
    
    
    ![image](https://github.com/user-attachments/assets/91928a23-13cc-430b-b207-ba226df32b86)
    
    **creating a new install software card**
    
    
    ![image](https://github.com/user-attachments/assets/8b4a9495-4119-4360-9f31-53ac41b83316)
    
    **select software modal for selecting which software to install**
    
    
    ![image](https://github.com/user-attachments/assets/a3b4b786-ab8e-42b2-8feb-4b2a83e69af9)**
    
    
    - [x] Changes file added for user-visible changes in `changes/`,
    `orbit/changes/` or `ee/fleetd-chrome/changes`.
    - [x] Manual QA for all new/changed functionality
    ghernandez345 authored Oct 9, 2024
    Configuration menu
    Copy the full SHA
    3729b4b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3c7d672 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6707a8b View commit details
    Browse the repository at this point in the history
  5. feat: updates to orbit to handle setup experience flow (#22752)

    > Related issue: #22376
    
    # Checklist for submitter
    
    If some of the following don't apply, delete the relevant line.
    
    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    - [x] Manual QA for all new/changed functionality
    - For Orbit and Fleet Desktop changes:
    - [x] Orbit runs on macOS, Linux and Windows. Check if the orbit
    feature/bugfix should only apply to one platform (`runtime.GOOS`).
    - [ ] Manual QA must be performed in the three main OSs, macOS, Windows
    and Linux.
    - [ ] Auto-update manual QA, from released version of component to new
    version (see [tools/tuf/test](../tools/tuf/test/README.md)).
    jahzielv authored Oct 9, 2024
    Configuration menu
    Copy the full SHA
    a512b13 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2024

  1. Configuration menu
    Copy the full SHA
    33e7fc3 View commit details
    Browse the repository at this point in the history
  2. add UI for uploading setup experience script (#22691)

    relates to #22374
    
    > NOTE: we still need integration with the API which will be done in
    another PR.
    
    >NOTE: Please review #22651 first,
    as this PR is based off of that branch.
    
    This adds the UI for uploading a setup experience script. this includes:
    
    **setup experience script uploader:**
    
    
    ![image](https://github.com/user-attachments/assets/bec00594-9519-48a9-bce5-d90d282ad5fb)
    
    **script card:**
    
    
    ![image](https://github.com/user-attachments/assets/35549f1c-c280-4293-8e4e-e36e2a3df16c)
    
    **delete script modal:**
    
    
    ![image](https://github.com/user-attachments/assets/90be6bd3-6807-4adb-8709-2ec5893f7fad)
    
    **script run preview:**
    
    
    ![image](https://github.com/user-attachments/assets/cb874986-e0eb-4e6e-bab3-b8325394894c)
    
    
    
    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    - [x] Changes file added for user-visible changes in `changes/`,
    `orbit/changes/` or `ee/fleetd-chrome/changes`.
    - [ ] Added/updated tests
    - [x] Manual QA for all new/changed functionality
    ghernandez345 authored Oct 10, 2024
    Configuration menu
    Copy the full SHA
    d034683 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6af7c23 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Configuration menu
    Copy the full SHA
    fc697a2 View commit details
    Browse the repository at this point in the history
  2. Feat UI api integration setup experieince (#22856)

    relates to #22817
    
    API integration and some polish for the UI of the setup experience
    feature.
    ghernandez345 authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    3468adf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    db407d5 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. UI tests for setup experience (#22861)

    set of tests for some important UI flows of the setup experience install
    software and scripts.
    ghernandez345 authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    d953350 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5228a5f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b42f5ff View commit details
    Browse the repository at this point in the history
  4. feat: orbit notification for indicating setup experience should run (#…

    …22843)
    
    > Related issue: #22662
    
    # Checklist for submitter
    
    If some of the following don't apply, delete the relevant line.
    
    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    - [x] Input data is properly validated, `SELECT *` is avoided, SQL
    injection is prevented (using placeholders for values in statements)
    - [x] Added/updated tests
    - [x] If database migrations are included, checked table schema to
    confirm autoupdate
    - For database migrations:
    - [x] Checked schema for all modified table for columns that will
    auto-update timestamps during migration.
    - [x] Confirmed that updating the timestamps is acceptable, and will not
    cause unwanted side effects.
    - [x] Ensured the correct collation is explicitly set for character
    columns (`COLLATE utf8mb4_unicode_ci`).
    - [x] Manual QA for all new/changed functionality
    - For Orbit and Fleet Desktop changes:
    - [x] Orbit runs on macOS, Linux and Windows. Check if the orbit
    feature/bugfix should only apply to one platform (`runtime.GOOS`).
    - [ ] Manual QA must be performed in the three main OSs, macOS, Windows
    and Linux.
    - [ ] Auto-update manual QA, from released version of component to new
    version (see [tools/tuf/test](../tools/tuf/test/README.md)).
    
    ---------
    
    Co-authored-by: dantecatalfamo <[email protected]>
    Co-authored-by: Dante Catalfamo <[email protected]>
    3 people authored Oct 14, 2024
    Configuration menu
    Copy the full SHA
    b6cb8bc View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Configuration menu
    Copy the full SHA
    9d7f51e View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. Configuration menu
    Copy the full SHA
    54438a6 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. Configuration menu
    Copy the full SHA
    6646c6d View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Configuration menu
    Copy the full SHA
    d5689dd View commit details
    Browse the repository at this point in the history
  2. feat: swift dialog UI for setup experience (#22972)

    > Related issues: #22383, #22384
    
    # Checklist for submitter
    
    If some of the following don't apply, delete the relevant line.
    
    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    - [x] Changes file added for user-visible changes in `changes/`,
    `orbit/changes/` or `ee/fleetd-chrome/changes`.
    See [Changes
    files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
    for more information.
    - [x] Manual QA for all new/changed functionality
    - For Orbit and Fleet Desktop changes:
    - [x] Orbit runs on macOS, Linux and Windows. Check if the orbit
    feature/bugfix should only apply to one platform (`runtime.GOOS`).
    - [ ] Manual QA must be performed in the three main OSs, macOS, Windows
    and Linux.
    - [ ] Auto-update manual QA, from released version of component to new
    version (see [tools/tuf/test](../tools/tuf/test/README.md)).
    jahzielv authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    0da28fd View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2024

  1. Configuration menu
    Copy the full SHA
    8838630 View commit details
    Browse the repository at this point in the history
  2. fix to PUT /setup_experience/software and GET /setup_experience/softw…

    …are endpoints (#23074)
    
    This PR fixes two issues:
    
    1. `PUT /setup_experience/software` will now take the correct json body
    of `software_title_ids` to update the software to install during setup
    experience
    
    2. include the `install_during_setup` attribute on the software titles
    software package results from `GET /setup_experience` endpoint
    ghernandez345 authored Oct 23, 2024
    Configuration menu
    Copy the full SHA
    68cdcde View commit details
    Browse the repository at this point in the history
  3. Fix UI build (#23129)

    quick fix to fix the ui build failing
    ghernandez345 authored Oct 23, 2024
    Configuration menu
    Copy the full SHA
    d5e11a2 View commit details
    Browse the repository at this point in the history
  4. fix: various setup experience bugs (#23091)

    > No issue, just stuff I noticed while testing
    
    # Checklist for submitter
    
    If some of the following don't apply, delete the relevant line.
    
    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    - [x] Manual QA for all new/changed functionality
    - For Orbit and Fleet Desktop changes:
    - [x] Orbit runs on macOS, Linux and Windows. Check if the orbit
    feature/bugfix should only apply to one platform (`runtime.GOOS`).
    - [ ] Manual QA must be performed in the three main OSs, macOS, Windows
    and Linux.
    - [ ] Auto-update manual QA, from released version of component to new
    version (see [tools/tuf/test](../tools/tuf/test/README.md)).
    jahzielv authored Oct 23, 2024
    Configuration menu
    Copy the full SHA
    aaea56d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d1c3b5b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    37584ad View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. fix: make icon not as big (#23176)

    > No issue, just a bug found during testing
    
    # Checklist for submitter
    
    If some of the following don't apply, delete the relevant line.
    
    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    - [x] Manual QA for all new/changed functionality
    - For Orbit and Fleet Desktop changes:
    - [ ] Orbit runs on macOS, Linux and Windows. Check if the orbit
    feature/bugfix should only apply to one platform (`runtime.GOOS`).
    - [ ] Manual QA must be performed in the three main OSs, macOS, Windows
    and Linux.
    - [ ] Auto-update manual QA, from released version of component to new
    version (see [tools/tuf/test](../tools/tuf/test/README.md)).
    
    Updated icon size:
    ![LWScreenShot 2024-10-24 at 7 15
    13 AM](https://github.com/user-attachments/assets/cd1b0640-f602-414a-937d-c481b1ec7a44)
    jahzielv authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    d6bd705 View commit details
    Browse the repository at this point in the history
  2. fix: update integration tests to use state machine, fix 402 error (#2…

    …3181)
    
    > No issue, just some cleanup/bugfix
    
    # Checklist for submitter
    
    If some of the following don't apply, delete the relevant line.
    
    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    See [Changes
    files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
    for more information.
    - [x] Added/updated tests
    - [x] Manual QA for all new/changed functionality
    jahzielv authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    25ecc72 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. Fix issues around selecting software to install (#23223)

    relates to #23180
    
    fixes up some issues with showing the correct number of selected
    software to install and also with the table row selection behaviour.
    
    We've had to create a couple new props on the `TableContainer`
    component; one called `defaultSelectedRows` and the other
    `persistSelectedRows`.
    
    
    `defaultSelectedRows` will allow you to specify the default rows that
    are selected in the table on the initial render. This is done with an
    object with the key being the index of the row and the value being a
    boolean.
    
    ```tsx
    // the first and third rows will be selected in this case
    <TableContainer
      defaultSelectedRows={{0: true, 2: true}}
      ...
    />
    ```
    
    `persistSelectedRows` will allow the row selections to persist across
    search query changes. This defaults to false.
    
    ---------
    
    Co-authored-by: gillespi314 <[email protected]>
    ghernandez345 and gillespi314 authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    990206c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2d7f9a3 View commit details
    Browse the repository at this point in the history
  3. feat: update setup experience guide with new functionality (#23203)

    > Related issue: #23161
    
    # Checklist for submitter
    
    If some of the following don't apply, delete the relevant line.
    
    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    - [x] Manual QA for all new/changed functionality
    
    ---------
    
    Co-authored-by: Rachael Shaw <[email protected]>
    jahzielv and rachaelshaw authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    0b21fb8 View commit details
    Browse the repository at this point in the history
  4. Fix UI download set script (#23227)

    quick fix to allow downloading setup script
    ghernandez345 authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    8af926a View commit details
    Browse the repository at this point in the history
  5. cleanup warnings

    ghernandez345 committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    ef45ced View commit details
    Browse the repository at this point in the history
  6. Reintroduce missing tests, fix empty slice case (#23206)

    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    - [x] Input data is properly validated, `SELECT *` is avoided, SQL
    injection is prevented (using placeholders for values in statements)
    - [x] Added/updated tests
    dantecatalfamo authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    33eea56 View commit details
    Browse the repository at this point in the history
  7. fix: correct the guide (#23261)

    > No issue, but realized guide had some mistakes
    
    # Checklist for submitter
    
    If some of the following don't apply, delete the relevant line.
    
    <!-- Note that API documentation changes are now addressed by the
    product design team. -->
    
    - [x] Manual QA for all new/changed functionality
    jahzielv authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    9fb657a View commit details
    Browse the repository at this point in the history
  8. chore: dump sql schema

    jahzielv committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    0bf3317 View commit details
    Browse the repository at this point in the history
  9. fix: migration order

    jahzielv committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    3bc1d50 View commit details
    Browse the repository at this point in the history
  10. fix: migration order

    jahzielv committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    8625854 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2024

  1. Configuration menu
    Copy the full SHA
    9f32642 View commit details
    Browse the repository at this point in the history