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

fix: update useCourseContext #2309

Merged
merged 4 commits into from
Sep 27, 2023
Merged

fix: update useCourseContext #2309

merged 4 commits into from
Sep 27, 2023

Conversation

valerydluski
Copy link
Contributor

@valerydluski valerydluski commented Sep 26, 2023

🟢 Add deploy label if you want to deploy this Pull Request to staging environment

🧑‍⚖️ Pull Request Naming Convention

  • Title should follow Conventional Commits
  • Do not put issue id in title
  • Do not put WIP in title. Use Draft PR functionality
  • Consider to add area:* label(s)
  • I followed naming convention rules

🤔 This is a ...

  • New feature
  • Bug fix
  • Performance optimization
  • Refactoring
  • Test Case
  • Documentation update
  • Other

🔗 Related issue link

#2308

💡 Background and solution

Describe the big picture of your changes here

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Database migration is added or not needed
  • Documentation is updated/provided or not needed
  • Changes are tested locally

@valerydluski valerydluski linked an issue Sep 26, 2023 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Sep 26, 2023

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 151.48 KB (-2 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Fifty-three Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (500 KB)
/ 285.27 KB 436.75 KB 87.35% (🟢 -0.28%)
/404 222.5 KB 373.98 KB 74.80% (🟢 -0.06%)
/admin/courses 374.28 KB 525.76 KB 105.15% (🟢 -0.02%)
/admin/disciplines 320.53 KB 472.01 KB 94.40% (🟢 -0.04%)
/admin/discord-server 347.35 KB 498.83 KB 99.77% (🟢 -0.04%)
/admin/events 347.92 KB 499.4 KB 99.88% (🟢 -0.04%)
/admin/mentor-registry 371.7 KB 523.18 KB 104.64% (+/- <0.01%)
/admin/notifications 387.06 KB 538.53 KB 107.71% (🟡 +0.16%)
/admin/prompts 327.71 KB 479.19 KB 95.84% (🟢 -0.04%)
/admin/registrations 323.28 KB 474.76 KB 94.95% (🟢 -0.04%)
/admin/tasks 431.85 KB 583.33 KB 116.67% (🟡 +0.14%)
/admin/user-group 371.64 KB 523.12 KB 104.62% (🟢 -0.02%)
/admin/users 269.02 KB 420.5 KB 84.10% (🟢 -0.04%)
/applicants 306.39 KB 457.87 KB 91.57% (🟢 -0.05%)
/course/admin/cross-check-table 424.69 KB 576.16 KB 115.23% (🟡 +0.17%)
/course/admin/events 428.19 KB 579.67 KB 115.93% (+/- <0.01%)
/course/admin/interviews 370.57 KB 522.05 KB 104.41% (🟢 -0.03%)
/course/admin/mentors 376.26 KB 527.74 KB 105.55% (🟡 +0.05%)
/course/admin/stage-interviews 372.24 KB 523.72 KB 104.74% (🟢 -0.02%)
/course/admin/students 384.69 KB 536.17 KB 107.23% (🟡 +0.01%)
/course/admin/tasks 402.71 KB 554.19 KB 110.84% (🟡 +0.17%)
/course/admin/users 370.27 KB 521.75 KB 104.35% (🟢 -0.02%)
/course/interview/[type]/feedback 335.78 KB 487.26 KB 97.45% (🟢 -0.03%)
/course/mentor/auto-confirm 225.03 KB 376.51 KB 75.30% (🟢 -0.04%)
/course/mentor/confirm 288.67 KB 440.15 KB 88.03% (🟢 -0.04%)
/course/mentor/dashboard 392.5 KB 543.98 KB 108.80% (🟡 +0.04%)
/course/mentor/expel-student 292.78 KB 444.26 KB 88.85% (🟢 -0.04%)
/course/mentor/feedback 294.36 KB 445.83 KB 89.17% (🟢 -0.04%)
/course/mentor/interview-technical-screening 261.71 KB 413.19 KB 82.64% (🟢 -0.06%)
/course/mentor/interview-wait-list 330.89 KB 482.37 KB 96.47% (🟢 -0.03%)
/course/mentor/interviews 342.69 KB 494.17 KB 98.83% (🟢 -0.04%)
/course/mentor/students 247.08 KB 398.56 KB 79.71% (🟢 -0.04%)
/course/schedule 469.82 KB 621.3 KB 124.26% (+/- <0.01%)
/course/score 329.21 KB 480.69 KB 96.14% (🟢 -0.13%)
/course/student/auto-test 381.91 KB 533.39 KB 106.68% (+/- <0.01%)
/course/student/auto-test/task 381.83 KB 533.31 KB 106.66% (+/- <0.01%)
/course/student/cross-check-review 409.47 KB 560.95 KB 112.19% (+/- <0.01%)
/course/student/cross-check-submit 425.6 KB 577.08 KB 115.42% (+/- <0.01%)
/course/student/dashboard 388.56 KB 540.04 KB 108.01% (+/- <0.01%)
/course/student/interviews 299.04 KB 450.52 KB 90.10% (🟢 -0.03%)
/course/submit-scores 404.44 KB 555.92 KB 111.18% (🟡 +0.13%)
/course/team-distributions 374.16 KB 525.64 KB 105.13% (+/- <0.01%)
/course/teams 417.91 KB 569.38 KB 113.88% (🟢 -0.01%)
/cv/edit 341.48 KB 492.96 KB 98.59% (🟢 -0.09%)
/gratitude 287.26 KB 438.74 KB 87.75% (🟢 -0.04%)
/heroes 289.83 KB 441.31 KB 88.26% (🟢 -0.04%)
/job 223.17 KB 374.65 KB 74.93% (🟢 -0.05%)
/profile 405.14 KB 556.62 KB 111.32% (🟡 +0.01%)
/profile/connection-confirmed 262.91 KB 414.39 KB 82.88% (🟢 -0.09%)
/profile/notifications 323.5 KB 474.98 KB 95.00% (🟢 -0.04%)
/registry/epamlearningjs 286.31 KB 437.79 KB 87.56% (🟢 -0.04%)
/registry/mentor 336.8 KB 488.28 KB 97.66% (🟢 -0.10%)
/registry/student 336.8 KB 488.28 KB 97.66% (🟢 -0.10%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 5% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@valerydluski valerydluski marked this pull request as ready for review September 27, 2023 09:15
Copy link
Contributor

@aaliakseyenka aaliakseyenka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great work Valery

@valerydluski valerydluski merged commit 3408039 into master Sep 27, 2023
6 checks passed
@valerydluski valerydluski deleted the issue/2308 branch September 27, 2023 11:32
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.

Bug with tabs on course change
2 participants