generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: delete Deployments tab, module tree uses old deployments compon…
…ents (#2560) * Removes `Deployments` tab * Removes all the extraneous page headers (#2490) * Fixes all the routing to point to `/modules/{moduleName}/...` instead of `/deployments/{deploymentKey}/...` * Minor cleanup of deployment components' internal logic after replacing `deploymentKey` with `moduleName` in the outermost interface https://github.com/user-attachments/assets/ad785b7c-3e88-4d8d-8edb-b14bed441c98
- Loading branch information
Showing
17 changed files
with
134 additions
and
116 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { expect, ftlTest } from './ftl-test' | ||
|
||
ftlTest('shows verbs for deployment', async ({ page }) => { | ||
const modulesNavItem = page.getByRole('link', { name: 'Modules' }) | ||
await modulesNavItem.click() | ||
|
||
const moduleEchoRow = page.getByRole('button', { name: 'echo' }) | ||
const moduleEcho = moduleEchoRow.locator('svg').nth(1) | ||
await moduleEcho.click() | ||
|
||
await expect(page).toHaveURL(/\/modules\/echo/) | ||
|
||
await expect(page.getByText('Deployment', { exact: true })).toBeVisible() | ||
await expect(page.getByText('Deployed dpl-echo')).toBeVisible() | ||
}) |
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,10 @@ | ||
import { expect, ftlTest } from './ftl-test' | ||
|
||
ftlTest('shows active modules', async ({ page }) => { | ||
const modulesNavItem = page.getByRole('link', { name: 'Modules' }) | ||
await modulesNavItem.click() | ||
await expect(page).toHaveURL(/\/modules$/) | ||
|
||
await expect(page.getByText('dpl-time')).toBeVisible() | ||
await expect(page.getByText('dpl-echo')).toBeVisible() | ||
}) |
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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { useParams } from 'react-router-dom' | ||
import { DeploymentPage } from '../deployments/DeploymentPage' | ||
|
||
export const ModulePanel = () => { | ||
const { moduleName } = useParams() | ||
|
||
return ( | ||
<div className='flex-1 py-2 px-4'> | ||
<p>Module: {moduleName}</p> | ||
</div> | ||
) | ||
return <DeploymentPage moduleName={moduleName || ''} /> | ||
} |
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
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,4 @@ | ||
{ | ||
"status": "passed", | ||
"failedTests": [] | ||
} |