Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ export function ProviderFormEntrypointWrapper({
title={`Setup ${providerName}`}
onClose={onClose}
/>
<Modal.Body className="max-h-[70vh] overflow-y-auto">
{children(context)}
</Modal.Body>
<Modal.Body>{children(context)}</Modal.Body>
</Modal.Content>
</Modal>
)}
Expand Down Expand Up @@ -208,9 +206,7 @@ export function ProviderFormEntrypointWrapper({
}`}
onClose={onClose}
/>
<Modal.Body className="max-h-[70vh] overflow-y-auto">
{children(context)}
</Modal.Body>
<Modal.Body>{children(context)}</Modal.Body>
</Modal.Content>
</Modal>
)}
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/admin/configuration/search/UpgradingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function UpgradingPage({
previous model and all progress will be lost.
</div>
</Modal.Body>
<Modal.Footer className="p-4 flex gap-x-2 w-full justify-end">
<Modal.Footer>
<Button onClick={onCancel}>Confirm</Button>
<Button onClick={() => setIsCancelling(false)} secondary>
Cancel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export const WebProviderSetupModal = memo(
</FormField>
)}
</Modal.Body>
<Modal.Footer className="gap-2">
<Modal.Footer>
<Button type="button" main secondary onClick={onClose}>
Cancel
</Button>
Expand Down
2 changes: 0 additions & 2 deletions web/src/app/admin/configuration/web-search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,6 @@ export default function Page() {
provider
);
}}
className="h-6 w-6 opacity-70 hover:opacity-100"
aria-label={`Edit ${label}`}
/>
)}
Expand Down Expand Up @@ -1134,7 +1133,6 @@ export default function Page() {
provider
);
}}
className="h-6 w-6 opacity-70 hover:opacity-100"
aria-label={`Edit ${label}`}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default function IndexAttemptErrorsModal({
}
onClose={onClose}
/>
<Modal.Body className="flex flex-col gap-4 min-h-0">
<Modal.Body>
{!isResolvingErrors && (
<div className="flex flex-col gap-2 flex-shrink-0">
<Text as="p">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ interface InlineFileManagementProps {
onRefresh: () => void;
}

export function InlineFileManagement({
export default function InlineFileManagement({
connectorId,
onRefresh,
}: InlineFileManagementProps) {
Expand Down Expand Up @@ -360,7 +360,7 @@ export function InlineFileManagement({
description="When you save these changes, the following will happen:"
/>

<Modal.Body className="px-6 space-y-3">
<Modal.Body>
{selectedFilesToRemove.size > 0 && (
<div className="p-3 bg-red-50 dark:bg-red-900/10 rounded-md">
<Text
Expand Down Expand Up @@ -402,15 +402,15 @@ export function InlineFileManagement({
)}
</Modal.Body>

<Modal.Footer className="p-6 pt-4">
<Modal.Footer>
<Button
onClick={() => setShowSaveConfirm(false)}
secondary
disabled={isSaving}
>
Cancel
</Button>
<Button onClick={handleConfirmSave} primary disabled={isSaving}>
<Button onClick={handleConfirmSave} disabled={isSaving}>
{isSaving ? "Saving..." : "Confirm & Save"}
</Button>
</Modal.Footer>
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/admin/connector/[ccPairId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from "./ConfigDisplay";
import DeletionErrorStatus from "./DeletionErrorStatus";
import { IndexAttemptsTable } from "./IndexAttemptsTable";
import { InlineFileManagement } from "./InlineFileManagement";
import InlineFileManagement from "./InlineFileManagement";
import { buildCCPairInfoUrl, triggerIndexing } from "./lib";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import {
Expand Down
6 changes: 3 additions & 3 deletions web/src/app/admin/embeddings/RerankingFormPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ const RerankingDetailsForm = forwardRef<
better performance.
</p>
</Modal.Body>
<Modal.Footer className="p-4 flex justify-end">
<Modal.Footer>
<Button
onClick={() => setShowGpuWarningModalModel(null)}
>
Expand Down Expand Up @@ -433,7 +433,7 @@ const RerankingDetailsForm = forwardRef<
/>
</div>
</Modal.Body>
<Modal.Footer className="p-4 flex w-full justify-end">
<Modal.Footer>
<Button
onClick={() => {
setShowLiteLLMConfigurationModal(false);
Expand Down Expand Up @@ -513,7 +513,7 @@ const RerankingDetailsForm = forwardRef<
/>
</div>
</Modal.Body>
<Modal.Footer className="p-4 flex w-full justify-end">
<Modal.Footer>
<Button onClick={() => setIsApiKeyModalOpen(false)}>
Update
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function InstantSwitchConfirmModal({
<strong>This is not reversible.</strong>
</Text>
</Modal.Body>
<Modal.Footer className="p-4 gap-2">
<Modal.Footer>
<Button onClick={onConfirm}>Confirm</Button>
<Button secondary onClick={onClose}>
Cancel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function ModelSelectionConfirmationModal({
</Callout>
)}
</Modal.Body>
<Modal.Footer className="p-4 gap-2 justify-end">
<Modal.Footer>
<Button onClick={onConfirm}>Confirm</Button>
<Button secondary onClick={onCancel}>
Cancel
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/admin/embeddings/modals/SelectModelModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function SelectModelModal({
you will need to undergo a complete re-indexing. Are you sure?
</Text>
</Modal.Body>
<Modal.Footer className="p-4 gap-2 justify-end">
<Modal.Footer>
<Button onClick={onConfirm}>Confirm</Button>
<Button secondary onClick={onCancel}>
Cancel
Expand Down
Loading
Loading