Skip to content

Commit

Permalink
chore(ui): finalise Typescript migration for all non-deprecated compo…
Browse files Browse the repository at this point in the history
…nents (#668)

* chore(ui): delete only .ts migrated files from deprecated_js

* chore(ui): update index file exports to .ts components

* chore(ui): expose .ts AppShellProvider and keep deprectaed withDeprecationWarning for ContentAreaWrapper

* chore(ui): add back migrated components for use in deprecated, non-migrated js files

* chore(ui): put back components used in .js files within deprecated js components

* chore(ui): changeset

* chore(ui): fix content exports

* chore(ui): fix export

* chore(ui): fix exports

* chore(ui): remove deprecated component from tests
  • Loading branch information
guoda-puidokaite authored Dec 9, 2024
1 parent b12fa10 commit fbd1880
Show file tree
Hide file tree
Showing 63 changed files with 96 additions and 7,697 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-cameras-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudoperators/juno-ui-components": minor
---

Finalise Typescript migration for all non-deprecated components and clean up

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* SPDX-License-Identifier: Apache-2.0
*/

export { ComboBoxOption } from "./ComboBoxOption.component.js"
export { AppShellProvider } from "../AppShellProvider/AppShellProvider.component"
6 changes: 0 additions & 6 deletions packages/ui-components/src/components/Filters/Filters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import * as React from "react"
import { render, screen } from "@testing-library/react"
import userEvent from "@testing-library/user-event"
import { Filters } from "./index"
import { SearchInput } from "../../deprecated_js/SearchInput"

describe("Filters", () => {
test("renders Filters", async () => {
Expand Down Expand Up @@ -118,11 +117,6 @@ describe("Filters", () => {
expect(handleClear).toHaveBeenCalledTimes(1)
})

test("renders a SearchInput as passed", async () => {
render(<Filters search={<SearchInput />}></Filters>)
expect(screen.getByRole("searchbox")).toBeInTheDocument()
})

test("renders loading Filters as passed", async () => {
const filters = {
label: "Filter",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions packages/ui-components/src/deprecated_js/ButtonRow/index.js

This file was deleted.

Loading

0 comments on commit fbd1880

Please sign in to comment.