Skip to content

Conversation

@github-classroom
Copy link
Contributor

@github-classroom github-classroom bot commented May 21, 2024

👋! 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 main since the assignment started. Your teacher can see this too.

Notes for teachers

Use this PR to leave feedback. Here are some tips:

  • Click the Files changed tab to see all of the changes pushed to main since 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”.
  • Click the Commits tab to see the commits pushed to main. Click a commit to see specific changes.
  • If you turned on autograding, then click the Checks tab to see the results.
  • This page is an overview. It shows commits, line comments, and general comments. You can leave a general comment below.
    For more information about this pull request, read “Leaving assignment feedback in GitHub”.

Subscribed: @ManoolK

}

handleChange(event) {
let value = Number(event.target.value);

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.

Comment on lines +71 to +87
<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>

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.

Comment on lines +5 to +8
<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>

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);

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() {

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

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