Skip to content

869-refactor: Update angular mark #875

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

YulikK
Copy link
Collaborator

@YulikK YulikK commented May 7, 2025

What type of PR is this? (select all that apply)

  • πŸ• Feature
  • πŸ› Bug Fix
  • 🚧 Breaking Change
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ“ Documentation Update

Description

Update Angular mark

Related Tickets & Documents

Screenshots, Recordings

image image

Added/updated tests?

  • πŸ‘Œ Yes
  • πŸ™…β€β™‚οΈ No, because they aren't needed
  • πŸ™‹β€β™‚οΈ No, because I need help

[optional] Are there any post deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

Our alumni are running to register for the course πŸ™ƒ
Alt Text

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features

    • Course cards now display an additional subtitle for the Angular course, indicating eligibility for alumni only.
  • Bug Fixes

    • Updated course and training program descriptions to reflect that the Angular course is available to all RS School graduates, not just JS/FE Stage 2 graduates.
    • Standardized course start date display to "To Be Determined" for the Angular course.
  • Tests

    • Adjusted tests to align with the new eligibility descriptions and subtitle display logic for the Angular course.

@github-actions github-actions bot changed the title Refactor/869 update angular mark 869-refactor: Update angular mark May 7, 2025
Copy link
Contributor

coderabbitai bot commented May 7, 2025

πŸ“ Walkthrough
## Walkthrough

Eligibility descriptions for the Angular course were broadened from "JS/FE Stage 2 graduates only" to "graduates of any RS School course" across data, UI, and tests. A new constant (`RS_GRADUATED_ONLY`) was introduced for subtitle consistency. Related test logic and props were updated to align with these changes.

## Changes

| Files/Group                                                                                  | Change Summary                                                                                          |
|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|
| dev-data/about-course.data.tsx, dev-data/training-program.data.tsx                          | Broadened Angular course eligibility description from "JS/FE Stage 2 graduates only" to "any RS School course". |
| dev-data/courses.data.ts                                                                    | Updated Angular course's `subTitle` to use new constant; changed `startDate` to a constant.            |
| src/shared/constants.ts                                                                     | Added `RS_GRADUATED_ONLY` constant.                                                                    |
| src/entities/course/ui/course-card/course-card.tsx                                          | Added optional `subTitle` prop; conditionally displays subtitle for Angular course.                    |
| src/entities/course/ui/course-card/course-card.test.tsx                                     | Refactored tests to iterate over multiple courses; included `subTitle` in test props.                  |
| src/widgets/courses/ui/courses.test.tsx                                                     | Adjusted test logic to match course titles with possible subtitles, especially for Angular.            |
| src/widgets/training-program/ui/training-program.test.tsx                                   | Updated test data to reflect new Angular course eligibility text.                                      |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant User
    participant CoursesWidget
    participant CourseCard

    User->>CoursesWidget: View list of courses
    CoursesWidget->>CourseCard: Render each course with title and subTitle
    CourseCard->>CourseCard: If Angular course and no mentoring start date, append subTitle
    CourseCard-->>User: Display course title (with or without subtitle)

Assessment against linked issues

