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

Staging/ideaspace #1944

Merged
merged 24 commits into from
Sep 10, 2024
Merged

Staging/ideaspace #1944

merged 24 commits into from
Sep 10, 2024

Conversation

dbradham
Copy link
Collaborator

@dbradham dbradham commented Sep 1, 2024

No description provided.

@dbradham dbradham requested review from a team as code owners September 1, 2024 16:34
Copy link

changeset-bot bot commented Sep 1, 2024

⚠️ No Changeset found

Latest commit: a84cb05

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dbradham
Copy link
Collaborator Author

dbradham commented Sep 1, 2024

@dev-launchers/platform-enablement when you get a chance, we would appreciate your review here!

`;

export const Input = styled.input`
height: 24px;
width: 24px;
/* width: 24px; */
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this commented out?

Copy link
Contributor

Choose a reason for hiding this comment

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

hard-coded pixel width was causing the radio 'circles' to be 'ovals' that were stretched out

@@ -32,13 +32,13 @@ function SubmissionForm() {
);

const getDBInvolveLevel = (involveString) => {
if (involveString.includes('and also believe')) {
if (involveString.includes('to end')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks hacky. Can we change the backend to store this as an enum?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@chungthuang We can, but seems out of scope for this frontend change. We would still need to map the values to an enum.

Do you have a solution in mind that avoids making a comparison like this to get a value to save to the database?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@chungthuang just saw your other comment and updated this

Idea Info
<hr noshade="false" style={{margin: "1rem auto 2rem"}}/>
</atoms.Typography>
const compareValuesToInitial = (values) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you give an example of what are we comparing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@chungthuang this is to check if any form values have been updated.

/>
<atoms.Radio
onChange={(e, label) =>
setFieldValue('involveLevel', label)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we set field to "highly", so we don't need this conversion https://github.com/dev-launchers/dev-launchers-platform/pull/1944/files#r1744700300?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@chungthuang yes thanks for the recommendation here, this is complete.

@@ -139,12 +139,12 @@ function SingleCommentComponent(props) {
</div>
</SingleCommentContent>
<SingleCommentButtons style={{ display: 'flex' }}>
<LikeButton
{/* <LikeButton
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we commenting this out?

@dbradham dbradham merged commit f4f88ca into master Sep 10, 2024
3 checks passed
@dev-launchers-flux
Copy link
Collaborator

🎉 This PR is included in version 2.19.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

7 participants