diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53f5707..2a961ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,9 +3,16 @@ name: CI on: pull_request: branches: [main] + types: [opened, synchronize, reopened, ready_for_review] + push: + branches: [main] + +permissions: + contents: read jobs: typecheck: + if: github.event_name != 'pull_request' || github.event.pull_request.draft == false name: Type Check runs-on: ubuntu-latest steps: @@ -31,6 +38,7 @@ jobs: run: yarn test noir: + if: github.event_name != 'pull_request' || github.event.pull_request.draft == false name: Noir circuit tests runs-on: ubuntu-latest steps: diff --git a/src/components/MaskedText.tsx b/src/components/MaskedText.tsx index 85d7d1f..e9e56cd 100644 --- a/src/components/MaskedText.tsx +++ b/src/components/MaskedText.tsx @@ -1,4 +1,4 @@ -import { useState } from 'react'; +import { useRef, useState } from 'react'; import { maskedSegments } from '../utils/maskedRuns'; interface MaskedTextProps { @@ -19,22 +19,38 @@ const Blocks = ({ count }: { count: number }) => ( /** A long redacted stretch, collapsed to one row; click to show every block. */ function CollapsedRedaction({ content, hidden, lines }: { content: string; hidden: number; lines: number }) { const [open, setOpen] = useState(false); + const restoreFocus = useRef(false); if (open) { return ( - <> + - + collapse + ); } return ( -

- )}
+ {bodyDecodedFromQp && ( +
+ +
+ + + +

+ Show raw displays the quoted-printable bytes covered by the proof. + The default view decodes them for readability using a fixed public step anyone can repeat. + {qpEvidence === "content" && " Encoding was detected from the text because its Content-Transfer-Encoding header is hidden."} +

+
+
+ )}