Objective Addressed Explanation
Update Angular course eligibility text to broaden criteria (#869) βœ…

Possibly related PRs

Suggested reviewers

  • andron13
  • dzmitry-varabei
  • ansivgit
  • natanchik
  • SpaNb4

</details>

<!-- walkthrough_end -->


---

<details>
<summary>πŸ“œ Recent review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>πŸ“₯ Commits</summary>

Reviewing files that changed from the base of the PR and between faa8b0ded92c09668c4b95232cd41a0597c45a91 and a8b2ae2e113dc153ae3b4ea98c9c5744525b69e0.

</details>

<details>
<summary>πŸ“’ Files selected for processing (1)</summary>

* `src/entities/course/ui/course-card/course-card.test.tsx` (1 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🧠 Learnings (1)</summary>

<details>
<summary>src/entities/course/ui/course-card/course-card.test.tsx (1)</summary>

Learnt from: Quiddlee
PR: #572
File: src/pages/home.tsx:25-25
Timestamp: 2024-09-30T12:07:39.137Z
Learning: The Courses component in src/widgets/courses/other-courses.test.tsx, src/pages/courses.tsx, and dev-data/courses-path.data.ts is a different component from the one replaced in src/pages/home.tsx.


</details>

</details>

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (1)</summary>

* GitHub Check: CI

</details>

<details>
<summary>πŸ”‡ Additional comments (3)</summary><blockquote>

<details>
<summary>src/entities/course/ui/course-card/course-card.test.tsx (3)</summary>

`4-5`: **Approved: Improved import organization.**

The import updates are clear and separate internal component imports from test utilities.

---

`10-17`: **Excellent refactor to parameterized tests.**

The switch to `describe.each` with `mockedCourses` improves test maintainability and coverage by testing all course variants automatically.

---

`31-39`: **Approved: Dynamic style testing.**

Using dynamic properties from the test data for style assertions is more maintainable than hardcoded values.

</details>

</blockquote></details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIADgA2AE4wfwAzNDF8Ci4AVW5aag9MIm9nSGZnAGsAGmj7bAFmdRp6OUhsREpIAE1veEqAaXRkW0gMRwEu2IB2AFZqyFT8Bg7pfiw0BSU/EnTMvn8vQvoCdvzqeAwiMNgPAEEr0r4KikqNGAQRu1QvS8qo05IBweMwJRILADuCAYsBQoTQXkQ+EYXnwnWQ2G4+CwbAoREuRHe7kYsGKa1oyIw+FCl1wFEU2AYHnIEMWJGo2H8iAWAmw11S8AAHtIef40JUCSSydz+HwKSs2BhcBdsWcCjQZHh7NxRPABQwEV55Mq8SRQkxtmkMgQKASNG5bpAlIgGLbuOJVZdaPADRqbtQbvdHkdnlVIKSZCQyGrjgtMCdHaNLgwvNhnfZXVGMIhYNTkEpmNjEHSLldA1KrmsKkp3ndaN6PRhDbIFhrcMhSVJIJNo2h61EsjGWmFkQ5uFiKKFcJ8dnsbUTbv50EuqdrdQKolji2AlNxUbJFVO0Ih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oY0ASAoYSA+rWqcERrWqPrWqBAOr2REgdrEgGBZhpgOqOrDrZgBAkgSBaqnrnqoAMrcAsraAcq8rwJaBp5zT9AgA== -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> πŸ“ Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❀️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>πŸͺ§ Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=rolling-scopes/site&utm_content=875):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Generate unit testing code for this file.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai generate unit testing code for this file.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and generate unit testing code.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

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)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (3)
src/shared/constants.ts (1)

7-7: Add missing Russian translation for the new subtitle constant.

We introduced RS_GRADUATED_ONLY = 'Alumni only' but did not add a corresponding Russian localization. Consider adding an RS_GRADUATED_ONLY_RU constant or integrating this into the i18n pipeline for consistency across locales.

src/widgets/training-program/ui/training-program.test.tsx (1)

12-12: Avoid regex pitfalls in test.

The test uses new RegExp(p, 'i') on a string with punctuation, which can introduce unintended regex behavior. Prefer screen.getByText(p) for exact matching or escape special characters before constructing the RegExp.

dev-data/training-program.data.tsx (1)

120-121: Centralize eligibility text.

Hardcoding the Angular eligibility description here duplicates the literal. For maintainability, import and render RS_GRADUATED_ONLY within the <Paragraph> instead of repeating the string.

πŸ“œ Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between f0c0e63 and fed9ebb.

