Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* overview job displaying git card or container * design of summary page * variable row creation funnel
- Loading branch information
Showing
8 changed files
with
211 additions
and
79 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
16 changes: 16 additions & 0 deletions
16
libs/pages/application/src/lib/ui/about-content-container/about-content-container.spec.tsx
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,16 @@ | ||
import { render } from '__tests__/utils/setup-jest' | ||
import { applicationFactoryMock } from '@qovery/domains/application' | ||
import { ContainerApplicationEntity } from '@qovery/shared/interfaces' | ||
import AboutContentContainer, { AboutContentContainerProps } from './about-content-container' | ||
|
||
const mockApplication = applicationFactoryMock(1)[0] | ||
const props: AboutContentContainerProps = { | ||
application: mockApplication as ContainerApplicationEntity, | ||
} | ||
|
||
describe('AboutContentContainer', () => { | ||
it('should render successfully', () => { | ||
const { baseElement } = render(<AboutContentContainer {...props} />) | ||
expect(baseElement).toBeTruthy() | ||
}) | ||
}) |
31 changes: 31 additions & 0 deletions
31
libs/pages/application/src/lib/ui/about-content-container/about-content-container.tsx
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,31 @@ | ||
import { ContainerApplicationEntity, JobApplicationEntity } from '@qovery/shared/interfaces' | ||
import { timeAgo } from '@qovery/shared/utils' | ||
|
||
export interface AboutContentContainerProps { | ||
application: ContainerApplicationEntity | JobApplicationEntity | ||
} | ||
|
||
export function AboutContentContainer(props: AboutContentContainerProps) { | ||
const { application } = props | ||
|
||
return ( | ||
<div className="py-6 px-10"> | ||
<div className="text-subtitle mb-3 text-text-600">Image information</div> | ||
<div className="mb-3"> | ||
<p className="text-text-500 mb-2"> | ||
Image name: {(application as ContainerApplicationEntity).image_name}{' '} | ||
{(application as JobApplicationEntity).source?.image?.image_name} | ||
</p> | ||
<p className="text-text-500 mb-2"> | ||
Latest deployed tag: {(application as ContainerApplicationEntity).tag}{' '} | ||
{(application as JobApplicationEntity).source?.image?.tag} | ||
</p> | ||
<p className="text-text-400 text-sm"> | ||
{timeAgo(new Date((application as ContainerApplicationEntity)?.updated_at || ''))} | ||
</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default AboutContentContainer |
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.