UI/update sidebar (#480)

* update minicalendar

* update left sidebar

* chore: update twake-mui to version 1.1.4

- Update @linagora/twake-mui from local file to npm package 1.1.4
- Add margin to TempCalendarsInput section in sidebar
- Remove margin from PeopleSearch component (moved to parent)

* Changed wording on my calendars and event creation button

---------

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
lenhanphung
2026-02-02 16:02:23 +07:00
committed by GitHub
parent 0a8051870a
commit 5ae838c425
13 changed files with 116 additions and 88 deletions
@@ -148,7 +148,7 @@ describe("CalendarSelection", () => {
}
);
const addButtons = screen.getAllByTestId("MoreVertIcon");
const addButtons = screen.getAllByTestId("MoreHorizIcon");
fireEvent.click(addButtons[0]);
userEvent.click(screen.getByText(/delete/i));
@@ -180,7 +180,7 @@ describe("CalendarSelection", () => {
}
);
const addButtons = screen.getAllByTestId("MoreVertIcon");
const addButtons = screen.getAllByTestId("MoreHorizIcon");
fireEvent.click(addButtons[1]);
userEvent.click(screen.getByText(/remove/i));
+13 -5
View File
@@ -114,6 +114,11 @@ describe("HandleLogin", () => {
test("goes to error page when there is error in user data", async () => {
const mockDispatch = jest.fn();
jest.spyOn(appHooks, "useAppDispatch").mockReturnValue(mockDispatch);
jest.spyOn(oidcAuth, "Auth").mockResolvedValue({
code_verifier: "verifier123",
state: "state123",
redirectTo: new URL("http://login.url"),
});
renderWithProviders(<HandleLogin />, {
user: {
@@ -128,14 +133,17 @@ describe("HandleLogin", () => {
tokens: { access_token: "test" },
},
calendars: {
pending: false,
error: false,
list: {},
pending: false,
error: null,
},
});
await waitFor(() => {
expect(mockDispatch).toHaveBeenCalledWith(push("/error"));
});
await waitFor(
() => {
expect(mockDispatch).toHaveBeenCalledWith(push("/error"));
},
{ timeout: 3000 }
);
});
});