Skip to content

Cy/step2 codecov onboarding #92432

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

calvin-codecov
Copy link
Contributor

@calvin-codecov calvin-codecov commented May 28, 2025

@calvin-codecov calvin-codecov requested a review from a team as a code owner May 28, 2025 19:22
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 28, 2025
);
}

const InlineCodeSnippet = styled('span')`
Copy link
Contributor Author

@calvin-codecov calvin-codecov May 29, 2025

Choose a reason for hiding this comment

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

I wasn't able to find a way to get the typical CodeSnippet component to achieve this inline sub-snippet look so I styled it separately as I think their functionality is ultimately, inherently different

@@ -20,6 +24,8 @@ export default function TestsOnboardingPage() {
},
[setSearchParams]
);
const [selectedUploadPermission, setSelectedUploadPermission] =
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we move these inside the step component? Or are we expecting these to be used in this component in the near future?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This value controls what other steps after step 2 are displayed so we'll need it at a higher level


// HARDCODED VALUES FOR TESTING
const FULL_TOKEN = '91b57316-b1ff-4884-8d55-92b9936a05a3';
const TRUNCATED_TOKEN = '********05a3';
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm assuming we'll receive the token truncated from the backend yeah?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, we'll make sure that we do not receive the full token from the backend after generation

// this value is only used when showing token details
const [showFullToken, setShowFullToken] = useState(true);
const [showWarning, setShowWarning] = useState(true);
const headerText = tct(`Step [step]: add token as [repositorySecret]`, {
Copy link
Contributor

Choose a reason for hiding this comment

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

Step a) is capitalized but b) isn't, could we keep both consistent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants