-
Notifications
You must be signed in to change notification settings - Fork 1
Feedback #1
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
base: feedback
Are you sure you want to change the base?
Feedback #1
Conversation
| } | ||
|
|
||
| handleChange(event) { | ||
| let value = Number(event.target.value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do validation if not a number is found back from value.
| <lightning-vertical-navigation-section label="Resources"> | ||
| <lightning-vertical-navigation-item | ||
| label="PD1 Exam Guide" | ||
| name="pdexamguide" | ||
| href="https://trailhead.salesforce.com/content/learn/trails/platform-developer-i-certification-study-guide"> | ||
| </lightning-vertical-navigation-item> | ||
| <lightning-vertical-navigation-item | ||
| label="Focus on Force" | ||
| name="focusonforce" | ||
| href="https://focusonforce.com/salesforce-platform-developer-1-certification-practice-exams/"> | ||
| </lightning-vertical-navigation-item> | ||
| <lightning-vertical-navigation-item | ||
| label="Salesforce Mentor" | ||
| name="salesforcementor" | ||
| href="https://courses.salesforcementor.com/p/salesforce-development-apex-fundamentals"> | ||
| </lightning-vertical-navigation-item> | ||
| </lightning-vertical-navigation-section> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try making the resources dynamic but using an iterate an a JS object to control the values.
| <lightning-button variant="brand" label="Calculate" slot="actions" disabled class="slds-var-m-left_x-small"></lightning-button> | ||
| </template> | ||
| <template lwc:else> | ||
| <lightning-button variant="brand" label="Calculate" slot="actions" onclick={calculateScore}></lightning-button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try removing the calculateScore button and whenever the values are changed it automatically calculates.
| let procAutomWeightedScore = this.processAutomationScore * processAutomationWeight; | ||
| let userIntWeightedScore = this.userInterfaceScore * userInterfaceWeight; | ||
| let testDebWeightedScore = this.testDebugDeployScore * testDebugDeployWeight; | ||
| this.certificationScore = Math.round(devFundWeightedScore + procAutomWeightedScore + userIntWeightedScore + testDebWeightedScore); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a variables boolean for if they passed or failed. THen you can easily use that in methods like showReosurcesIfFailed.
| this.valudateFieldValues(); | ||
| } | ||
|
|
||
| calculateScore() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try making some sort of toast or confetti when they pass
👋! GitHub Classroom created this pull request as a place for your teacher to leave feedback on your work. It will update automatically. Don’t close or merge this pull request, unless you’re instructed to do so by your teacher.
In this pull request, your teacher can leave comments and feedback on your code. Click the Subscribe button to be notified if that happens.
Click the Files changed or Commits tab to see all of the changes pushed to
mainsince the assignment started. Your teacher can see this too.Notes for teachers
Use this PR to leave feedback. Here are some tips:
mainsince the assignment started. To leave comments on specific lines of code, put your cursor over a line of code and click the blue + (plus sign). To learn more about comments, read “Commenting on a pull request”.main. Click a commit to see specific changes.For more information about this pull request, read “Leaving assignment feedback in GitHub”.
Subscribed: @ManoolK