rolling-scopes / rsschool-app

An application for the RS School education process
https://app.rs.school
Mozilla Public License 2.0
9.88k stars 202 forks source link

feat: add certificates countries widget #2498

Closed valerydluski closed 1 week ago

valerydluski commented 1 week ago

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

🧑‍⚖️ Pull Request Naming Convention


🤔 This is a ...

🔗 Related issue link

N/A

💡 Background and solution

image

☑️ Self Check before Merge

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

github-actions[bot] commented 1 week ago

📦 Next.js Bundle Analysis for client

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 111.01 KB (-1 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-six 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)
/ 294.51 KB 405.52 KB 81.10% (🟡 +0.01%)
/404 229.19 KB 340.21 KB 68.04% (🟡 +0.01%)
/admin/courses 390.23 KB 501.25 KB 100.25% (🟡 +0.01%)
/admin/disciplines 335.19 KB 446.21 KB 89.24% (🟡 +0.01%)
/admin/discord-server 361.98 KB 472.99 KB 94.60% (🟡 +0.01%)
/admin/events 362.62 KB 473.64 KB 94.73% (+/- <0.01%)
/admin/mentor-registry 386.4 KB 497.41 KB 99.48% (🟡 +0.01%)
/admin/notifications 401.04 KB 512.06 KB 102.41% (🟡 +0.01%)
/admin/prompts 342.48 KB 453.49 KB 90.70% (🟡 +0.01%)
/admin/registrations 334.07 KB 445.08 KB 89.02% (+/- <0.01%)
/admin/tasks 447.44 KB 558.45 KB 111.69% (🟡 +0.01%)
/admin/user-group 386.05 KB 497.06 KB 99.41% (🟡 +0.01%)
/admin/users 277.16 KB 388.18 KB 77.64% (+/- <0.01%)
/applicants 317.34 KB 428.36 KB 85.67% (🟡 +0.01%)
/course/admin/cross-check-table 474.88 KB 585.89 KB 117.18% (🟡 +0.01%)
/course/admin/events 444.23 KB 555.24 KB 111.05% (🟡 +0.01%)
/course/admin/interviews 384.84 KB 495.85 KB 99.17% (🟡 +0.01%)
/course/admin/mentor-tasks-review 333.95 KB 444.96 KB 88.99% (🟡 +0.01%)
/course/admin/mentors 390.91 KB 501.93 KB 100.39% (+/- <0.01%)
/course/admin/stage-interviews 386.43 KB 497.45 KB 99.49% (🟡 +0.01%)
/course/admin/students 398.93 KB 509.94 KB 101.99% (🟡 +0.01%)
/course/admin/tasks 418.13 KB 529.14 KB 105.83% (🟡 +0.01%)
/course/admin/users 384.86 KB 495.88 KB 99.18% (+/- <0.01%)
/course/interview/[type]/feedback 349.2 KB 460.21 KB 92.04% (🟡 +0.01%)
/course/mentor/auto-confirm 231.47 KB 342.49 KB 68.50% (+/- <0.01%)
/course/mentor/confirm 298.28 KB 409.3 KB 81.86% (🟡 +0.01%)
/course/mentor/dashboard 406.53 KB 517.55 KB 103.51% (🟡 +0.01%)
/course/mentor/expel-student 302.24 KB 413.26 KB 82.65% (🟡 +0.01%)
/course/mentor/feedback 304.32 KB 415.33 KB 83.07% (+/- <0.01%)
/course/mentor/interview-technical-screening 270.53 KB 381.55 KB 76.31% (🟡 +0.01%)
/course/mentor/interview-wait-list 343.42 KB 454.44 KB 90.89% (+/- <0.01%)
/course/mentor/interviews 354.12 KB 465.14 KB 93.03% (+/- <0.01%)
/course/mentor/students 254.38 KB 365.39 KB 73.08% (🟡 +0.01%)
/course/schedule 488.19 KB 599.2 KB 119.84% (🟡 +0.01%)
/course/score 343.19 KB 454.2 KB 90.84% (🟡 +0.01%)
/course/stats 291.07 KB 402.09 KB 80.42% (🟡 +0.02%)
/course/student/auto-test 396.24 KB 507.26 KB 101.45% (🟡 +0.01%)
/course/student/auto-test/task 396.16 KB 507.17 KB 101.43% (🟡 +0.01%)
/course/student/cross-check-review 489.25 KB 600.27 KB 120.05% (🟡 +0.01%)
/course/student/cross-check-submit 505.58 KB 616.59 KB 123.32% (🟡 +0.01%)
/course/student/dashboard 402.04 KB 513.06 KB 102.61% (🟡 +0.01%)
/course/student/interviews 308.3 KB 419.32 KB 83.86% (🟡 +0.01%)
/course/submit-scores 418.6 KB 529.62 KB 105.92% (🟡 +0.01%)
/course/team-distributions 387.23 KB 498.25 KB 99.65% (🟡 +0.01%)
/course/teams 433.62 KB 544.63 KB 108.93% (+/- <0.01%)
/cv/[uuid] 249.08 KB 360.09 KB 72.02% (🟡 +0.01%)
/cv/edit 353.49 KB 464.5 KB 92.90% (🟡 +0.01%)
/gratitude 296.7 KB 407.72 KB 81.54% (🟡 +0.01%)
/heroes 403.08 KB 514.1 KB 102.82% (🟡 +0.01%)
/job 175.42 KB 286.43 KB 57.29% (+/- <0.01%)
/profile 413.7 KB 524.71 KB 104.94% (🟡 +0.01%)
/profile/connection-confirmed 270.69 KB 381.71 KB 76.34% (🟡 +0.01%)
/profile/notifications 335.47 KB 446.49 KB 89.30% (+/- <0.01%)
/registry/epamlearningjs 297.71 KB 408.72 KB 81.74% (🟡 +0.01%)
/registry/mentor 347.95 KB 458.97 KB 91.79% (🟡 +0.01%)
/registry/student 347.94 KB 458.96 KB 91.79% (🟡 +0.01%)
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 commented 1 week ago

this work is amazing 🤩

Your reviews are excellent, mate. Working with you is a real pleasure 🤌

github-actions[bot] commented 1 week ago

📦 Next.js Bundle Analysis for client

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Fifty-six 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)
/ 294.51 KB 405.53 KB 81.11% (+/- <0.01%)
/404 229.19 KB 340.21 KB 68.04% (🟡 +0.01%)
/admin/courses 390.23 KB 501.25 KB 100.25% (🟡 +0.01%)
/admin/disciplines 335.19 KB 446.21 KB 89.24% (🟡 +0.01%)
/admin/discord-server 361.98 KB 472.99 KB 94.60% (🟡 +0.01%)
/admin/events 362.62 KB 473.64 KB 94.73% (+/- <0.01%)
/admin/mentor-registry 386.4 KB 497.41 KB 99.48% (🟡 +0.01%)
/admin/notifications 401.04 KB 512.06 KB 102.41% (🟡 +0.01%)
/admin/prompts 342.48 KB 453.49 KB 90.70% (🟡 +0.01%)
/admin/registrations 334.07 KB 445.08 KB 89.02% (+/- <0.01%)
/admin/tasks 447.44 KB 558.45 KB 111.69% (🟡 +0.01%)
/admin/user-group 386.05 KB 497.06 KB 99.41% (🟡 +0.01%)
/admin/users 277.16 KB 388.18 KB 77.64% (+/- <0.01%)
/applicants 317.34 KB 428.36 KB 85.67% (🟡 +0.01%)
/course/admin/cross-check-table 474.88 KB 585.89 KB 117.18% (🟡 +0.01%)
/course/admin/events 444.23 KB 555.25 KB 111.05% (🟡 +0.01%)
/course/admin/interviews 384.84 KB 495.85 KB 99.17% (🟡 +0.01%)
/course/admin/mentor-tasks-review 333.95 KB 444.96 KB 88.99% (🟡 +0.01%)
/course/admin/mentors 390.91 KB 501.93 KB 100.39% (+/- <0.01%)
/course/admin/stage-interviews 386.43 KB 497.45 KB 99.49% (🟡 +0.01%)
/course/admin/students 398.93 KB 509.95 KB 101.99% (🟡 +0.01%)
/course/admin/tasks 418.13 KB 529.15 KB 105.83% (🟡 +0.01%)
/course/admin/users 384.86 KB 495.88 KB 99.18% (+/- <0.01%)
/course/interview/[type]/feedback 349.2 KB 460.22 KB 92.04% (🟡 +0.01%)
/course/mentor/auto-confirm 231.47 KB 342.49 KB 68.50% (+/- <0.01%)
/course/mentor/confirm 298.28 KB 409.3 KB 81.86% (🟡 +0.01%)
/course/mentor/dashboard 406.53 KB 517.55 KB 103.51% (🟡 +0.01%)
/course/mentor/expel-student 302.24 KB 413.26 KB 82.65% (🟡 +0.01%)
/course/mentor/feedback 304.32 KB 415.33 KB 83.07% (+/- <0.01%)
/course/mentor/interview-technical-screening 270.53 KB 381.55 KB 76.31% (🟡 +0.01%)
/course/mentor/interview-wait-list 343.42 KB 454.44 KB 90.89% (🟡 +0.01%)
/course/mentor/interviews 354.12 KB 465.14 KB 93.03% (+/- <0.01%)
/course/mentor/students 254.38 KB 365.39 KB 73.08% (🟡 +0.01%)
/course/schedule 488.19 KB 599.2 KB 119.84% (🟡 +0.01%)
/course/score 343.19 KB 454.2 KB 90.84% (🟡 +0.01%)
/course/stats 291.07 KB 402.09 KB 80.42% (🟡 +0.02%)
/course/student/auto-test 396.24 KB 507.26 KB 101.45% (🟡 +0.01%)
/course/student/auto-test/task 396.16 KB 507.17 KB 101.43% (🟡 +0.01%)
/course/student/cross-check-review 489.25 KB 600.27 KB 120.05% (🟡 +0.01%)
/course/student/cross-check-submit 505.58 KB 616.6 KB 123.32% (🟡 +0.01%)
/course/student/dashboard 402.04 KB 513.06 KB 102.61% (🟡 +0.01%)
/course/student/interviews 308.3 KB 419.32 KB 83.86% (🟡 +0.01%)
/course/submit-scores 418.6 KB 529.62 KB 105.92% (🟡 +0.01%)
/course/team-distributions 387.23 KB 498.25 KB 99.65% (🟡 +0.01%)
/course/teams 433.62 KB 544.63 KB 108.93% (+/- <0.01%)
/cv/[uuid] 249.08 KB 360.09 KB 72.02% (🟡 +0.01%)
/cv/edit 353.49 KB 464.5 KB 92.90% (🟡 +0.01%)
/gratitude 296.7 KB 407.72 KB 81.54% (🟡 +0.01%)
/heroes 403.08 KB 514.1 KB 102.82% (🟡 +0.01%)
/job 175.42 KB 286.43 KB 57.29% (+/- <0.01%)
/profile 413.7 KB 524.71 KB 104.94% (🟡 +0.01%)
/profile/connection-confirmed 270.69 KB 381.71 KB 76.34% (🟡 +0.01%)
/profile/notifications 335.47 KB 446.49 KB 89.30% (🟡 +0.01%)
/registry/epamlearningjs 297.71 KB 408.72 KB 81.74% (🟡 +0.01%)
/registry/mentor 347.95 KB 458.97 KB 91.79% (🟡 +0.01%)
/registry/student 347.94 KB 458.96 KB 91.79% (🟡 +0.01%)
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.