Skip to content

1207 convert cca wizard to react #1216

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

Draft
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

Mletter1
Copy link
Collaborator

@Mletter1 Mletter1 commented Apr 2, 2025

No description provided.

@Mletter1 Mletter1 linked an issue Apr 2, 2025 that may be closed by this pull request
@Mletter1 Mletter1 marked this pull request as draft April 2, 2025 19:18
@Mletter1 Mletter1 force-pushed the 1207-convert-cca-wizard-to-react branch from 9683435 to e69785b Compare April 4, 2025 22:59
@Mletter1 Mletter1 force-pushed the 1207-convert-cca-wizard-to-react branch from 7e3a36b to 91f37af Compare May 15, 2025 23:41
@Mletter1 Mletter1 force-pushed the 1207-convert-cca-wizard-to-react branch 2 times, most recently from 5a22858 to a3d9ae7 Compare June 4, 2025 19:28
@Mletter1 Mletter1 force-pushed the 1207-convert-cca-wizard-to-react branch from 2616b0a to 2665f6a Compare June 30, 2025 16:41
@Mletter1 Mletter1 force-pushed the 1207-convert-cca-wizard-to-react branch from c17918a to 7bde842 Compare July 18, 2025 20:21
@Mletter1 Mletter1 force-pushed the 1207-convert-cca-wizard-to-react branch from 58ee95d to b402882 Compare July 31, 2025 20:22
@Mletter1 Mletter1 changed the title DRAFT: 1207 convert cca wizard to react 1207 convert cca wizard to react Aug 7, 2025
@Mletter1 Mletter1 force-pushed the 1207-convert-cca-wizard-to-react branch from 845b0ee to 4a86c1e Compare August 7, 2025 17:07
Copy link
Collaborator

@alexsielicki alexsielicki Aug 13, 2025

Choose a reason for hiding this comment

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

Filename should probably be CCAWizardSlice (first C capitalized)?

export const selectAttributes = (state: RootState) => state.cCAWizard.attributes;
export const selectScaleInputs = (state: RootState) => state.cCAWizard.scaleInputs;
export const selectMarking = (state: RootState) => state.cCAWizard.marking;
export const selectDescription = (state: RootState) => state.cCAWizard.marking;
Copy link
Collaborator

Choose a reason for hiding this comment

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

selectDescription is selecting marking instead of description

export const selectScaleInputs = (state: RootState) => state.cCAWizard.scaleInputs;
export const selectMarking = (state: RootState) => state.cCAWizard.marking;
export const selectDescription = (state: RootState) => state.cCAWizard.marking;
export const selectName = (state: RootState) => state.cCAWizard.marking;
Copy link
Collaborator

Choose a reason for hiding this comment

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

selectName is also selecting marking

<div className="form-group mt-3">
<div className="form-check pl-1">
<label>
<input type="checkbox" data-bind="checked: scale_inputs" /> Scale to unit variance
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks like it's still using knockout code (data-bind) and is not hooked up to Redux state.

import client from "js/slycat-web-client";
import fileUploader from "js/slycat-file-uploader-factory";
import * as dialog from "js/slycat-dialog";
import { REMOTE_AUTH_LABELS } from "../../../../utils/ui-labels";
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you can import utils with "utils/ui-labels" since webpack is set to look in web-server as its root

Copy link
Collaborator

@alexsielicki alexsielicki left a comment

Choose a reason for hiding this comment

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

@Mletter1 left a few comments. Looks great.

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.

Convert CCA wizard to react
2 participants