πŸ“’ Files selected for processing (8)
  • dev-data/about-course.data.tsx (1 hunks)
  • dev-data/courses.data.ts (2 hunks)
  • dev-data/training-program.data.tsx (1 hunks)
  • src/entities/course/ui/course-card/course-card.test.tsx (1 hunks)
  • src/entities/course/ui/course-card/course-card.tsx (6 hunks)
  • src/shared/constants.ts (1 hunks)
  • src/widgets/courses/ui/courses.test.tsx (2 hunks)
  • src/widgets/training-program/ui/training-program.test.tsx (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
src/widgets/courses/ui/courses.test.tsx (1)
Learnt from: Quiddlee
PR: rolling-scopes/site#572
File: src/pages/home.tsx:25-25
Timestamp: 2024-09-30T12:07:39.137Z
Learning: The `Courses` component in `src/widgets/courses/other-courses.test.tsx`, `src/pages/courses.tsx`, and `dev-data/courses-path.data.ts` is a different component from the one replaced in `src/pages/home.tsx`.
🧬 Code Graph Analysis (2)
dev-data/courses.data.ts (1)
src/shared/constants.ts (3)
  • RS_GRADUATED_ONLY (7-7)
  • COURSE_LINKS (34-44)
  • TO_BE_DETERMINED (6-6)
src/widgets/courses/ui/courses.test.tsx (1)
src/shared/__tests__/constants.ts (1)
  • mockedCourses (27-207)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: CI
πŸ”‡ Additional comments (11)
dev-data/courses.data.ts (3)

10-10: Good - Import standardization

Adding RS_GRADUATED_ONLY to imports helps maintain consistency with the new eligibility labeling across the application.


108-108: Good - Broadened eligibility criteria

Changed from hardcoded "JS/FE Stage 2 graduates only" to a more inclusive RS_GRADUATED_ONLY constant ('Alumni only'), opening the Angular course to all RS School graduates.


114-114: Good - Using constants for date values

Replacing hardcoded strings with the TO_BE_DETERMINED constant improves consistency and makes future updates easier.

src/widgets/courses/ui/courses.test.tsx (2)

6-6: Good - Using constants for course titles

Adding the COURSE_TITLES import allows for more robust title matching in tests.


28-32: Good - Updated test logic for Angular subtitle

The test now correctly handles the special case where Angular course titles include a subtitle suffix in parentheses, ensuring proper test coverage of the UI changes.

src/entities/course/ui/course-card/course-card.tsx (6)

11-11: Good - Using central course title constants

Importing COURSE_TITLES enables consistent title handling and specific logic for Angular courses.


20-20: Good - Added subTitle property type

Properly extended the type definition to include the subTitle property from Course.


38-38: Good - Destructured subTitle prop

Added subTitle to the destructured props to make it available in the component.


56-56: Good - Clean Angular course subtitle logic

The condition to display the Angular course subtitle is clearly defined and handles the special case appropriately.


71-73: Good - Proper subtitle display implementation

Updated the Subtitle component to include the title with optional subtitle suffix for Angular courses.


93-93: Good - Code consolidation

Consolidated the ShortInfoPanel component usage to a single line, improving code readability without changing functionality.

@YulikK YulikK self-assigned this May 7, 2025
@YulikK YulikK added this to RS Site May 7, 2025
@YulikK YulikK moved this to Review in RS Site May 7, 2025
Copy link

github-actions bot commented May 7, 2025

Lighthouse Report:

  • Performance: 69 / 100
  • Accessibility: 96 / 100
  • Best Practices: 100 / 100
  • SEO: 100 / 100

View detailed report

Copy link

github-actions bot commented May 7, 2025

Lighthouse Report:

  • Performance: 76 / 100
  • Accessibility: 96 / 100
  • Best Practices: 100 / 100
  • SEO: 100 / 100

View detailed report

Copy link

github-actions bot commented May 7, 2025

Lighthouse Report:

  • Performance: 72 / 100
  • Accessibility: 96 / 100
  • Best Practices: 100 / 100
  • SEO: 100 / 100

View detailed report

@KristiBo KristiBo removed this from RS Site May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update text for angular marks
3 participants