Add debug context viewer and document/framework popups#29
Merged
Conversation
- Per-page debug button showing relevant Norma context section - Clickable document rows with full markdown summary popup - Clickable framework cards with full content viewer popup - Delete button for uploaded documents (framework + custom) - Unified overview section for description and risk classification pages - Evidence questions data with human-readable labels and framework grouping - UNDP Human Rights Assessment framework content - Fix document upload route ordering (422 bug) - Fix nginx upload size limit (client_max_body_size 50m) - Fix api.delete handling of 204 responses - Enforce summary section ordering in pipeline prompt - Strip markdown separators from LLM-generated output - Word count and page estimate in viewer dialogs - i18n translations for all new UI text (en/es/fr/de) Closes #28 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Restructure debug-context-dialog to avoid synchronous setState in useEffect by wrapping in Promise chain. Fix mermaid cleanLabel to unwrap parenthesised node definitions before stripping. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NORMA_DEBUG=true) on each page header, showing only the context that page contributes to Norma's system prompt. Full system prompt shown on the chat page.api.delete204 handling, markdown separator stripping.Test plan
NORMA_DEBUG=trueand verify the debug button appears on all pages🤖 Generated with Claude Code