Skip to content

Commit

Permalink
fix(website): small visual fixes on deployments page (#1632)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlescano authored Jan 16, 2025
1 parent b78a084 commit 017f02e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 41 deletions.
2 changes: 0 additions & 2 deletions packages/website/src/features/Deploy/BuildStateAlerts.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Alert, AlertDescription } from '@/components/ui/alert';
import { Button } from '@/components/ui/button';
import { CustomSpinner } from '@/components/CustomSpinner';
import { cn } from '@/lib/utils';

interface BuildStateAlertsProps {
Expand All @@ -20,7 +19,6 @@ export function BuildStateAlerts({
<>
{buildStateMessage && (
<Alert variant="info" className="mt-6">
<CustomSpinner className="mr-3 h-4 w-4" />
<AlertDescription className="font-bold">
{buildStateMessage}
</AlertDescription>
Expand Down
2 changes: 1 addition & 1 deletion packages/website/src/features/Deploy/NoncePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function NoncePicker({ safe, handleChange }: Params) {
if (safeTxs.staged.length === 0) return null;

return (
<div className="flex justify-between items-center flex-wrap gap-4">
<div className="flex justify-between items-center flex-wrap gap-4 mb-4">
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ export default function QueueFromGitOps() {
}

if (
cannonDefInfo.isFetching ||
prevCannonDeployInfo.isFetching ||
onChainPrevPkgQuery.isFetching ||
partialDeployInfo?.isFetching
Expand Down
35 changes: 7 additions & 28 deletions packages/website/src/features/Deploy/SignTransactionsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ export default function SignTransactionsPage() {
const executedTransactions = useExecutedTransactions(currentSafe);
const [isChecked, setIsChecked] = useState(true);

const {
paginatedData: paginatedStagedTxs,
hasMore: hasMoreStagedTxs,
fetchMoreData: fetchMoreStagedTxs,
} = useInMemoryPagination(stagedTransactions.staged, 20);

const {
paginatedData: paginatedExecutedTxs,
hasMore: hasMoreExecutedTxs,
Expand Down Expand Up @@ -70,28 +64,13 @@ export default function SignTransactionsPage() {
</p>
</div>
) : (
<div
className="max-h-[40dvh] overflow-y-auto"
id="staged-transactions-container"
>
<InfiniteScroll
dataLength={paginatedStagedTxs.length}
next={fetchMoreStagedTxs}
hasMore={hasMoreStagedTxs}
loader={
<div className="p-2 text-xs text-muted-foreground">
Loading more transactions...
</div>
}
scrollableTarget="staged-transactions-container"
>
<TransactionTable
transactions={paginatedStagedTxs.map((tx) => tx.txn)}
safe={currentSafe}
hideExternal={false}
isStaged
/>
</InfiniteScroll>
<div className="max-h-[40dvh] overflow-y-auto">
<TransactionTable
transactions={stagedTransactions.staged.map((tx) => tx.txn)}
safe={currentSafe}
hideExternal={false}
isStaged
/>
</div>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Alert, AlertDescription } from '@/components/ui/alert';
import { Button } from '@/components/ui/button';
import { CustomSpinner } from '@/components/CustomSpinner';
import {
Tooltip,
TooltipContent,
Expand Down Expand Up @@ -100,7 +99,6 @@ export function TransactionPreviewAndExecution({
)}
{writeToIpfsMutationRes?.isLoading && (
<Alert className="mt-6" variant="info">
<CustomSpinner className="mr-3 h-4 w-4" />
<strong>Uploading build result to IPFS...</strong>
</Alert>
)}
Expand All @@ -127,14 +125,7 @@ export function TransactionPreviewAndExecution({
await stager.sign();
}}
>
{stager.signing ? (
<>
Currently Signing
<CustomSpinner className="h-4 w-4 ml-2" />
</>
) : (
'Queue & Sign'
)}
{stager.signing ? <>Currently Signing</> : 'Queue & Sign'}
</Button>
</TooltipTrigger>
<TooltipContent>{stager.signConditionFailed}</TooltipContent>
Expand Down

0 comments on commit 017f02e

Please sign in to comment.