Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Harshit28j
Copy link

@Harshit28j Harshit28j commented Jun 20, 2024

No description provided.

@Harshit28j
Copy link
Author

tabs_for_challenge.mp4

Copy link
Member

@Suryansh5545 Suryansh5545 left a 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 -->
Copy link
Member

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

Copy link
Author

@Harshit28j Harshit28j Jun 27, 2024

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.

Copy link
Member

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

frontend/src/css/modules/challenge.scss Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.28%. Comparing base (96968d6) to head (06c5d20).
Report is 1110 commits behind head on master.

❗ 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     
Files Coverage Δ
frontend/src/js/controllers/challengeListCtrl.js 93.75% <100.00%> (-0.94%) ⬇️

... and 64 files with indirect coverage changes

Files Coverage Δ
frontend/src/js/controllers/challengeListCtrl.js 93.75% <100.00%> (-0.94%) ⬇️

... and 64 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be3c597...06c5d20. Read the comment docs.

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.

4 participants