diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..3bb32f46 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,22 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/). + +## [1.0.0-alpha.1] - 2024-08-26 + +### Added + +### Changed +- Changed minimum character limit input field for adding new ideation https://github.com/chingu-x/chingu-dashboard/issues/171 +- Removed character count from password input https://github.com/chingu-x/chingu-dashboard/issues/173 +- Changed arrow direction of accordion in agenda section in sprints page https://github.com/chingu-x/chingu-dashboard/issues/187 + +### Fixed +- Fixed typo in placeholder text in new ideation form https://github.com/chingu-x/chingu-dashboard/issues/181 +- Fixed issue with saving meeting notes https://github.com/chingu-x/chingu-dashboard/issues/186 +- Fixed start meeting link https://github.com/chingu-x/chingu-dashboard/issues/188 +- Fixed display of date in error message in create meeting page when selecting a meeting time https://github.com/chingu-x/chingu-dashboard/issues/189 +- Fixed issue with weekly checkin widget displaying "due today" text in 1st week of voyage https://github.com/chingu-x/chingu-dashboard/issues/190 diff --git a/src/app/(main)/dashboard/components/Calendar/Calendar.test.tsx b/src/app/(main)/dashboard/components/Calendar/Calendar.test.tsx new file mode 100644 index 00000000..f920887a --- /dev/null +++ b/src/app/(main)/dashboard/components/Calendar/Calendar.test.tsx @@ -0,0 +1,27 @@ +import { render } from "@testing-library/react"; +import { Provider } from "react-redux"; +import { configureStore } from "@reduxjs/toolkit"; +import { format } from "date-fns"; +import Calendar from "./Calendar"; +import { rootReducer } from "@/store/store"; + +describe("Calendar Component", () => { + // not the best test. maybe refactor to e2e test later + it("displays the month and year on a single line", () => { + const store = configureStore({ + reducer: rootReducer, + }); + + const { getByText } = render( + + + , + ); + + const currentDate = new Date(); + const formattedDate = format(currentDate, "MMMM y"); + const monthYearElement = getByText(formattedDate); + + expect(monthYearElement.closest("div")).toHaveClass("whitespace-nowrap"); + }); +}); diff --git a/src/app/(main)/dashboard/components/Calendar/Calendar.tsx b/src/app/(main)/dashboard/components/Calendar/Calendar.tsx index a6cbfaef..de2c5b63 100644 --- a/src/app/(main)/dashboard/components/Calendar/Calendar.tsx +++ b/src/app/(main)/dashboard/components/Calendar/Calendar.tsx @@ -50,7 +50,7 @@ export default function Calendar({ {/* CALENDAR */}
-
+
{/* CALENDAR CONTROLS */}