Career Politics

Squirrel
Squirrel

Posted on

This Week in CareerPolitics: AI Mock Exams Are Here!

It's been an incredibly busy week for the careerpolitics-platform with 21 pull requests merged and over 100 new commits. The team's primary focus has been the monumental launch and rapid refinement of the new AI-powered Mock Exam feature, transforming how users can test their knowledge on the platform.

🚀 Feature Spotlight: AI-Powered Mock Exams

A major new feature has landed! This week saw the introduction and polish of AI-generated mock exams. This multi-part effort included the initial implementation, a significant architectural refactor for better performance, and a complete UI overhaul to improve the user experience.

Key highlights from this initiative include:

  • Major Refactor for Tag-Based Exams and Admin Controls: The core logic for mock exams was refactored to support exams based on specific tags, providing more focused tests for users. This update also introduced new performance tracking and administrative capabilities.

    FEAT: Mock Exam Feature Refactor — Tag-based Exams, Performance, Admin #133

    What type of PR is this? (check all applicable)

    • [ ] Refactor
    • [ ] Feature
    • [ ] Bug Fix
    • [ ] Optimization
    • [ ] Documentation Update

    Description

    Related Tickets & Documents

    • Related Issue #
    • Closes #

    QA Instructions, Screenshots, Recordings

    Please replace this line with instructions on how to test your changes, a note on the devices and browsers this has been tested on, as well as any relevant images for UI changes.

    UI accessibility checklist

    If your PR includes UI changes, please utilize this checklist:

    • [ ] Semantic HTML implemented?
    • [ ] Keyboard operability supported?
    • [ ] Checked with axe DevTools and addressed Critical and Serious issues?
    • [ ] Color contrast tested?

    For more info, check out the Forem Accessibility Docs.

    Added/updated tests?

    We encourage you to keep the code coverage percentage at 80% and above.

    • [ ] Yes
    • [ ] No, and this is why: please replace this line with details on why tests have not been included
    • [ ] I need help with writing tests

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

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

    alt_text

    </div>
    <div class="gh-btn-container"><a class="gh-btn" href="https://github.com/careerpolitics/careerpolitics-platform/pull/133">View on GitHub</a></div>
    
    Enter fullscreen mode Exit fullscreen mode



  • Complete UI Redesign: To provide a modern and intuitive experience, all mock exam pages were fully redesigned, from the exam start page to the results screen.

    Redesign the mock exam pages #132

    What type of PR is this? (check all applicable)

    • [ ] Refactor
    • [ ] Feature
    • [ ] Bug Fix
    • [ ] Optimization
    • [ ] Documentation Update

    Description

    Related Tickets & Documents

    • Related Issue #
    • Closes #

    QA Instructions, Screenshots, Recordings

    Please replace this line with instructions on how to test your changes, a note on the devices and browsers this has been tested on, as well as any relevant images for UI changes.

    UI accessibility checklist

    If your PR includes UI changes, please utilize this checklist:

    • [ ] Semantic HTML implemented?
    • [ ] Keyboard operability supported?
    • [ ] Checked with axe DevTools and addressed Critical and Serious issues?
    • [ ] Color contrast tested?

    For more info, check out the Forem Accessibility Docs.

    Added/updated tests?

    We encourage you to keep the code coverage percentage at 80% and above.

    • [ ] Yes
    • [ ] No, and this is why: please replace this line with details on why tests have not been included
    • [ ] I need help with writing tests

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

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

    alt_text


  • Dashboard, Leaderboard, and Scoring Refinements: The user-facing dashboard, competitive leaderboard, and scoring logic received significant polish to ensure accuracy and a more engaging experience.

    fix: mock exam dashboard, leaderboard, and scoring refinements #131

    Summary

    Mock exam dashboard, leaderboard, and scoring refinements.

    Changes

    • app/controllers/mock_exams_controller.rb — 404 render via Rails.public_path, exists? for set-attempt check, style/format cleanups
    • app/javascript/mockExams/MockExamInterface.jsx — interface refinements
    • app/services/mock_exams/scoring_service.rb — scoring logic refinements
    • app/javascript/mockExams/__tests__/MockExamInterface.test.jsx — new frontend tests
    • spec/requests/mock_exams_leaderboard_spec.rb — leaderboard request specs
    • spec/services/mock_exams/scoring_service_spec.rb — scoring service specs

    🤖 Generated with Claude Code


  • Enhanced Discoverability: To ensure users can find this new feature, mock exams have been added to the global search and the site's sitemap.

    FEAT: Add mock exam to sitemap and include in global search #136

    What type of PR is this? (check all applicable)

    • [ ] Refactor
    • [ ] Feature
    • [ ] Bug Fix
    • [ ] Optimization
    • [ ] Documentation Update

    Description

    Related Tickets & Documents

    • Related Issue #
    • Closes #

    QA Instructions, Screenshots, Recordings

    Please replace this line with instructions on how to test your changes, a note on the devices and browsers this has been tested on, as well as any relevant images for UI changes.

    UI accessibility checklist

    If your PR includes UI changes, please utilize this checklist:

    • [ ] Semantic HTML implemented?
    • [ ] Keyboard operability supported?
    • [ ] Checked with axe DevTools and addressed Critical and Serious issues?
    • [ ] Color contrast tested?

    For more info, check out the Forem Accessibility Docs.

    Added/updated tests?

    We encourage you to keep the code coverage percentage at 80% and above.

    • [ ] Yes
    • [ ] No, and this is why: please replace this line with details on why tests have not been included
    • [ ] I need help with writing tests

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

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

    alt_text


  • Other Notable Updates

    Alongside the main feature launch, the team also addressed several bugs and made other backend improvements.

    • Tag Following Fixed: A bug that impacted the user's ability to follow tags has been resolved.

      FIX: Tag follow #137

      What type of PR is this? (check all applicable)

      • [ ] Refactor
      • [ ] Feature
      • [ ] Bug Fix
      • [ ] Optimization
      • [ ] Documentation Update

      Description

      Related Tickets & Documents

      • Related Issue #
      • Closes #

      QA Instructions, Screenshots, Recordings

      Please replace this line with instructions on how to test your changes, a note on the devices and browsers this has been tested on, as well as any relevant images for UI changes.

      UI accessibility checklist

      If your PR includes UI changes, please utilize this checklist:

      • [ ] Semantic HTML implemented?
      • [ ] Keyboard operability supported?
      • [ ] Checked with axe DevTools and addressed Critical and Serious issues?
      • [ ] Color contrast tested?

      For more info, check out the Forem Accessibility Docs.

      Added/updated tests?

      We encourage you to keep the code coverage percentage at 80% and above.

      • [ ] Yes
      • [ ] No, and this is why: please replace this line with details on why tests have not been included
      • [ ] I need help with writing tests

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

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

      alt_text

      </div>
      <div class="gh-btn-container"><a class="gh-btn" href="https://github.com/careerpolitics/careerpolitics-platform/pull/137">View on GitHub</a></div>
      
      Enter fullscreen mode Exit fullscreen mode



    • Backend & Data Platform Enhancements: A series of commits focused on improving our backend data infrastructure. This included work on our Customer Data Platform (CDP) integration, event tracking with Segment, and the implementation of polymorphic semantic concept tracking.


    • Continuous Improvements: The remainder of the week's activity consisted of numerous smaller fixes and iterative updates to the new AI Mock Exam feature, including CSS style adjustments, bug fixes for the question generator, and the addition of new test cases to improve reliability.


Top comments (0)