-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(components): deprecate button (#5816)
* add an eslint rule for the button * migrate copy to clipboard button * migrate span details * migrate src/pages/trace/SpanToDatasetExampleDialog.tsx: * migrate modified: src/pages/settings/UsersCard.tsx modified: src/pages/trace/EditSpanAnnotationsButton.tsx modified: src/pages/trace/SpanAnnotationsEmpty.tsx modified: src/pages/trace/SpanToDatasetExampleDialog.tsx * migrate src/components/auth/CreateAPIKeyDialog.tsx src/components/auth/OneTimeAPIKeyDialog.tsx src/components/code/styles.tsx * fix span image * src/pages/settings/UserRoleChangeDialog.tsx * migrate more * convert more buttons: src/components/table/CellWithControlsWrapper.tsx modified: src/components/trace/TraceTree.tsx modified: src/pages/ErrorElement.tsx modified: src/pages/auth/OAuth2Login.tsx modified: src/pages/auth/ResetPasswordForm.tsx modified: src/pages/auth/ResetPasswordWithTokenForm.tsx modified: src/pages/dataset/DatasetHistoryButton.tsx modified: src/pages/embedding/ExportSelectionButton.tsx modified: src/pages/embedding/PointSelectionPanelContent.tsx modified: src/pages/example/EditExampleDialog.tsx modified: src/pages/experiment/ExperimentCompareTable.tsx modified: src/pages/experiments/ExperimentSelectionToolbar.tsx modified: src/pages/playground/ModelConfigButton.tsx modified: src/pages/playground/PlaygroundDatasetExamplesTable.tsx modified: src/pages/playground/PlaygroundRunButton.tsx modified: src/pages/playground/PlaygroundRunTraceDialog.tsx modified: src/pages/playground/PlaygroundTemplate.tsx modified: src/pages/playground/RunMetadataFooter.tsx * WIP * finish migration * fix playwrite * fix types
- Loading branch information
1 parent
b7fe57c
commit 1fbd3a0
Showing
91 changed files
with
562 additions
and
608 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,20 +7,19 @@ async function globalSetup(config: FullConfig) { | |
page.goto(`${baseURL}/login`); | ||
await page.getByLabel("Email").fill("admin@localhost"); | ||
await page.getByLabel("Password").fill("admin"); | ||
await page.getByRole("button", { name: "Login", exact: true }).click(); | ||
await page.getByRole("button", { name: "Log In", exact: true }).click(); | ||
|
||
// Reset admin password | ||
await page.waitForURL("**/reset-password"); | ||
await page.getByLabel("Old Password").fill("admin"); | ||
await page.getByLabel("New Password").fill("admin123"); | ||
await page.getByLabel("Confirm Password").fill("admin123"); | ||
await page.getByRole("button", { name: "Reset Password" }).click(); | ||
|
||
await page.goto(`${baseURL}/login`); | ||
|
||
await page.getByLabel("Email").fill("admin@localhost"); | ||
await page.getByLabel("Password").fill("admin123"); | ||
await page.getByRole("button", { name: "Login", exact: true }).click(); | ||
await page.getByRole("button", { name: "Log In", exact: true }).click(); | ||
await page.waitForURL("**/projects"); | ||
await page.goto(`${baseURL}/settings`); | ||
await page.waitForURL("**/settings"); | ||
|
@@ -46,7 +45,7 @@ async function globalSetup(config: FullConfig) { | |
page.goto(`${baseURL}/login`); | ||
await page.getByLabel("Email").fill("[email protected]"); | ||
await page.getByLabel("Password").fill("member"); | ||
await page.getByRole("button", { name: "Login", exact: true }).click(); | ||
await page.getByRole("button", { name: "Log In", exact: true }).click(); | ||
|
||
// Reset member password | ||
await page.waitForURL("**/reset-password"); | ||
|
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
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
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
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 @@ | ||
export * from "./Button"; |
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
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
Oops, something went wrong.