-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: lucferbux <[email protected]>
- Loading branch information
Showing
63 changed files
with
3,744 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# Model Registry UI Architecture | ||
|
||
[TBD] | ||
## Overview | ||
|
||
![Overview](./meta/arch-overview.png) | ||
|
||
[TBD] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { ModelRegistryResponse } from '~/app/types'; | ||
|
||
export const mockBFFResponse = <T>(data: T): ModelRegistryResponse<T> => ({ | ||
data, | ||
}); |
8 changes: 0 additions & 8 deletions
8
clients/ui/frontend/src/__mocks__/mockModelRegistryResponse.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
clients/ui/frontend/src/__tests__/cypress/cypress/pages/components/Contextual.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export class Contextual<E extends HTMLElement> { | ||
constructor(private parentSelector: () => Cypress.Chainable<JQuery<E>>) {} | ||
|
||
find(): Cypress.Chainable<JQuery<E>> { | ||
return this.parentSelector(); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
clients/ui/frontend/src/__tests__/cypress/cypress/pages/components/Modal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type { ByRoleOptions } from '@testing-library/react'; | ||
|
||
export class Modal { | ||
constructor(private title: ByRoleOptions['name']) {} | ||
|
||
shouldBeOpen(open = true): void { | ||
if (open) { | ||
this.find().testA11y(); | ||
} else { | ||
this.find().should('not.exist'); | ||
} | ||
} | ||
|
||
find(): Cypress.Chainable<JQuery<HTMLElement>> { | ||
return cy.findByRole('dialog', { name: this.title }); | ||
} | ||
|
||
findCloseButton(): Cypress.Chainable<JQuery<HTMLElement>> { | ||
return this.find().findByRole('button', { name: 'Close' }); | ||
} | ||
|
||
findCancelButton(): Cypress.Chainable<JQuery<HTMLElement>> { | ||
return this.findFooter().findByRole('button', { name: 'Cancel' }); | ||
} | ||
|
||
findFooter(): Cypress.Chainable<JQuery<HTMLElement>> { | ||
return this.find().find('footer'); | ||
} | ||
} |
Oops, something went wrong.