Files
Alaister YoungandJoshen Lim c6dc2c566e feat: workflow run logs (#29678)
* feat: workflow run logs

* progress

* adds logs modal

* remove menu item

* output raw text

* update parseAs

* accept text/plain

* cleanup ui

* feature flag new logs

* fix types

* fix condition

* cleanup spacing

* loading spacing

* cheeky console.log

* more log

* split logs properly

* add workflow logs to prod branches

* address some feedback

* Some UI tweaks

* More UI tweak

* More UI tweak

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-10-10 08:29:04 +00:00

39 lines
843 B
TypeScript

import { cn } from 'ui'
export interface ShimmeringLoader {
className?: string
delayIndex?: number
animationDelay?: number
}
const ShimmeringLoader = ({
className,
delayIndex = 0,
animationDelay = 150,
}: ShimmeringLoader) => {
return (
<div
className={cn('shimmering-loader rounded py-3', className)}
style={{
animationFillMode: 'backwards',
animationDelay: `${delayIndex * animationDelay}ms`,
}}
/>
)
}
interface GenericSkeletonLoaderProps {
className?: string
}
const GenericSkeletonLoader = ({ className }: GenericSkeletonLoaderProps) => (
<div className={cn(className, 'space-y-2')}>
<ShimmeringLoader />
<ShimmeringLoader className="w-3/4" />
<ShimmeringLoader className="w-1/2" />
</div>
)
export { GenericSkeletonLoader }
export default ShimmeringLoader