PR 2: proxy services (#787)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Gregory SchierandClaude Opus 5.5 authored and GitHub committed 2026-10-27 15:19:50 -07:00
1 parent 686294939b
commit 9bbd28ce4a
26 files changed
+3802 -50

No files matched your search

+5 -4
View File
@@ -73,7 +73,8 @@ export function FlowDetail({ style, sideBySide }: { style?: CSSProperties; sideB
function FlowPane({ flow }: { flow: Flow }) {
const [pretty, setPretty] = useState(true);
const responseBody = useFlowBody(flow, "response", flow.responseTruncated);
const failed = flow.error != null && flow.status == null;
// Failed before any response; an error after the headers is a body cut short mid-way.
const noResponse = flow.error != null && flow.status == null;
const mime = mimeEssence(findHeader(flow.responseHeaders, "content-type"));
const queryCount = useMemo(() => queryParams(flow.url).length, [flow.url]);
@@ -153,7 +154,7 @@ function FlowPane({ flow }: { flow: Flow }) {
</span>
</>
)}
{!failed && (
{!noResponse && (
<>
<span>&bull;</span>
<SizeTag contentLength={flow.responseSize} />
@@ -178,7 +179,7 @@ function FlowPane({ flow }: { flow: Flow }) {
</div>
<div className="overflow-hidden flex flex-col min-h-0">
{failed && (
{flow.error != null && (
<Banner color="danger" className="mx-3 mt-1 shrink-0 font-mono text-sm">
{flow.error}
</Banner>
@@ -190,7 +191,7 @@ function FlowPane({ flow }: { flow: Flow }) {
tabListClassName="mt-0.5 -mb-1.5"
>
<TabContent value={TAB_RESPONSE}>
{failed ? (
{noResponse ? (
<EmptyState>
<div className="text-text-subtle mb-1">No response</div>
<div className="text-xs">
+8 -2
View File
@@ -212,7 +212,9 @@ const FlowRow = memo(function FlowRow({
onSelect,
}: RowProps) {
const { host, path, query } = splitUrl(flow.url);
const failed = flow.error != null && flow.status == null;
const failed = flow.error != null;
// Failed before any response; an error after the headers is a body cut short mid-way.
const noResponse = failed && flow.status == null;
const type = shortContentType(flow.contentType);
return (
@@ -261,7 +263,11 @@ const FlowRow = memo(function FlowRow({
flow.responseTruncated ? "text-notice" : "text-text-subtle",
)}
>
{failed ? <span className="text-text-subtlest">--</span> : formatSize(flow.responseSize)}
{noResponse ? (
<span className="text-text-subtlest">--</span>
) : (
formatSize(flow.responseSize)
)}
</span>
)}
<span className="font-mono text-right text-text-subtle">