Repository: kpi-ua/schedule.kpi.ua
Pull request #329: Fixed console errors
Author: login: VVriter
Labels: name: bug
description: Something isn't working
Created: 2025-05-01T22:20:56Z | Merged: 2025-05-06T14:05:25Z

Console was spammed by ~20 error messages of this:
![image](https://github.com/user-attachments/assets/88d4ac4b-ad01-44c5-8379-c0c72429588d)
**!!!!! In styled components library we can use only props started with "$" prefix !!!!**

Fixed this single major error of select-menu component library
![image](https://github.com/user-attachments/assets/40294cb7-ce83-448b-aa4d-da3366fd3ceb)
Changed from react-select-virtualized to react-select (This is same library and it installed by default)



<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - Added automatic redirection to the home page for any unknown or unmatched URLs.

- **Bug Fixes**
  - Updated routing and URL handling to ensure consistent use of the home path, improving navigation and parameter management.

- **Style**
  - Standardized styled component prop naming conventions by prefixing style-related props with a dollar sign (e.g., `$active`, `$gap`), enhancing code consistency.
  - Improved flexibility in layout components by introducing configurable spacing properties.

- **Chores**
  - Reordered development dependencies for better organization.
  - Updated import source for the select component to improve compatibility.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->


Diff:
diff --git a/package.json b/package.json
index 90dd522..7f57e24 100644
--- a/package.json
+++ b/package.json
@@ -48,29 +48,29 @@
     ]
   },
   "devDependencies": {
+    "@eslint/js": "^9.22.0",
     "@types/lodash-es": "^4.17.12",
     "@types/node": "^22.10.7",
+    "@types/react": "^18.3.18",
     "@types/react-dom": "^18.3.5",
     "@types/react-router-dom": "^5.3.3",
-    "@types/react": "^18.3.18",
     "@types/styled-components": "^5.1.34",
     "@types/styled-system": "^5.1.22",
     "@vitejs/plugin-react": "^4.3.4",
     "esbuild-plugin-react-virtualized": "^1.0.4",
+    "eslint": "^9.17.0",
     "eslint-config-prettier": "^10.0.1",
     "eslint-plugin-prettier": "^5.2.3",
+    "eslint-plugin-react": "^7.37.2",
     "eslint-plugin-react-hooks": "^5.0.0",
     "eslint-plugin-react-refresh": "^0.4.18",
-    "eslint-plugin-react": "^7.37.2",
-    "eslint": "^9.17.0",
     "globals": "^15.14.0",
     "prettier": "3.4.2",
     "sass-embedded": "^1.83.0",
-    "typescript-eslint": "^8.19.1",
     "typescript": "~5.7.3",
-    "vite-plugin-svgr": "^4.3.0",
-    "vite-tsconfig-paths": "^5.1.4",
+    "typescript-eslint": "^8.19.1",
     "vite": "^6.0.11",
-    "@eslint/js": "^9.22.0"
+    "vite-plugin-svgr": "^4.3.0",
+    "vite-tsconfig-paths": "^5.1.4"
   }
 }
diff --git a/src/@types/index.d.ts b/src/@types/index.d.ts
index b0dfb70..bff9471 100644
--- a/src/@types/index.d.ts
+++ b/src/@types/index.d.ts
@@ -1,2 +1 @@
-declare module 'react-select-virtualized';
 declare module '*.svg';
diff --git a/src/app/App.tsx b/src/app/App.tsx
index 84b1367..db4f594 100644
--- a/src/app/App.tsx
+++ b/src/app/App.tsx
@@ -1,6 +1,6 @@
 /// <reference types="vite-plugin-svgr/client" />
 
-import { Route, Routes } from 'react-router-dom';
+import { Route, Routes, Navigate } from 'react-router-dom';
 
 import { getValueFromTheme } from '../common/utils/getValueFromTheme';
 import { routes } from '../common/constants/routes';
