General/fix tests - #92
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughHeader tests now validate Toolbar props and simplified navigation mocks. SwaggerViewer tests remove obsolete cURL and clipboard coverage, while Vitest hook and test timeouts are set to 50 seconds. ChangesTest suite updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
YuliaDemir
added a commit
that referenced
this pull request
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds theme switching support to the application header and improves the header behavior during page scrolling.
The changes keep the UI consistent with the existing MUI theme, provide accessible light/dark mode controls, and add automated tests for both the header and theme switcher behavior.
Changes Made
Added a reusable
ThemeSwitchercomponent to the application header.Added manual switching between light and dark color schemes.
Preserved support for the user's system color scheme.
Configured MUI to use a class-based
colorSchemeSelectorrequired for manual theme switching.Updated
InitColorSchemeScriptto use the matching class attribute.Added accessible theme switcher attributes:
role="switch"aria-checkedaria-labelAdded English and Russian translations for theme switcher labels.
Added light and dark mode icons with an animated switch indicator.
Used the existing MUI palette, transitions, spacing, and border radius values.
Added compact and expanded header states based on the page scroll position.
Added smooth transitions for the header height and vertical padding.
Added unit tests for
ThemeSwitcher, covering:Added unit tests for
Header, covering:Related issue
Closes #
Feature
Feature 1: App Header
This PR contributes to the application header by adding a theme switcher and animated sticky header behavior.
It also partially contributes to:
Feature 7: General Requirements
Add the matching Feature 1: App Header and Feature 7: General Requirements labels.
Acceptance criteria
Feature 1: App Header
Feature 2: Sign In / Sign Up
Feature 3: Swagger Editor
Feature 4: Swagger Viewer
Feature 5: History and Analytics
Feature 6: About Page
Feature 7: General Requirements
Feature 8: YouTube Video
Type of change
Checklist
any/@ts-ignoreSummary by CodeRabbit