-
Notifications
You must be signed in to change notification settings - Fork 18
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
TaskId #0000 task:implemted popup message for demo version for milestone level 5 #163
base: all-saas-prod
Are you sure you want to change the base?
TaskId #0000 task:implemted popup message for demo version for milestone level 5 #163
Conversation
WalkthroughThe changes involve modifications to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant PracticeComponent
participant MessageDialog
User->>PracticeComponent: Check previous_level
PracticeComponent->>PracticeComponent: Evaluate getSetData.data.previous_level
alt previous_level matches max milestone
PracticeComponent->>MessageDialog: Open dialog with milestone message
end
Tip OpenAI O1 model for chat
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (2)
Files skipped from review as they are similar to previous changes (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
src/views/Practice/Practice.jsx
Outdated
@@ -248,6 +248,19 @@ const Practice = () => { | |||
); | |||
} | |||
setLocalData("previous_level", getSetData.data.previous_level); | |||
if (getSetData.data.previous_level === "m5") { |
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.
why this is hardcoded here? this should come from the config
}; | ||
|
||
export const API_CONSTANTS = { | ||
API_URL: 'http://localhost:3001/', | ||
API_URL: "http://localhost:3001/", |
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.
What is this URL for?
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.
from beginning it s the same
src/config/config.js
Outdated
<> | ||
You have reached the final milestone for the demo. To explore additional | ||
levels, please{" "} | ||
<a href="mailto:[email protected]">click here</a> to contact |
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.
this should come from the env configuration
src/config/config.js
Outdated
}; | ||
|
||
export const MILESTONE_LEVEL = { | ||
DEMO_MAX_MILESTONE_LEVEL: "m5", |
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.
this should not be hardcoded here. this should be the part of env config
src/views/Practice/Practice.jsx
Outdated
@@ -248,6 +249,15 @@ const Practice = () => { | |||
); | |||
} | |||
setLocalData("previous_level", getSetData.data.previous_level); | |||
if ( | |||
getSetData.data.previous_level === |
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.
Use optional chaining operator
Quality Gate passedIssues Measures |
…one level 5
Summary by CodeRabbit