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

Landing page - Packages #1311

Closed
5 tasks done
Madeline-UX opened this issue Jan 31, 2023 · 1 comment · Fixed by #1522
Closed
5 tasks done

Landing page - Packages #1311

Madeline-UX opened this issue Jan 31, 2023 · 1 comment · Fixed by #1522
Assignees

Comments

@Madeline-UX
Copy link
Contributor

Madeline-UX commented Jan 31, 2023

Big Components

  • Cluster section (states: not connected, connected not initialized, connected Initialized)
  • Table of packages (name, version, chips)
  • Connect Cluster UX flow
  • Deploy Cluster UX Flow
  • Navigation (Global and left)

*Ignore - signed stuff

As Ashton I want to be able to connect to a cluster and deploy packages so that I can setup services that my organization needs.

Connec/Initialize Zarf Cluster UX Flow

Connect a Cluster (Kubeconfig available)

Given - the user does not have a cluster connected (initialized with Zarf)
Then - show connect cluster button and disable the deploy package button
When - the user clicks connect cluster
Then - scan kubeconfig for available contexts
And - show a modal that lists the default cluster default (radio button to selected state)
If - User clicks Connect cluster - start to deploy wizard
If - User clicks cancel - return to the main screen. (Packages)

Connect a Cluster (No Kubeconfig)

Given - the user does not have a cluster connected (initialized with Zarf)
Then - show connect cluster button and disable the deploy package button
When - the user clicks connect cluster
Then - scan kubeconfig for available contexts
If - on Linux show a dialog with a button to deploy the init-package (to install k3s)
when - the user clicks deploy init
Then - start to deploy wizard
If - not on linux show a dialog message explaining user needs to create or connect to a cluster to connect.

Initialize a Cluster

Given - the user has a cluster connected
When - a user clicks initialize cluster button
Then - they will be directed to step one of the deploy modal (select package)
And - the user should only see init packages (filter by Zarfinitconfig package type)
When - a user selects the init package
Then - they will be taken through the rest of the deploy flow
... deploy flow
When - the user has deployed the init package
Then - (if failed) stay on deployed page
And - show the error page and recommend user to go to the CLI to get logs
Then - (if successful) show success dialog
Then - redirect to package page (default)
And - Show Cluster Context and details
And - show deployed package is added to package table
And - deploy button is now active

Deploy Zarf Package

Deploy Package

Given - a user has clicked the deploy package button
Then - they will be directed to step one of the deploy modal (select package)
And - then should only see all packages
When - a user selects the package they will be taken through the deploy flow
... deploy flow
When - the user has deployed the package
Then - (if failed) stay on deployed page
And - show the error page and recommend user to go to the CLI to get logs
Then - (if successful) show success
And - redirect the user to the main page where deployed package is added to package table with link to tunnel if needed

Design File

https://www.figma.com/file/MUItIzpzLBLuIyt225Bwgl/Zarf-UI?node-id=1081%3A54952&t=ojULNeuu0CxY2PM1-1

@Madeline-UX Madeline-UX self-assigned this Jan 31, 2023
@Madeline-UX Madeline-UX added the UI label Jan 31, 2023
@github-project-automation github-project-automation bot moved this to New Requests in Zarf Project Board Jan 31, 2023
@Madeline-UX Madeline-UX moved this from New Requests to Needs UX in Zarf Project Board Jan 31, 2023
@Madeline-UX Madeline-UX added this to the Zarf UI milestone Jan 31, 2023
@Madeline-UX Madeline-UX changed the title Cluster Overview/Dashboard Landing page - Packages Mar 28, 2023
@Racer159
Copy link
Contributor

Racer159 commented Mar 28, 2023

An endpoint exists for cluster information but will need the following information added:

cluster-name
k8s-revision

An endpoint exists to list packages.

No endpoint exists for resources - resources will be hardcoded as n/a for the MVP.

No endpoint exists to return all of the kubecontexts - this endpoint will need to be created.

@mike-winberry mike-winberry moved this from Needs UX to Doing Now in Zarf Project Board Mar 29, 2023
@mike-winberry mike-winberry self-assigned this Mar 29, 2023
@mike-winberry mike-winberry moved this from Doing Now to Next Up in Zarf Project Board Mar 29, 2023
mike-winberry added a commit that referenced this issue Mar 30, 2023
…ost to the ClusterSummary. Update types/api.go ClusterSummary to have the Host field. Updated the navdrawer to have the cluster type and host under the Cluster section. Update route/+layout to retrieve clusterSummary. Add back in the error page
@mike-winberry mike-winberry moved this from Next Up to Doing Now in Zarf Project Board Apr 2, 2023
mike-winberry added a commit that referenced this issue Apr 5, 2023
… found and when no packages exist. Created the cluster-table and no cluster connected states
mike-winberry added a commit that referenced this issue Apr 5, 2023
mike-winberry added a commit that referenced this issue Apr 5, 2023
mike-winberry added a commit that referenced this issue Apr 6, 2023
…ternal ambient types. Update svelte kit version to fix high severity vulnerability. Update find.go regexes to search for all init packages and to recurse through the homedirectory searching for init and zarf-packages. Update local-package-table to use the findInHome instead of find (which searches the cwd). added back in the previous package deploy step pages and updated theming. ZarfUI can now find and deploy packages.
mike-winberry added a commit that referenced this issue Apr 6, 2023
…nd to get the User, ClusterName and all contexts for future context switching.
mike-winberry added a commit that referenced this issue Apr 7, 2023
…. Update local-package-table to use findInHome instead of find. Update nav-drawer by refactoring out ssx in subcomponent to ssx var using a class
mike-winberry added a commit that referenced this issue Apr 8, 2023
…te deploy package page terminal with color from design
@Madeline-UX Madeline-UX moved this from Doing Now to Done in Zarf Project Board Apr 10, 2023
mike-winberry added a commit that referenced this issue Apr 11, 2023
## Description
#1311 
...

## Related Issue
#1311
Racer159 added a commit that referenced this issue Apr 18, 2023
## Description
Fixes: #1500 
Fixes: #1311 

## Closes 
Fixes: #964 
Fixes: #807 
Fixes: #794 
Fixes: #1500 
Fixes: #1311

---------

Co-authored-by: Jessy-Morris <[email protected]>
Co-authored-by: Wayne Starr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants