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
2 changes: 1 addition & 1 deletion .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.2.0"
current_version = "0.2.1"
commit = true
tag = true
tag_name = "v{new_version}"
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.2.1
5 changes: 4 additions & 1 deletion dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ services:
LANGFLOW__BASE_URL: http://localhost:7860/api/v1
LANGFLOW__API_KEY: ${LANGFLOW_API_KEY:-dev-langflow-api-key}
SECRET_KEY: dev-secret-key-change-in-production
CORS_ORIGINS: '["http://localhost:5173", "http://localhost:8000"]'
volumes:
- ../backend:/app
depends_on:
Expand All @@ -79,6 +80,8 @@ services:
volumes:
- ../frontend:/app
- /app/node_modules
# Comment the following line out if you don't want to mount the local UX package - this requires cloning the UX repository.
- ../../ux:/app/node_modules/@tidemark-security/ux
depends_on:
- backend
command: ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
Expand Down Expand Up @@ -125,7 +128,7 @@ services:
LANGFLOW_AUTO_LOGIN: "false"
LANGFLOW_SUPERUSER: ${LANGFLOW_SUPERUSER:-admin}
LANGFLOW_SUPERUSER_PASSWORD: ${LANGFLOW_SUPERUSER_PASSWORD:-admin}
LANGFLOW_SECRET_KEY: ${LANGFLOW_SECRET_KEY:-dev-langflow-secret-change-in-production}
LANGFLOW_SECRET_KEY: ${LANGFLOW_SECRET_KEY:-3R1HFctPJZ_MDJg-GQe2Z_TaEyZyXQZtbcCR5l8S0E4=}
LANGFLOW_NEW_USER_IS_ACTIVE: "false"
LANGFLOW_ENABLE_SUPERUSER_CLI: "false"
LANGFLOW_API_KEY_SOURCE: env
Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "intercept",
"private": true,
"version": "0.2.0",
"version": "0.2.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
33 changes: 28 additions & 5 deletions frontend/src/components/overlays/ModalShell.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,49 @@
import React from "react";

import { Dialog } from "@tidemark-security/ux";
import * as VisuallyHidden from "@radix-ui/react-visually-hidden";

import { cn } from "@/utils/cn";

interface ModalShellProps {
children: React.ReactNode;
title: string;
description?: string;
panelClassName?: string;
contentClassName?: string;
onClose?: () => void;
}

export function ModalShell({
children,
title,
description,
panelClassName,
contentClassName,
onClose,
}: ModalShellProps) {
return (
<div className="fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black bg-opacity-50 p-4">
<div
<Dialog
open={true}
onOpenChange={(open) => {
if (!open) onClose?.();
}}
className="p-4"
>
<Dialog.Content
className={cn(
"flex max-h-full w-full flex-col rounded-md bg-neutral-100 px-6 py-6",
"w-full bg-neutral-100 px-6 py-6",
panelClassName,
)}
>
<VisuallyHidden.Root asChild>
<Dialog.Title>{title}</Dialog.Title>
</VisuallyHidden.Root>
{description && (
<VisuallyHidden.Root asChild>
<Dialog.Description>{description}</Dialog.Description>
</VisuallyHidden.Root>
)}
<div
className={cn(
"flex min-h-0 w-full flex-col items-start gap-6",
Expand All @@ -29,7 +52,7 @@ export function ModalShell({
>
{children}
</div>
</div>
</div>
</Dialog.Content>
</Dialog>
);
}
3 changes: 1 addition & 2 deletions frontend/src/contexts/SessionProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ export const SessionProvider = ({ children }: SessionProviderProps) => {
dispatch({ type: "START_AUTH" });
try {
if (!browserSupportsPasskeys()) {
dispatch({ type: "SET_ERROR", payload: "Passkey sign-in is unavailable on this browser." });
dispatch({ type: "SET_UNAUTHENTICATED" });
return "failed";
return "password_required";
}

const begin = await AuthenticationService.beginPasskeyAuthenticationApiV1AuthPasskeysAuthenticateOptionsPost({
Expand Down
Loading
Loading