-
Notifications
You must be signed in to change notification settings - Fork 786
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
Add tabs for challenges #4385
base: master
Are you sure you want to change the base?
Add tabs for challenges #4385
Conversation
tabs_for_challenge.mp4 |
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.
LGTM! Works as Expected
@@ -1,6 +1,30 @@ | |||
<section class="ev-sm-container ev-view challenge-container"> | |||
<p class="text-med-black fs-30 no-margin">All Challenges</p> | |||
<!-- tabs for challenges --> |
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.
When you are on the ongoing challenge tab, the api for all the challenges will be called. Modify it, so that the challenges relevant to the tab are shown
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.
@gautamjajoo I think it's necessary to call all the api's so that we can show the number of challenges in each tab. I implemented the approach of calling the api for one specific tab considering it as default tab, whenever the page is loaded for the first time and then call api when we switch tabs. However, the problem is that if I only call the api for default tab, it won't show me the number of challenges on the other tabs.
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.
@gchhablani Should we display the number of challenges on the tabs? This is a tradeoff between UI vs loading time
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #4385 +/- ##
==========================================
- Coverage 72.93% 69.28% -3.65%
==========================================
Files 83 20 -63
Lines 5368 3572 -1796
==========================================
- Hits 3915 2475 -1440
+ Misses 1453 1097 -356
... and 64 files with indirect coverage changes
... and 64 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
No description provided.