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

Arc 2730 connection wizard #224

Merged
merged 17 commits into from
Dec 19, 2023
Merged

Arc 2730 connection wizard #224

merged 17 commits into from
Dec 19, 2023

Conversation

rachellerathbone
Copy link
Collaborator

@rachellerathbone rachellerathbone commented Dec 13, 2023

What's in this PR?
Added the Connection Wizard and a bit of refactoring.

Screenshot 2023-12-14 at 11 01 20 pm

Why
So folks looking at the admin page with no servers, have a way to kick off a connection! Refactoring was because I had to pull the request for jenkins servers up one level to determine whether to render the connection panel or connection wizard.

Added feature flags
renovated_jenkins_for_jira_config_flow

Affected issues
Arc-2730

How has this been tested?
Locally and unit tests

What's Next?
Some more content updates

@@ -54,7 +54,7 @@ export const environmentSettings = {

const AppContainer = styled.div`
color: #172B4D;
margin: 24px 36px 24px 0;
margin: ${token('space.200')}${token('space.400')} ${token('space.300')} ${token('space.0')};
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Needed to adjust a smidge so figured I'd convert to the Atlassian design system spacing.

import { css } from '@emotion/css';
import { token } from '@atlaskit/tokens';

export const orderedList = css`
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Pulled these out and renamed coz they're being used in a couple of places now.

@@ -54,7 +54,7 @@ export const environmentSettings = {

const AppContainer = styled.div`
color: #172B4D;
margin: 24px 36px 24px 0;
margin: ${token('space.200')} ${token('space.400')} ${token('space.300')} ${token('space.0')};
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Had to tweak this a little so figured I'd convert to using the Atlassian space styling while I was at it.

const ConnectionWizard = (): JSX.Element => {
const handleNavigateToServerNameScreen = (e: React.MouseEvent) => {
e.preventDefault();
// TODO - add onclick in build new server name
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This will be done when I work on the next screen.

@@ -1,14 +1,171 @@
import React from 'react';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Some tests in here a new but others have been yanked out of ConnectionPanel coz I had to hoist up some of the requests so made more sense to test from the parent component.

@rachellerathbone rachellerathbone marked this pull request as ready for review December 13, 2023 23:14
@rachellerathbone rachellerathbone requested a review from a team as a code owner December 13, 2023 23:14
@joshkay10 joshkay10 merged commit c279c0b into main Dec 19, 2023
1 check passed
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 this pull request may close these issues.

2 participants