@@ -56,6 +56,7 @@ function App() {
               <Route path={routes.ABOUT} element={<Project />} />
               <Route path={routes.CONTACTS} element={<Contacts />} />
             </Route>
+            <Route path="*" element={<Navigate to="/" replace />} />
           </Routes>
         </Wrapper>
       </ThemeProvider>
diff --git a/src/common/constants/routes.ts b/src/common/constants/routes.ts
index 4c0f820..b8c9f50 100644
--- a/src/common/constants/routes.ts
+++ b/src/common/constants/routes.ts
@@ -1,5 +1,5 @@
 export const routes = {
-  GROUP: '/',
+  INDEX: '/',
   LECTURER: '/lecturers',
   SESSION: '/sessions',
   ABOUT: '/about',
diff --git a/src/common/styles/styles.ts b/src/common/styles/styles.ts
index 88f5d46..dbeeab2 100644
--- a/src/common/styles/styles.ts
+++ b/src/common/styles/styles.ts
@@ -6,13 +6,13 @@ import { SCREEN_SIZES } from '../constants/screenSize';
 import { ScreenSize } from '../../types/ScreenSize';
 import { getValueFromTheme } from '../../common/utils/getValueFromTheme';
 
-export const Flex = styled.div<{ gap?: string }>`
+export const Flex = styled.div<{ $gap?: string }>`
   display: flex;
   ${space};
   ${flexbox};
 
   // Support for gap in flexbox
-  gap: ${(props) => props.gap};
+  gap: ${(props) => props.$gap};
 `;
 
 export const Pictogram = styled.img`
diff --git a/src/components/RadioGroup/RadioGroup.style.ts b/src/components/RadioGroup/RadioGroup.style.ts
index 178d855..178bb4c 100644
--- a/src/components/RadioGroup/RadioGroup.style.ts
+++ b/src/components/RadioGroup/RadioGroup.style.ts
@@ -2,18 +2,18 @@ import styled, { css } from 'styled-components';
 import { getValueFromTheme } from '../../common/utils/getValueFromTheme';
 import { media } from '../../common/styles/styles';
 
-export const RadioGroupWrapper = styled.div<{ fullWidth?: boolean; rounded?: boolean }>`
-  width: ${(props) => (props.fullWidth ? '100%' : 'auto')};
+export const RadioGroupWrapper = styled.div<{ $fullWidth?: boolean; $rounded?: boolean }>`
+  width: ${(props) => (props.$fullWidth ? '100%' : 'auto')};
   display: flex;
   padding: 4px;
   justify-content: space-around;
   background: ${getValueFromTheme('bgOptions')};
   box-shadow: inset 0 0 8px rgba(136, 136, 136, 0.08);
-  border-radius: ${(props) => (props.rounded ? '9999px' : '8px')};
+  border-radius: ${(props) => (props.$rounded ? '9999px' : '8px')};
   gap: 4px;
 `;
 
-export const RadioGroupOption = styled.div<{ active: boolean; rounded?: boolean }>`
+export const RadioGroupOption = styled.div<{ $active: boolean; $rounded?: boolean }>`
   flex-grow: 1;
   transition: 0.2s ease-in background-color;
   display: inline-flex;
@@ -26,10 +26,9 @@ export const RadioGroupOption = styled.div<{ active: boolean; rounded?: boolean
   font-size: 14px;
   letter-spacing: 0.01em;
   color: ${getValueFromTheme('secondaryFontColor')};
-  border-radius: ${(props) => (props.rounded ? '9999px' : '6px')};
+  border-radius: ${(props) => (props.$rounded ? '9999px' : '6px')};
   white-space: nowrap;
 
-  // Prevent width variations because of text weight
   &:after {
     content: attr(data-text);
     content: attr(data-text) / '';
@@ -46,7 +45,7 @@ export const RadioGroupOption = styled.div<{ active: boolean; rounded?: boolean
   }
 
   ${(props) =>
-    props.active
+    props.$active
       ? css`
           font-weight: 600;
           background-color: #fff;
diff --git a/src/components/RadioGroup/RadioGroup.tsx b/src/components/RadioGroup/RadioGroup.tsx
index fc04fa5..e7779a9 100644
--- a/src/components/RadioGroup/RadioGroup.tsx
+++ b/src/components/RadioGroup/RadioGroup.tsx
@@ -16,14 +16,14 @@ export const RadioGroup = <T extends string | number>({
   fullWidth,
   rounded,
 }: RadioGroupProps<T>) => (
-  <RadioGroupWrapper fullWidth={fullWidth} rounded={rounded}>
+  <RadioGroupWrapper $fullWidth={fullWidth} $rounded={rounded}>
     {options.map((item) => (
       <RadioGroupOption
         key={item.value}
-        active={value === item.value}
         onClick={() => onChange(item.value)}
         data-text={item.label}
-        rounded={rounded}
+        $active={value === item.value}
+        $rounded={rounded}
       >
         {item.label}
       </RadioGroupOption>
diff --git a/src/components/ScheduleItemContent/ScheduleItemContent.tsx b/src/components/ScheduleItemContent/ScheduleItemContent.tsx
index 7dab63a..131b00c 100644
--- a/src/components/ScheduleItemContent/ScheduleItemContent.tsx
+++ b/src/components/ScheduleItemContent/ScheduleItemContent.tsx
@@ -85,7 +85,7 @@ const ScheduleItemContent: React.FC<Props> = ({ scheduleMatrixCell, collapsed })
       return '#';
     }
 
-    return `${routes.GROUP}?groupId=${groupId}`;
+    return `${routes.INDEX}?groupId=${groupId}`;
   };
 
   return (
diff --git a/src/components/ScheduleTypeTab/ScheduleTypeTab.style.ts b/src/components/ScheduleTypeTab/ScheduleTypeTab.style.ts
index 3c9fc81..c2bae04 100644
--- a/src/components/ScheduleTypeTab/ScheduleTypeTab.style.ts
+++ b/src/components/ScheduleTypeTab/ScheduleTypeTab.style.ts
@@ -1,7 +1,7 @@
 import styled from 'styled-components';
 import { getValueFromTheme } from '../../common/utils/getValueFromTheme';
 
-export const Tab = styled.div<{ active: boolean }>`
+export const Tab = styled.div<{ $active: boolean }>`
   position: relative;
   font-weight: bold;
   font-size: 18px;
@@ -17,6 +17,6 @@ export const Tab = styled.div<{ active: boolean }>`
     border-radius: 6px;
     height: 2px;
     background-color: ${getValueFromTheme('secondaryFontColor')};
-    display: ${(props) => (props.active ? 'block' : 'none')};
+    display: ${(props) => (props.$active ? 'block' : 'none')};
   }
 `;
diff --git a/src/components/ScheduleTypeTab/ScheduleTypeTab.tsx b/src/components/ScheduleTypeTab/ScheduleTypeTab.tsx
index fbe11de..099f666 100644
--- a/src/components/ScheduleTypeTab/ScheduleTypeTab.tsx
+++ b/src/components/ScheduleTypeTab/ScheduleTypeTab.tsx
@@ -30,7 +30,7 @@ const ScheduleTypeTab = ({ tabClick, children, url }: ScheduleTypeTabProps) => {
       if (localStorageLecturerId) {
         setUrlWithParams(`${url}?groupId=${localStorageLecturerId}`);
       }
-    } else if (url.includes(routes.GROUP) || url.includes(routes.SESSION)) {
+    } else if (url.includes(routes.INDEX) || url.includes(routes.SESSION)) {
       const localStorageGroupId = getLocalStorageItem('groupId');
       if (localStorageGroupId) {
         setUrlWithParams(`${url}?groupId=${localStorageGroupId}`);
@@ -51,7 +51,7 @@ const ScheduleTypeTab = ({ tabClick, children, url }: ScheduleTypeTabProps) => {
   };
 
   return (
-    <Tab active={isActive} onClick={handleClick} ref={tabRef}>
+    <Tab $active={isActive} onClick={handleClick} ref={tabRef}>
       <UnstyledLink to={urlWithParams}>{children}</UnstyledLink>
     </Tab>
   );
diff --git a/src/components/SearchSelect/SearchSelect.tsx b/src/components/SearchSelect/SearchSelect.tsx
index 2ea2810..f037da0 100644
--- a/src/components/SearchSelect/SearchSelect.tsx
+++ b/src/components/SearchSelect/SearchSelect.tsx
@@ -2,7 +2,7 @@ import './SearchSelect.scss';
 
 import { EntityWithNameAndId } from '../../models/EntityWithNameAndId';
 import { ListOption } from '../../types/ListOption';
-import { Select } from 'react-select-virtualized';
+import Select from 'react-select';
 import { getSelectCustomStyle } from '../../common/constants/selectOptions';
 import { media } from '../../common/styles/styles';
 import styled from 'styled-components';
@@ -30,7 +30,9 @@ const SearchSelect = <T extends EntityWithNameAndId>({ options, value, onChange
 
   const selectOptions = useMemo(() => options.map(({ id, name }) => ({ label: name, value: id })), [options]);
 
-  const handleChange = (option: ListOption<string>) => {
+  const handleChange = (option: ListOption<string> | null) => {
+    if (!option) return;
+    
     const item = options.find((x) => x.id === option.value);
 
     if (item) {
diff --git a/src/containers/MainSettings/MainSettings.style.ts b/src/containers/MainSettings/MainSettings.style.ts
index 87fed18..17c16f3 100644
--- a/src/containers/MainSettings/MainSettings.style.ts
+++ b/src/containers/MainSettings/MainSettings.style.ts
@@ -3,10 +3,15 @@ import { Flex, media } from '../../common/styles/styles';
 import styled from 'styled-components';
 
 export const MainSettingsContainer = styled(Flex)<{
-  flexDirection: string;
-  alignItems: string;
+  $flexDirection: string;
+  $alignItems: string;
+  $gap: string;
 }>`
   flex-grow: 1;
+  flex-direction: ${({ $flexDirection }) => $flexDirection};
+  align-items: ${({ $alignItems }) => $alignItems};
+  gap: ${({ $gap }) => $gap};
+
   ${media.smallMode} {
     width: 100%;
   }
diff --git a/src/containers/MainSettings/MainSettings.tsx b/src/containers/MainSettings/MainSettings.tsx
index 5a1a5b7..925800d 100644
--- a/src/containers/MainSettings/MainSettings.tsx
+++ b/src/containers/MainSettings/MainSettings.tsx
@@ -8,7 +8,7 @@ import { routes } from '../../common/constants/routes';
 
 const MainSettings = () => {
   return (
-    <MainSettingsContainer flexDirection="column" alignItems="center" gap="24px">
+    <MainSettingsContainer $flexDirection="column" $alignItems="center" $gap="24px">
       <ScheduleTypeTabs />
       <FiltersContainer>
         <Routes>
diff --git a/src/containers/ScheduleExams/ScheduleExams.tsx b/src/containers/ScheduleExams/ScheduleExams.tsx
index 0a0be2e..e078905 100644
--- a/src/containers/ScheduleExams/ScheduleExams.tsx
+++ b/src/containers/ScheduleExams/ScheduleExams.tsx
@@ -29,9 +29,7 @@ const SchededuleExamsWrapper = () => {
           </>
         )}
       </Header>
-      <ExamsListWrapper>
-        {exams?.map((exam) => <ExamSchedule key={exam.id} exam={exam} />)}
-      </ExamsListWrapper>
+      <ExamsListWrapper>{exams?.map((exam) => <ExamSchedule key={exam.id} exam={exam} />)}</ExamsListWrapper>
     </GridWrapper>
   );
 };
diff --git a/src/containers/ScheduleTable/ScheduleTable.tsx b/src/containers/ScheduleTable/ScheduleTable.tsx
index 868138a..9622bbb 100644
--- a/src/containers/ScheduleTable/ScheduleTable.tsx
+++ b/src/containers/ScheduleTable/ScheduleTable.tsx
@@ -47,10 +47,10 @@ export const GridContainer = styled.div`
   }
 `;
 
-export const CurrentDayContainer = styled.div<{ start: number }>`
+export const CurrentDayContainer = styled.div<{ $start: number }>`
   position: absolute;
   background: ${getValueFromTheme('currentDayContainer')};
-  grid-column: ${(props) => props.start} / span 1;
+  grid-column: ${(props) => props.$start} / span 1;
   width: calc(100% + 1.5rem);
   left: -0.75rem;
   top: -0.75rem;
@@ -88,7 +88,7 @@ const ScheduleTable = <T extends Pair>({ schedule }: ScheduleWrapperProps<T>) =>
 
   return (
     <GridContainer>
-      {currentDayColumn ? <CurrentDayContainer start={currentDayColumn} /> : null}
+      {currentDayColumn ? <CurrentDayContainer $start={currentDayColumn} /> : null}
       <ScheduleHeader />
       {generateScheduleRows(generateScheduleMatrix(weekSchedule, data?.currentLesson))}
     </GridContainer>
diff --git a/src/containers/ScheduleTypeTabs/ScheduleTypeTabs.style.ts b/src/containers/ScheduleTypeTabs/ScheduleTypeTabs.style.ts
index 4bfc9dc..89d76a8 100644
--- a/src/containers/ScheduleTypeTabs/ScheduleTypeTabs.style.ts
+++ b/src/containers/ScheduleTypeTabs/ScheduleTypeTabs.style.ts
@@ -1,7 +1,7 @@
 import styled from 'styled-components';
 import { Flex } from '../../common/styles/styles';
 
-export const TabContainer = styled(Flex)<{ justifyContent: string; alignItems: string }>`
+export const TabContainer = styled(Flex)<{ $justifyContent: string; $alignItems: string }>`
   white-space: nowrap;
   max-width: calc(100vw - 3rem);
   scroll-snap-type: x mandatory;
diff --git a/src/containers/ScheduleTypeTabs/ScheduleTypeTabs.tsx b/src/containers/ScheduleTypeTabs/ScheduleTypeTabs.tsx
index 9a76d02..a19e334 100644
--- a/src/containers/ScheduleTypeTabs/ScheduleTypeTabs.tsx
+++ b/src/containers/ScheduleTypeTabs/ScheduleTypeTabs.tsx
@@ -4,7 +4,7 @@ import { routes } from '../../common/constants/routes';
 
 const ScheduleTypeTabs = () => {
   const tabs = [
-    { value: routes.GROUP, label: 'Розклад занять' },
+    { value: routes.INDEX, label: 'Розклад занять' },
     { value: routes.SESSION, label: 'Розклад сесії' },
     { value: routes.LECTURER, label: 'Розклад для викладачів' },
   ];
@@ -18,7 +18,7 @@ const ScheduleTypeTabs = () => {
   });
 
   return (
-    <TabContainer justifyContent="space-between" alignItems="center" gap={'37px'}>
+    <TabContainer $justifyContent="space-between" $alignItems="center" $gap={'37px'}>
       {TabComponents}
     </TabContainer>
   );
diff --git a/src/queries/useCurrentTime.ts b/src/queries/useCurrentTime.ts
index 796141c..538f65a 100644
--- a/src/queries/useCurrentTime.ts
+++ b/src/queries/useCurrentTime.ts
@@ -16,4 +16,4 @@ export const useCurrentTime = () => {
     },
     queryFn: getCurrentTime,
   });
-};
\ No newline at end of file
+};


Reviews:
user: login: coderabbitai[bot]
body: **Actionable comments posted: 1**

<details>
<summary>📜 Review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between d856d8f0a7ab26ca345c46b652b889178f4f3c13 and d4e448acfc74c19b137f595d222c0bbb4b8cf857.

</details>

<details>
<summary>⛔ Files ignored due to path filters (1)</summary>

* `yarn.lock` is excluded by `!**/yarn.lock`, `!**/*.lock`

</details>

<details>
<summary>📒 Files selected for processing (15)</summary>

* `package.json` (1 hunks)
* `src/app/App.tsx` (2 hunks)
* `src/common/constants/routes.ts` (1 hunks)
* `src/common/styles/styles.ts` (1 hunks)
* `src/components/RadioGroup/RadioGroup.style.ts` (1 hunks)
* `src/components/RadioGroup/RadioGroup.tsx` (1 hunks)
* `src/components/ScheduleItemContent/ScheduleItemContent.tsx` (1 hunks)
* `src/components/ScheduleTypeTab/ScheduleTypeTab.style.ts` (2 hunks)
* `src/components/ScheduleTypeTab/ScheduleTypeTab.tsx` (2 hunks)
* `src/components/SearchSelect/SearchSelect.tsx` (1 hunks)
* `src/containers/MainSettings/MainSettings.style.ts` (1 hunks)
* `src/containers/MainSettings/MainSettings.tsx` (1 hunks)
* `src/containers/ScheduleTable/ScheduleTable.tsx` (2 hunks)
* `src/containers/ScheduleTypeTabs/ScheduleTypeTabs.style.ts` (1 hunks)
* `src/containers/ScheduleTypeTabs/ScheduleTypeTabs.tsx` (2 hunks)

</details>

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

<details>
<summary>🧬 Code Graph Analysis (9)</summary>

<details>
<summary>src/components/ScheduleItemContent/ScheduleItemContent.tsx (1)</summary><blockquote>

<details>
<summary>src/common/constants/routes.ts (1)</summary>

* `routes` (1-7)

</details>

</blockquote></details>
<details>
<summary>src/containers/MainSettings/MainSettings.tsx (1)</summary><blockquote>

<details>
<summary>src/containers/MainSettings/MainSettings.style.ts (1)</summary>

* `MainSettingsContainer` (5-18)

</details>

</blockquote></details>
<details>
<summary>src/components/RadioGroup/RadioGroup.tsx (1)</summary><blockquote>

<details>
<summary>src/components/RadioGroup/RadioGroup.style.ts (2)</summary>

* `RadioGroupWrapper` (5-14)
* `RadioGroupOption` (16-60)

</details>

</blockquote></details>
<details>
<summary>src/containers/ScheduleTypeTabs/ScheduleTypeTabs.style.ts (1)</summary><blockquote>

<details>
<summary>src/common/styles/styles.ts (1)</summary>

* `Flex` (9-16)

</details>

</blockquote></details>
<details>
<summary>src/containers/ScheduleTypeTabs/ScheduleTypeTabs.tsx (2)</summary><blockquote>

<details>
<summary>src/common/constants/routes.ts (1)</summary>

* `routes` (1-7)

</details>
<details>
<summary>src/containers/ScheduleTypeTabs/ScheduleTypeTabs.style.ts (1)</summary>

* `TabContainer` (4-10)

</details>

</blockquote></details>
<details>
<summary>src/containers/MainSettings/MainSettings.style.ts (1)</summary><blockquote>

<details>
<summary>src/common/styles/styles.ts (1)</summary>

* `media` (23-28)

</details>

</blockquote></details>
<details>
<summary>src/containers/ScheduleTable/ScheduleTable.tsx (1)</summary><blockquote>

<details>
<summary>src/common/utils/getValueFromTheme.ts (1)</summary>

* `getValueFromTheme` (1-3)

</details>

</blockquote></details>
<details>
<summary>src/components/ScheduleTypeTab/ScheduleTypeTab.tsx (2)</summary><blockquote>

<details>
<summary>src/common/constants/routes.ts (1)</summary>

* `routes` (1-7)

</details>
<details>
<summary>src/components/ScheduleTypeTab/ScheduleTypeTab.style.ts (1)</summary>

* `Tab` (4-22)

</details>

</blockquote></details>
<details>
<summary>src/components/RadioGroup/RadioGroup.style.ts (2)</summary><blockquote>

<details>
<summary>src/common/utils/getValueFromTheme.ts (1)</summary>

* `getValueFromTheme` (1-3)

</details>
<details>
<summary>src/common/styles/styles.ts (1)</summary>

* `media` (23-28)

</details>

</blockquote></details>

</details>

</details>

<details>
<summary>🔇 Additional comments (20)</summary><blockquote>

<details>
<summary>src/common/constants/routes.ts (1)</summary>

`2-2`: **Route key rename looks good**

Renaming `GROUP` to `INDEX` is a clear improvement for describing the application's root route. The AI summary indicates that all references in other components have been properly updated to use the new name.

</details>
<details>
<summary>src/common/styles/styles.ts (1)</summary>

`9-9`: **Fixed styled-component prop naming convention**

Prefixing the custom `gap` prop with `$` follows styled-components best practices and fixes the console errors mentioned in the PR objectives. This prevents the prop from being passed to the DOM element as an invalid HTML attribute.



Also applies to: 15-15

</details>
<details>
<summary>package.json (1)</summary>

`51-52`: **Reorganized devDependencies entries**

The reordering of devDependencies has no functional impact but improves the organization of the file.



Also applies to: 54-55, 61-62, 64-65, 71-74

</details>
<details>
<summary>src/containers/MainSettings/MainSettings.tsx (1)</summary>

`11-11`: **Good fix for the styled-components console errors.**

The addition of `$` prefix to the props (`$flexDirection`, `$alignItems`, `$gap`) correctly addresses the issue mentioned in the PR objectives where only props prefixed with "$" are allowed in styled components. This change aligns with the corresponding prop types in `MainSettings.style.ts` and follows styled-components best practices.

</details>
<details>
<summary>src/components/ScheduleItemContent/ScheduleItemContent.tsx (1)</summary>

`88-88`: **Route constant updated correctly.**

The change from `routes.GROUP` to `routes.INDEX` correctly aligns with the route constant renaming in the `routes.ts` file. This ensures consistent naming across the application.

</details>
<details>
<summary>src/components/ScheduleTypeTab/ScheduleTypeTab.style.ts (1)</summary>

`4-4`: **Good fix for the styled-components props.**

The changes from `active` to `$active` in both the type definition and usage within the component fix the styled-components issues mentioned in the PR objectives. This follows the styled-components best practice of prefixing styling props with `$`.



Also applies to: 20-20

</details>
<details>
<summary>src/components/RadioGroup/RadioGroup.tsx (1)</summary>

`19-19`: **Styled-component props correctly prefixed.**

The changes properly prefix all styled-component props with `$` (`$fullWidth`, `$rounded`, and `$active`), which addresses the console error issues mentioned in the PR objectives. These changes match the corresponding prop interfaces in `RadioGroup.style.ts`.



Also applies to: 25-26

</details>
<details>
<summary>src/app/App.tsx (2)</summary>

`3-3`: **Import updated to include Navigate component.**

Good addition of the Navigate component import which is now used in the catch-all route.

---

`59-59`: **Well-implemented catch-all route for handling unknown paths.**

Adding a catch-all route with `<Navigate to="/" replace />` is a good practice to ensure users don't encounter broken pages when navigating to undefined routes. The `replace` prop correctly replaces the current history entry instead of adding a new one.

</details>
<details>
<summary>src/components/ScheduleTypeTab/ScheduleTypeTab.tsx (2)</summary>

`33-33`: **Route reference updated correctly.**

The condition has been properly updated to use `routes.INDEX` instead of `routes.GROUP`, maintaining consistency with the route naming changes in the constants file.

---

`54-54`: **Fixed styled-component prop naming.**

Correctly updated the prop from `active` to `$active`, following the styled-components convention that requires styling props to be prefixed with `$`. This change will prevent console errors caused by passing non-standard HTML attributes to the DOM.

</details>
<details>
<summary>src/containers/ScheduleTypeTabs/ScheduleTypeTabs.style.ts (1)</summary>

`4-4`: **Fixed styled-component prop typing.**

Properly updated the TypeScript generic type definition for `TabContainer` to use `$`-prefixed props (`$justifyContent`, `$alignItems`). This follows the styled-components convention that styling props should be prefixed with `$` to prevent them from being passed to the DOM.

</details>
<details>
<summary>src/containers/ScheduleTypeTabs/ScheduleTypeTabs.tsx (2)</summary>

`7-7`: **Route reference updated correctly.**

The tab definition has been properly updated to use `routes.INDEX` instead of `routes.GROUP`, maintaining consistency with the route naming changes in the constants file.

---

`21-21`: **Fixed styled-component prop naming.**

Correctly updated the props passed to `TabContainer` to use the `$`-prefixed versions (`$justifyContent`, `$alignItems`, `$gap`) instead of unprefixed names. This change matches the updated type definition in the style file and follows the styled-components convention, preventing console errors.

</details>
<details>
<summary>src/containers/ScheduleTable/ScheduleTable.tsx (2)</summary>

`50-63`: **Properly prefixed styled-component prop with $ symbol**

The prop `start` has been correctly renamed to `$start` in the styled component type definition, following the styled-components best practice that only props prefixed with "$" are forwarded to the DOM element, preventing unwanted props from being rendered as HTML attributes.

---

`91-91`: **Correctly updated prop name in component usage**

The `start` prop has been appropriately renamed to `$start` in the component usage, matching the type definition change. This ensures consistency and prevents the console errors mentioned in the PR objective.

</details>
<details>
<summary>src/containers/MainSettings/MainSettings.style.ts (2)</summary>

`5-9`: **Properly prefixed styled-component props with $ symbol**

The props `flexDirection`, `alignItems`, and newly added `gap` have been correctly prefixed with `$` in the type definition, following the styled-components convention that prevents props from being incorrectly passed to the DOM.

---

`10-18`: **Updated prop references in styled component template**

The CSS property references have been properly updated to use the new prefixed prop names (`$flexDirection`, `$alignItems`, `$gap`). The code formatting has also been improved for better readability.

</details>
<details>
<summary>src/components/RadioGroup/RadioGroup.style.ts (2)</summary>

`5-14`: **Fixed RadioGroupWrapper styled component props**

The props `fullWidth` and `rounded` have been correctly prefixed with `$` in both the type definition and their usage within the styled component. This change follows the styled-components convention and prevents unwanted props from being passed to the DOM.

---

`16-60`: **Fixed RadioGroupOption styled component props**

All props (`active` and `rounded`) have been correctly prefixed with `$` in the type definition and their usage within the component. The conditional styling based on the active state now properly references `props.$active`. The formatting has also been improved for better readability.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: NONE
submitted_at: 2025-05-01T22:23:11Z
user: login: copilot-pull-request-reviewer[bot]
body: ## Pull Request Overview

This PR addresses console errors by updating styled-components prop names to use the "$" prefix and revises route references to eliminate deprecated usage. It also updates the select component import to improve compatibility.  
- Updated styled-components prop names (e.g., "alignItems" → "$alignItems")  
- Replaced deprecated "routes.GROUP" with "routes.INDEX" in routing logic  
- Changed the select component from "react-select-virtualized" to "react-select"

### Reviewed Changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.

<details>
<summary>Show a summary per file</summary>

| File | Description |
| ---- | ----------- |
| src/containers/ScheduleTypeTabs/ScheduleTypeTabs.tsx | Updated routing prop and styled-components props to use "$" prefix |
| src/containers/ScheduleTypeTabs/ScheduleTypeTabs.style.ts | Adjusted styled component prop types to match "$" convention |
| src/containers/ScheduleTable/ScheduleTable.tsx | Renamed styled-component prop "start" to "$start" for consistency |
| src/containers/MainSettings/MainSettings.tsx | Updated props passed to styled MainSettingsContainer to use "$" prefix |
| src/containers/MainSettings/MainSettings.style.ts | Replaced plain prop names with "$" prefixed versions in component styles |
| src/components/SearchSelect/SearchSelect.tsx | Switched import from "react-select-virtualized" to "react-select" |
| src/components/ScheduleTypeTab/ScheduleTypeTab.tsx | Modified conditional URL logic and updated styled-components prop "$active" |
| src/components/ScheduleTypeTab/ScheduleTypeTab.style.ts | Changed styled prop from "active" to "$active" |
| src/components/ScheduleItemContent/ScheduleItemContent.tsx | Updated route reference from GROUP to INDEX in URL generation |
| src/components/RadioGroup/RadioGroup.tsx & RadioGroup.style.ts | Converted styled-components props to use "$" prefixes consistently |
| src/common/styles/styles.ts | Updated Flex component prop from "gap" to "$gap" |
| src/common/constants/routes.ts | Replaced "GROUP" with "INDEX" to reflect updated naming conventions |
| src/app/App.tsx | Added a catch-all route for unknown URLs using Navigate |
</details>


<details>
<summary>Files not reviewed (1)</summary>

* **package.json**: Language not supported
</details>

<details>
<summary>Comments suppressed due to low confidence (2)</summary>

**src/components/ScheduleTypeTab/ScheduleTypeTab.tsx:33**
* Verify that replacing 'routes.GROUP' with 'routes.INDEX' in this conditional aligns with the intended routing behavior. Ensure that this update is consistent with related components that handle route-based conditions.
```
    } else if (url.includes(routes.INDEX) || url.includes(routes.SESSION)) {
```
**src/components/ScheduleItemContent/ScheduleItemContent.tsx:88**
* Confirm that updating the navigation link from 'routes.GROUP' to 'routes.INDEX' correctly reflects the new routing structure and does not unintentionally alter navigation behavior.
```
    return `${routes.INDEX}?groupId=${groupId}`;
```
</details>


state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-02T15:40:00Z
user: login: Markusplay
state: CHANGES_REQUESTED
author_association: COLLABORATOR
submitted_at: 2025-05-03T10:27:53Z
user: login: VVriter
state: COMMENTED
author_association: NONE
submitted_at: 2025-05-03T10:42:20Z
user: login: Markusplay
state: APPROVED
author_association: COLLABORATOR
submitted_at: 2025-05-03T12:24:00Z
user: login: copilot-pull-request-reviewer[bot]
body: ## Pull Request Overview

This PR fixes console errors by updating styled components to accept only props prefixed with "$" and by standardizing route references across the application. Key changes include:
- Conversion of styled component prop names (e.g., justifyContent → $justifyContent) in several components.
- Updating route constants from GROUP to INDEX where appropriate.
- Changing the select component import from react‑select‑virtualized to react‑select and adding a wildcard route for unknown URLs.

### Reviewed Changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated no comments.

<details>
<summary>Show a summary per file</summary>

| File                                                         | Description                                                 |
| ------------------------------------------------------------ | ----------------------------------------------------------- |
| src/containers/ScheduleTypeTabs/ScheduleTypeTabs.tsx         | Updated route constant and styled component props.        |
| src/containers/ScheduleTypeTabs/ScheduleTypeTabs.style.ts    | Renamed styled component props to use the "$" prefix.       |
| src/containers/ScheduleTable/ScheduleTable.tsx                | Updated styled props for CurrentDayContainer to use "$start".|
| src/containers/ScheduleExams/ScheduleExams.tsx                | Adjusted JSX formatting with no functional changes.       |
| src/containers/MainSettings/MainSettings.tsx                  | Updated styled component props usage in the container.      |
| src/containers/MainSettings/MainSettings.style.ts             | Updated prop names and their usage in the styles.           |
| src/components/SearchSelect/SearchSelect.tsx                  | Changed select import and added null-check in handleChange. |
| src/components/ScheduleTypeTab/ScheduleTypeTab.tsx            | Updated route checking and styled prop for active tab.      |
| src/components/ScheduleTypeTab/ScheduleTypeTab.style.ts         | Renamed styled prop "active" to "$active".                  |
| src/components/ScheduleItemContent/ScheduleItemContent.tsx      | Updated route reference to INDEX in URL generation.         |
| src/components/RadioGroup/RadioGroup.tsx                      | Updated styled prop names to conform to the new pattern.    |
| src/components/RadioGroup/RadioGroup.style.ts                 | Updated styled prop names accordingly in RadioGroup styles. |
| src/common/styles/styles.ts                                   | Renamed "gap" prop to "$gap" in the Flex component.         |
| src/common/constants/routes.ts                               | Changed the GROUP key to INDEX for route consistency.       |
| src/app/App.tsx                                              | Added a wildcard route to redirect unknown URLs to "/" .     |
</details>


<details>
<summary>Files not reviewed (1)</summary>

* **package.json**: Language not supported
</details>



state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-03T18:11:57Z
user: login: niravzi
state: CHANGES_REQUESTED
author_association: COLLABORATOR
submitted_at: 2025-05-05T19:48:53Z
user: login: coderabbitai[bot]
state: COMMENTED
author_association: NONE
submitted_at: 2025-05-05T19:49:56Z
user: login: VVriter
state: COMMENTED
author_association: NONE
submitted_at: 2025-05-06T06:29:05Z
user: login: coderabbitai[bot]
state: COMMENTED
author_association: NONE
submitted_at: 2025-05-06T06:29:10Z
user: login: niravzi
state: APPROVED
author_association: COLLABORATOR
submitted_at: 2025-05-06T13:28:10Z

Review comments:
diff_hunk: @@ -2,7 +2,7 @@ import './SearchSelect.scss';
 
 import { EntityWithNameAndId } from '../../models/EntityWithNameAndId';
 import { ListOption } from '../../types/ListOption';
-import { Select } from 'react-select-virtualized';
+import Select from 'react-select';
path: src/components/SearchSelect/SearchSelect.tsx
user: login: coderabbitai[bot]
body: _💡 Verification agent_

<details>
<summary>🧩 Analysis chain</summary>

**Import change addresses console errors effectively**

Switching from `react-select-virtualized` to the standard `react-select` library resolves the console errors mentioned in the PR objectives. This is a good choice since `react-select` is already a project dependency and provides the same functionality needed here.


---

🏁 Script executed:

```shell
#!/bin/bash
# Verify if react-select-virtualized is still used elsewhere in the project
echo "Checking for remaining react-select-virtualized imports..."
rg "from ['\"]react-select-virtualized['\"]" --type ts --type tsx
```

Length of output: 226

---

🏁 Script executed:

```shell
#!/bin/bash
# Re-verify if react-select-virtualized is still referenced anywhere in the project
echo "Searching for any mentions of react-select-virtualized in .ts and .tsx files..."
rg "react-select-virtualized" --glob "*.ts" --glob "*.tsx"
```

Length of output: 292

---



</details>

**Remove leftover react-select-virtualized ambient module declaration**

The switch to `react-select` is correct, but there’s still an ambient module declared for the removed package in your type definitions. Please remove this to avoid stale type references:

• src/@types/index.d.ts  
  ```diff
  - declare module 'react-select-virtualized';
  ```

<!-- This is an auto-generated reply by CodeRabbit -->
created_at: 2025-05-01T22:23:10Z
author_association: NONE
path: yarn.lock
user: login: Markusplay
body: remove yarn.lock file please
created_at: 2025-05-03T10:18:51Z
author_association: COLLABORATOR
path: src/components/RadioGroup/RadioGroup.style.ts
user: login: Markusplay
body: run prettier to fix tabs in project
created_at: 2025-05-03T10:22:10Z
author_association: COLLABORATOR
diff_hunk: @@ -2,7 +2,7 @@ import './SearchSelect.scss';
 
 import { EntityWithNameAndId } from '../../models/EntityWithNameAndId';
 import { ListOption } from '../../types/ListOption';
-import { Select } from 'react-select-virtualized';
+import Select from 'react-select';
path: src/components/SearchSelect/SearchSelect.tsx
user: login: Markusplay
body: You changed `react-select-virtualized` to `react-select`, but we have many groups in select, so haven't you harmed performance?
created_at: 2025-05-03T10:27:43Z
author_association: COLLABORATOR
diff_hunk: @@ -2,7 +2,7 @@ import './SearchSelect.scss';
 
 import { EntityWithNameAndId } from '../../models/EntityWithNameAndId';
 import { ListOption } from '../../types/ListOption';
-import { Select } from 'react-select-virtualized';
+import Select from 'react-select';
path: src/components/SearchSelect/SearchSelect.tsx
user: login: VVriter
body: The select menu opens in approximately 160ms, which is good performance and within the acceptable range.
![image](https://github.com/user-attachments/assets/1713fbe6-272b-4042-9a5e-f7575995d44d)

Using react-select-virtualized results in an error.
![image](https://github.com/user-attachments/assets/9120873a-9100-41dc-a84b-4bc416bef827)

created_at: 2025-05-03T10:42:20Z
author_association: NONE
diff_hunk: @@ -2,7 +2,7 @@ import './SearchSelect.scss';
 
 import { EntityWithNameAndId } from '../../models/EntityWithNameAndId';
 import { ListOption } from '../../types/ListOption';
-import { Select } from 'react-select-virtualized';
+import Select from 'react-select';
path: src/components/SearchSelect/SearchSelect.tsx
user: login: niravzi
body: This should be resolved.
created_at: 2025-05-05T19:45:35Z
author_association: COLLABORATOR
diff_hunk: @@ -2,7 +2,7 @@ import './SearchSelect.scss';
 
 import { EntityWithNameAndId } from '../../models/EntityWithNameAndId';
 import { ListOption } from '../../types/ListOption';
-import { Select } from 'react-select-virtualized';
+import Select from 'react-select';
path: src/components/SearchSelect/SearchSelect.tsx
user: login: coderabbitai[bot]
body: <details>
<summary>🧩 Analysis chain</summary>

🏁 Script executed:
```
#!/bin/bash
# Check if the ambient module declaration has been removed
echo "Checking if the ambient module declaration for react-select-virtualized has been removed..."
cat src/@types/index.d.ts 2>/dev/null | grep -E "declare module ['\"]react-select-virtualized['\"]" || echo "No ambient module declaration found."

# Also check for any remaining references to react-select-virtualized in the codebase
echo -e "\nChecking for any remaining references to react-select-virtualized in the codebase..."
rg "react-select-virtualized" --glob "*.ts" --glob "*.tsx" || echo "No references found."
```

Length of output: 638

---



</details>

@niravzi The issue is not fully resolved yet. The ambient module declaration for 'react-select-virtualized' still exists in your codebase:

```
src/@types/index.d.ts:declare module 'react-select-virtualized';
```

You'll need to remove this line from your type definitions file to completely resolve the issue. Since you're now using the standard 'react-select' library instead of 'react-select-virtualized', this type declaration is no longer needed.

---

<details>
<summary>🧬 Code Graph Analysis Results</summary>

### Relevant snippets for understanding `src/components/SearchSelect/SearchSelect.tsx`:

---

#### From `src/types/ListOption.ts` (lines 1-4):
```typescript
export interface ListOption<T> {
  value: T;
  label: string;
}
```
- Defines the generic interface for options used in the select component.
- `value`: the underlying value of the option.
- `label`: the display string for the option.

---

#### From `src/models/EntityWithNameAndId.ts` (lines 1-4):
```typescript
export interface EntityWithNameAndId {
  id: string;
  name: string;
}
```
- Defines the interface for entities used as options in `SearchSelect`.
- Each entity has an `id` (string) and a `name` (string).

---

#### From `src/common/constants/selectOptions.ts` (lines 1-62):
```typescript
export const getSelectCustomStyle = (theme: any) => ({
  option(base: any) {
    return {
      ...base,
      color: theme['secondaryFontColor'],
    };
  },
  menu(base: any) {
    return {
      ...base,
      color: theme['secondaryFontColor'],
      '& .fast-option-focused': {
        color: theme['secondaryFontColor'],
      },
      '& .fast-option-selected': {
        color: theme['invertedFontColor'],
        fontWeight: 'bold',
        // background color can be also changed if needed
      },
      backgroundColor: theme['bgOptions'],
      zIndex: 1000,
    };
  },
  menuList(base: any) {
    return {
      ...base,
      backgroundColor: theme['bgOptions'],
      zIndex: 1000,
    };
  },
  control(base: any) {
    return {
      ...base,
      borderRadius: 8,
      borderWidth: 1,
      borderStyle: 'solid',
      borderColor: theme['neutral300'],
      backgroundColor: theme['bgPrimary'],
      color: theme['secondaryFontColor'],
      paddingTop: 2,
      paddingBottom: 2,
    };
  },
  indicatorSeparator(base: any) {
    return {
      ...base,
      display: 'none',
    };
  },
  singleValue(base: any) {
    return {
      ...base,
      color: theme['secondaryFontColor'],
    };
  },
  input(base: any) {
    return {
      ...base,
      color: theme['secondaryFontColor'],
    };
  },
});
```
- Provides custom styling for the `react-select` component based on the current theme.
- Styles various parts: option, menu, menuList, control, indicatorSeparator, singleValue, input.
- Uses theme colors such as `secondaryFontColor`, `invertedFontColor`, `bgOptions`, `neutral300`, and `bgPrimary`.
- Ensures consistent theming and z-index layering.

---

#### From `src/common/styles/styles.ts` (lines 23-28):
```typescript
export const media = {
  [ScreenSize.ExtraSmall]: `@media(max-width: ${SCREEN_SIZES[ScreenSize.ExtraSmall]})`,
  [ScreenSize.Small]: `@media(max-width: ${SCREEN_SIZES[ScreenSize.Small]})`,
  [ScreenSize.Medium]: `@media(max-width: ${SCREEN_SIZES[ScreenSize.Medium]})`,
  [ScreenSize.Big]: `@media(min-width: ${SCREEN_SIZES[ScreenSize.Big]})`,
};
```
- Defines media query strings for responsive design breakpoints.
- Used in `SearchSelect` styled component to adjust width on extra small screens.

---

#### From `src/common/constants/theme.ts` (lines 3-86):
- Defines two theme objects: `light` and `dark`.
- Each theme contains color and style properties such as `bgPrimary`, `bgOptions`, `neutral300`, `secondaryFontColor`, `invertedFontColor`, etc.
- These theme properties are used by `getSelectCustomStyle` to style the select component dynamically based on the active theme.

---

These snippets provide the type definitions, theming, styling, and responsive design context necessary to understand and work with the `SearchSelect.tsx` component.

</details>



---

<details>
<summary>✏️ Learnings added</summary>

```
Learnt from: niravzi
PR: kpi-ua/schedule.kpi.ua#329
File: src/components/SearchSelect/SearchSelect.tsx:5-5
Timestamp: 2025-05-05T19:49:53.604Z
Learning: When migrating from one library to another (like 'react-select-virtualized' to 'react-select'), ensure that all references to the original library are removed, including ambient module declarations in TypeScript definition files.
```

> Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure [review instructions](https://docs.coderabbit.ai/guides/review-instructions). You can manage existing learnings in the [app](https://app.coderabbit.ai/learnings).

</details>




<!-- <agentComponentType>chat-answer</agentComponentType> -->

<!-- <rawResChunk><answer><details>
<summary>🧩 Analysis chain</summary>

🏁 Script executed:
```
#!/bin/bash
# Check if the ambient module declaration has been removed
echo "Checking if the ambient module declaration for react-select-virtualized has been removed..."
cat src/@types/index.d.ts 2>/dev/null | grep -E "declare module ['\"]react-select-virtualized['\"]" || echo "No ambient module declaration found."

# Also check for any remaining references to react-select-virtualized in the codebase
echo -e "\nChecking for any remaining references to react-select-virtualized in the codebase..."
rg "react-select-virtualized" --glob "*.ts" --glob "*.tsx" || echo "No references found."
```

Length of output: 638

---



</details>

@niravzi The issue is not fully resolved yet. The ambient module declaration for 'react-select-virtualized' still exists in your codebase:

```
src/@types/index.d.ts:declare module 'react-select-virtualized';
```

You'll need to remove this line from your type definitions file to completely resolve the issue. Since you're now using the standard 'react-select' library instead of 'react-select-virtualized', this type declaration is no longer needed.

---

<details>
<summary>🧬 Code Graph Analysis Results</summary>

### Relevant snippets for understanding `src/components/SearchSelect/SearchSelect.tsx`:

---

#### From `src/types/ListOption.ts` (lines 1-4):
```typescript
export interface ListOption<T> {
  value: T;
  label: string;
}
```
- Defines the generic interface for options used in the select component.
- `value`: the underlying value of the option.
- `label`: the display string for the option.

---

#### From `src/models/EntityWithNameAndId.ts` (lines 1-4):
```typescript
export interface EntityWithNameAndId {
  id: string;
  name: string;
}
```
- Defines the interface for entities used as options in `SearchSelect`.
- Each entity has an `id` (string) and a `name` (string).

---

#### From `src/common/constants/selectOptions.ts` (lines 1-62):
```typescript
export const getSelectCustomStyle = (theme: any) => ({
  option(base: any) {
    return {
      ...base,
      color: theme['secondaryFontColor'],
    };
  },
  menu(base: any) {
    return {
      ...base,
      color: theme['secondaryFontColor'],
      '& .fast-option-focused': {
        color: theme['secondaryFontColor'],
      },
      '& .fast-option-selected': {
        color: theme['invertedFontColor'],
        fontWeight: 'bold',
        // background color can be also changed if needed
      },
      backgroundColor: theme['bgOptions'],
      zIndex: 1000,
    };
  },
  menuList(base: any) {
    return {
      ...base,
      backgroundColor: theme['bgOptions'],
      zIndex: 1000,
    };
  },
  control(base: any) {
    return {
      ...base,
      borderRadius: 8,
      borderWidth: 1,
      borderStyle: 'solid',
      borderColor: theme['neutral300'],
      backgroundColor: theme['bgPrimary'],
      color: theme['secondaryFontColor'],
      paddingTop: 2,
      paddingBottom: 2,
    };
  },
  indicatorSeparator(base: any) {
    return {
      ...base,
      display: 'none',
    };
  },
  singleValue(base: any) {
    return {
      ...base,
      color: theme['secondaryFontColor'],
    };
  },
  input(base: any) {
    return {
      ...base,
      color: theme['secondaryFontColor'],
    };
  },
});
```
- Provides custom styling for the `react-select` component based on the current theme.
- Styles various parts: option, menu, menuList, control, indicatorSeparator, singleValue, input.
- Uses theme colors such as `secondaryFontColor`, `invertedFontColor`, `bgOptions`, `neutral300`, and `bgPrimary`.
- Ensures consistent theming and z-index layering.

---

#### From `src/common/styles/styles.ts` (lines 23-28):
```typescript
export const media = {
  [ScreenSize.ExtraSmall]: `@media(max-width: ${SCREEN_SIZES[ScreenSize.ExtraSmall]})`,
  [ScreenSize.Small]: `@media(max-width: ${SCREEN_SIZES[ScreenSize.Small]})`,
  [ScreenSize.Medium]: `@media(max-width: ${SCREEN_SIZES[ScreenSize.Medium]})`,
  [ScreenSize.Big]: `@media(min-width: ${SCREEN_SIZES[ScreenSize.Big]})`,
};
```
- Defines media query strings for responsive design breakpoints.
- Used in `SearchSelect` styled component to adjust width on extra small screens.

---

#### From `src/common/constants/theme.ts` (lines 3-86):
- Defines two theme objects: `light` and `dark`.
- Each theme contains color and style properties such as `bgPrimary`, `bgOptions`, `neutral300`, `secondaryFontColor`, `invertedFontColor`, etc.
- These theme properties are used by `getSelectCustomStyle` to style the select component dynamically based on the active theme.

---

These snippets provide the type definitions, theming, styling, and responsive design context necessary to understand and work with the `SearchSelect.tsx` component.

</details>



---

<details>
<summary>✏️ Learnings added</summary>

```
Learnt from: niravzi
PR: kpi-ua/schedule.kpi.ua#329
File: src/components/SearchSelect/SearchSelect.tsx:5-5
Timestamp: 2025-05-05T19:49:53.604Z
Learning: When migrating from one library to another (like 'react-select-virtualized' to 'react-select'), ensure that all references to the original library are removed, including ambient module declarations in TypeScript definition files.
```

> Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure [review instructions](https://docs.coderabbit.ai/guides/review-instructions). You can manage existing learnings in the [app](https://app.coderabbit.ai/learnings).

</details>

</answer></rawResChunk> -->

<!-- This is an auto-generated reply by CodeRabbit -->
created_at: 2025-05-05T19:49:56Z
author_association: NONE
diff_hunk: @@ -2,7 +2,7 @@ import './SearchSelect.scss';
 
 import { EntityWithNameAndId } from '../../models/EntityWithNameAndId';
 import { ListOption } from '../../types/ListOption';
-import { Select } from 'react-select-virtualized';
+import Select from 'react-select';
path: src/components/SearchSelect/SearchSelect.tsx
user: login: VVriter
body: Resolved
created_at: 2025-05-06T06:29:05Z
author_association: NONE
diff_hunk: @@ -2,7 +2,7 @@ import './SearchSelect.scss';
 
 import { EntityWithNameAndId } from '../../models/EntityWithNameAndId';
 import { ListOption } from '../../types/ListOption';
-import { Select } from 'react-select-virtualized';
+import Select from 'react-select';
path: src/components/SearchSelect/SearchSelect.tsx
user: login: coderabbitai[bot]
body: > Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

<!-- This is an auto-generated mute comment by CodeRabbit -->
created_at: 2025-05-06T06:29:10Z
author_association: NONE

PR comments:
user: login: coderabbitai[bot]
created_at: 2025-05-01T22:21:03Z
body: <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- walkthrough_start -->

"""
## Walkthrough

This update primarily standardizes the naming convention for styled-component props by prefixing them with a dollar sign (e.g., `gap` to `$gap`, `active` to `$active`) across multiple components and style files. It also refactors route naming by renaming the `GROUP` route to `INDEX` and updates all related usages. Additionally, a catch-all route is introduced in the routing configuration to redirect unmatched paths to the home page. The import for the `Select` component in `SearchSelect` is switched from `react-select-virtualized` to `react-select`, with added null handling in the change handler. No logic or exported entity signatures are altered except for styled-component prop types.

## Changes

| File(s)                                                                                         | Change Summary                                                                                                       |
|------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|
| package.json                                                                                   | Reordered devDependencies for clarity; no additions or removals.                                                    |
| src/app/App.tsx                                                                               | Added catch-all route to redirect unknown paths to root using `<Navigate>`.                                         |
| src/common/constants/routes.ts<br>src/components/ScheduleItemContent/ScheduleItemContent.tsx<br>src/components/ScheduleTypeTab/ScheduleTypeTab.tsx<br>src/containers/ScheduleTypeTabs/ScheduleTypeTabs.tsx | Renamed `routes.GROUP` to `routes.INDEX` and updated all references.                                                |
| src/common/styles/styles.ts<br>src/components/RadioGroup/RadioGroup.style.ts<br>src/components/ScheduleTypeTab/ScheduleTypeTab.style.ts<br>src/containers/MainSettings/MainSettings.style.ts<br>src/containers/ScheduleTable/ScheduleTable.tsx<br>src/containers/ScheduleTypeTabs/ScheduleTypeTabs.style.ts | Prefixed styled-component props with `$` (e.g., `gap` → `$gap`, `active` → `$active`, etc.) and updated type signatures. |
| src/components/RadioGroup/RadioGroup.tsx<br>src/components/ScheduleTypeTab/ScheduleTypeTab.tsx<br>src/containers/MainSettings/MainSettings.tsx<br>src/containers/ScheduleTypeTabs/ScheduleTypeTabs.tsx<br>src/containers/ScheduleTable/ScheduleTable.tsx | Updated JSX to pass new `$`-prefixed props to styled components.                                                    |
| src/components/SearchSelect/SearchSelect.tsx                                                  | Changed import from `react-select-virtualized` to default import from `react-select`; updated `handleChange` to handle null option. |
| src/@types/index.d.ts                                                                         | Removed module declaration for `react-select-virtualized`.                                                          |
| src/containers/ScheduleExams/ScheduleExams.tsx                                               | Removed unnecessary line breaks and indentation in JSX; no functional changes.                                      |
| src/queries/useCurrentTime.ts                                                                | Added newline at end of file; no functional changes.                                                                 |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant User
    participant App
    participant Router

    User->>App: Navigates to unknown path
    App->>Router: <Routes> with catch-all route
    Router-->>App: Matches "*" route
    App->>Router: <Navigate to="/" replace />
    Router-->>User: Redirects to home page ("/")
```

## Suggested labels

`enhancement`

## Suggested reviewers

- niravzi

## Poem

> A rabbit hopped through fields of code,  
> Renaming props with dollar’s mode.  
> From GROUP to INDEX, routes align,  
> And unknown paths now all resign—  
> Redirected home, they safely go,  
> While styled components steal the show!  
> 🐇✨
"""

<!-- walkthrough_end -->


---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between ca1a1c3a2b101c15699d38e94f3ba728ae90eaf5 and 4da76b57b40fc6aa5c69547638262ba5a5c918e7.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `src/@types/index.d.ts` (0 hunks)

</details>

<details>
<summary>💤 Files with no reviewable changes (1)</summary>

* src/@types/index.d.ts

</details>

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


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNxU3bABsvkCiQBHbGlcABpIcVwvOkgAIgAxeAAPGKYMRHxoyEoKfApEUNjIAHc0ZAcBZnUaejkI2BJIbERKSAA1Nop1VrLrOwxHAVaAZgAmAE4NGAbIZm0sJAdGtFpaf0QW+lLkXBm0jKyh+AwiSAAzL3xFGOL1WHRuXnwk+DmaL3lRgAZsily+NgbNCkZD+LzUGIEeqNRC4WTRehMZjcfDkDC4ZBeeACKguKYAZW4ongZ3gDDQPlk4V2jRyeWQ+AYDGwfxiQ3JzUaqI+PFy3GQvBIpJSWzu6DiABIis5lj58MUYsd7HCEQpkaj2IgNG4ZsKUBgJJkpIi8v4xMdTrtUHMhHlfv99dD7CRomIwGwBmqUWjcJAsTjnLIpgBBVbqeCoikfakzV7caIe3DUCNYbaMWCYUj0M65ZhNRAWp2xfxoN0tV24MASeAUXDYCnwABedCK/tx8ihxZIpcr5dEYSKxQQDHuqBp9jQbD92Pb6Aw9FQx1hUbZ8iUZzQ3l9SvHTxEYim7mQI8zjXWRshe1RB1pf3pc4XyNyxqdSO97AA5DISBnq3ltQYFiQAAwiwiblI4cwuDqjScnwHRdDQfBPNWSj0Ng3C0BCDJYLu3i+P4QQhJAdQVFUuDiCc4rkMUarkfU1DnMkMRoCR2BEIeDTyMcDBeNga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AM4LaN9FOizR6oi0VhFtG2iAAbHGIEBnAnRcTL4GmPzHDAGAtAe0TaPGCspQYTo20eMFWBnBRgAgX0QIB9FoBWIlMC0eSDiZoA4mDAYYGgDrG5iuxcTX0WmPGDVjhgtokgGWLODDB1oTo0YPaInFfBuwfoxMSKPLFoAnRaY+sU6IjFfBHRaY5sb6IYDDjfRrKDcWONGBpi6xaAX0deIYDjA4m44hMVDCTEQA6I2o3UfqJUYFQ6AWoiZPoCAA=== -->

<!-- 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=kpi-ua/schedule.kpi.ua&utm_content=329):

- 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.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### 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 -->
author_association: NONE
user: login: VVriter
created_at: 2025-05-03T10:31:14Z
body: Fixed bug in new commit
![image](https://github.com/user-attachments/assets/23e4687c-0019-499d-a780-7a6b71e61d96)
![image](https://github.com/user-attachments/assets/ef49be72-7259-463d-a0b2-c84b6f29f504)

author_association: NONE
user: login: VVriter
created_at: 2025-05-03T10:33:42Z
body: ah sorry didnt see comments, fixing...
author_association: NONE
user: login: VVriter
created_at: 2025-05-05T05:29:34Z
body: @niravzi review pls 
author_association: NONE