Skip to content

Conversation

@opoliarush
Copy link
Contributor

@opoliarush opoliarush commented Apr 1, 2024

Impl #747

src/actions.ts Outdated
Comment on lines 49 to 50
REGISTRATION: "REGISTRATION",
SET_REGISTRATION_RESULT: "SET_REGISTRATION_RESULT",
Copy link
Collaborator

@kshmidt-digma kshmidt-digma Apr 16, 2024

Choose a reason for hiding this comment

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

As we already have GLOBAL/REGISTER, consider some other name for the old message: POSTHOG_REGISTER?

Suggested change
REGISTRATION: "REGISTRATION",
SET_REGISTRATION_RESULT: "SET_REGISTRATION_RESULT",
REGISTER: "REGISTRER",
SET_REGISTRER_RESULT: "SET_REGISTER_RESULT",

import { KeyboardEvent, useEffect } from "react";
import { Controller, useForm } from "react-hook-form";
import { sendUserActionTrackingEvent } from "../../../../utils/actions/sendUserActionTrackingEvent";
import { TextField } from "../../../common/RegistrationDialog/TextField"; // TODO: change when new env will be merged
Copy link
Collaborator

Choose a reason for hiding this comment

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

Check

};

const handleLogoutClick = () => {
window.sendMessageToDigma({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add analytics

onClose: () => void;
}

export interface MenuItem {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please reuse type from MenuListProps of Navigation/common/MenuList component


// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
export const Default: Story = {
args: {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
args: {}

@@ -379,7 +177,7 @@ export const RecentActivity = (props: RecentActivityProps) => {

const handleConfirmEnvironmentDeletion = () => {
window.sendMessageToDigma({
action: actions.DELETE_ENVIRONMENT,
action: actions.DELETE_ENVIRONMENT_V2,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Check if we need v2?

OPEN_REGISTRATION_DIALOG: "OPEN_REGISTRATION_DIALOG",
DELETE_ENVIRONMENT_V2: "DELETE_ENVIRONMENT_V2",
CREATE_ENVIRONMENT: "CREATE_ENVIRONMENT",
ENVIRONMENT_CREATED: "ENVIRONMENT_CREATED"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
ENVIRONMENT_CREATED: "ENVIRONMENT_CREATED"
SET_CREATE_ENVIRONMENT_RESULT: "SET_CREATE_ENVIRONMENT_RESULT"

opoliarush and others added 22 commits April 17, 2024 13:29
Co-authored-by: Kyrylo Shmidt <119138536+kshmidt-digma@users.noreply.github.com>
* Fix documentation and environment instructions
* Fix documentation and environment instructions

* Update styles

Redirect to sign in after sign up
Hide Close button in Environment instructions after its creation
kshmidt-digma
kshmidt-digma previously approved these changes Apr 19, 2024
@kshmidt-digma kshmidt-digma merged commit f599c81 into main Apr 19, 2024
@kshmidt-digma kshmidt-digma deleted the feature/create-new-env-flow branch April 19, 2024 13:39
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.

3 participants