TaskId #0000 task:implemted popup message for demo version for milestone level 5#163
TaskId #0000 task:implemted popup message for demo version for milestone level 5#163vishnuvinay09 wants to merge 6 commits intoSunbird-ALL:all-saas-prodfrom
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
| ); | ||
| } | ||
| setLocalData("previous_level", getSetData.data.previous_level); | ||
| if (getSetData.data.previous_level === "m5") { |
There was a problem hiding this comment.
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.
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:sunbird@tekditechnologies.com">click here</a> to contact |
There was a problem hiding this comment.
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.
this should not be hardcoded here. this should be the part of env config
src/views/Practice/Practice.jsx
Outdated
| } | ||
| setLocalData("previous_level", getSetData.data.previous_level); | ||
| if ( | ||
| getSetData.data.previous_level === |
There was a problem hiding this comment.
Use optional chaining operator
|



…one level 5
Summary by CodeRabbit