1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00

feat!: refactors UI using faster components and clean up visually (#2381)

* feat: moves to tailwindcss and better component library

* update styles

* creates toggle component

* adds drop down component

* cleans up components

* removes unused components

* uses tailwind for scroll view

* removes table component

* improves animation

* cleans up more styles

* uses more tailwind

* cleans up more styles with flex

* more styles

* removes bulma

* adds colors

* updates modules

* fixes bugs

* stops importing styles.scss

* more clean up

* cleans up headers

* cleans up title

* fixes title

* fixes mobile-hidden

* fixes shadow

* fixes colors

* add tailwindcss/nesting

* adds more colors

* fixes more colors

* updates colors

* fixes colors

* colors

* fixes menu on left

* menu and modal

* menu and modal

* fuzzy search

* fixes menu on left

* remove logs

* cleans up search

* adds host to search

* remove outline from inputs

* cleans up left search icon

* removes unused styles

* fixes docker

* removes sass!

* cleans up styles

* Fixe smobile menu

* fixes mobile menu

* fixes typecheck

* fixes seconday color

* adds drop down for container

* cleans header css

* updates css

* fixes other layouts

* updates some tests

* fixes border

* fixes home screen font

* fixes top header

* fixes tests

* fixes fieldlist

* fixes complex

* cleans up more

* removes index

* fixes tests

* fixes tests

* resolves conflicts
This commit is contained in:
Amir Raminfar
2023-09-22 10:59:29 -07:00
committed by GitHub
parent 2d30c8c529
commit 9f3a256334
77 changed files with 2015 additions and 2517 deletions

View File

@@ -4,6 +4,6 @@ test("authentication", async ({ page }) => {
await page.goto("http://auth:8080/");
await page.locator('input[name="username"]').fill("foo");
await page.locator('input[name="password"]').fill("bar");
await page.getByRole("button", { name: "Login" }).click();
await expect(page.locator("[data-label=all].label")).toHaveText("Containers");
await page.locator('button[type="submit"]').click();
await expect(page.getByTestId("containers")).toHaveText("Containers");
});

View File

@@ -16,7 +16,7 @@ test("has dashboard text", async ({ page }) => {
});
test("click on settings button", async ({ page }) => {
await page.getByRole("link", { name: "Settings" }).click();
await page.getByTestId("settings").click();
await expect(page.getByRole("heading", { name: "About" })).toBeVisible();
});
@@ -34,6 +34,6 @@ test.describe("es locale", () => {
test.use({ locale: "es" });
test("translated text", async ({ page }) => {
await expect(page.locator("[data-label=all].label")).toHaveText("Contenedores");
await expect(page.getByTestId("containers")).toHaveText("Contenedores");
});
});

View File

@@ -9,7 +9,7 @@ test("has right title", async ({ page }) => {
});
test("select running container", async ({ page }) => {
await page.locator("ul.menu-list").getByRole("link", { name: "dozzle" }).click();
await page.getByTestId("side-menu").getByRole("link", { name: "dozzle" }).click();
await expect(page).toHaveURL(/\/container/);
await expect(page.getByText("Accepting connections")).toBeVisible();
});

View File

@@ -5,14 +5,20 @@ test.beforeEach(async ({ page }) => {
});
test.describe("default", () => {
test("homepage", async ({ page }) => {
await expect(page.locator("aside")).toHaveScreenshot({});
test("homepage", async ({ page, isMobile }) => {
if (isMobile) {
await page.getByTestId("hamburger").click();
}
await expect(page.getByTestId("navigation")).toHaveScreenshot();
});
});
test.describe("dark", () => {
test.use({ colorScheme: "dark" });
test("homepage", async ({ page }) => {
await expect(page.locator("aside")).toHaveScreenshot({});
test("homepage", async ({ page, isMobile }) => {
if (isMobile) {
await page.getByTestId("hamburger").click();
}
await expect(page.getByTestId("navigation")).toHaveScreenshot();
});
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB