zl7261
ffcd75a408
decalre targetNode after check sourceNode
2025-09-29 15:24:35 +08:00
zl7261
6a8de2edb2
web_ui: check node source and target
2025-09-29 15:22:24 +08:00
yangdx
86195c613e
Fix linting
2025-09-29 13:10:25 +08:00
yangdx
924d459420
feat(webui): Enhance KaTeX rendering and add robust error handling
...
- Differentiates between inline ($...$) and display ($$..$$) math for proper styling and layout.
- Adds custom CSS to ensure formulas correctly inherit text color, fixing issues in dark/light themes.
- Implements responsive handling for long formulas by allowing horizontal scrolling, preventing page overflow.
- Introduces a silent `errorCallback` for KaTeX to suppress console errors from invalid LaTeX syntax in production, while retaining warnings in development.
- Refactors KaTeX plugin loading to be more robust and simplifies CSS import by moving it to `main.tsx`.
2025-09-28 22:50:33 +08:00
yangdx
b18c7d85ef
Improve text contrast and visibility in dark theme for chat messages
...
• Enhanced border visibility in dark mode
• Improved thinking progress text contrast
• Added explicit text color classes
• Better user/assistant message distinction
• Fixed dark theme readability issues
2025-09-28 21:33:19 +08:00
yangdx
b6a1832324
feat: prevent LaTeX parsing errors during streaming by implementing completeness detection
...
- Add latexRendered flag to control KaTeX plugin application
- Implement detectLatexCompleteness function to check formula closure
- Maintain backward compatibility for historical messages
2025-09-28 20:59:56 +08:00
yangdx
335114fd7e
Add KaTeX mhchem extension support and improve math rendering
...
- Import mhchem globally
- Add TypeScript declarations
- Fix KaTeX overflow styling
- Change p tags to div in markdown
- Update tsconfig includes
2025-09-28 15:13:04 +08:00
yangdx
16e574a083
Fix query mode prefix regex to handle multiline queries in WebUI
...
- Allow newlines in query text
- Change `.+` to `[\s\S]+` in regex
- Support multiline input parsing
- Fix prefix matching edge case
2025-09-28 14:56:05 +08:00
yangdx
53d3c9290f
Merge branch 'zl7261/main'
2025-09-26 20:02:32 +08:00
zl7261
1bb7655538
WebUI - set full width to input element
2025-09-26 04:04:54 +00:00
zl7261
a024793a6a
Web UI - center the loading icon
2025-09-26 03:57:42 +00:00
yangdx
1a0dc94f55
Update userPrompt label to clarify additional output functionality
...
• Rename "User Prompt" to clearer label
• Update across all language files
• Better describes prompt purpose
2025-09-26 10:40:20 +08:00
yangdx
d5fe6bb33e
Increase user prompt history capacity and dropdown height
...
• History limit: 8 → 12 items
• Dropdown height: max-h-60 → max-h-96
• Better visibility for longer prompts
• Improved user experience
2025-09-26 10:27:03 +08:00
yangdx
683bbe9364
Fix footnote spacing and anchor links in markdown processing
...
- Add spacing between consecutive footnotes
- Fix anchor href to use footnote ID
- Detect adjacent footnote patterns
- Improve footnote reference formatting
- Add non-breaking space for readability
2025-09-26 10:20:45 +08:00
yangdx
058ce83dba
Clarify citation format and fix typo
2025-09-25 20:08:55 +08:00
yangdx
b6b4baff21
Update webui assets
2025-09-25 19:05:51 +08:00
yangdx
0330882b12
feat: add delete functionality to user prompt history dropdown
...
• Add delete buttons to history items
• Decrease history limit to 8 items
• Improve dropdown styling
2025-09-25 18:55:44 +08:00
yangdx
6e6a65ce9e
Disable autocomplete for user prompt input field
2025-09-25 18:01:14 +08:00
yangdx
275146fa0b
Simplify footnote plugin to only render inline citations
...
• Remove footnote definition collection
• Remove footnote references section
• Simplify HTML output with placeholder links
• Keep only inline citation rendering
• Remove unused imports and types
2025-09-25 17:57:03 +08:00
yangdx
72039e0b4e
Add strict: false and trust: true to KaTeX plugin configuration
...
• Relaxes KaTeX parsing rules
• Enables trusted LaTeX commands
• Improves math rendering compatibility
• Applied to both markdown processors
2025-09-25 17:28:01 +08:00
yangdx
889c1d21e3
Increase right margin spacing for checkboxes in QuerySettings
...
• Change mr-1 to mr-10 for checkboxes
• Improve visual spacing consistency
• Apply to all four checkbox elements
• Better UI alignment and readability
2025-09-25 06:26:22 +08:00
yangdx
71367c7bc2
Add user prompt history dropdown to query settings
...
- Create UserPromptInputWithHistory component
- Move user prompt field to top of panel
- Add history tracking to settings store
- Include keyboard navigation support
- Auto-save prompts on query execution
2025-09-25 06:16:32 +08:00
yangdx
d1b3661a87
Add footnotes support to markdown rendering in chat messages
...
• Add unist-util-visit dependency
• Create remarkFootnotes plugin
• Style footnotes with CSS classes
• Support footnote refs and definitions
• Update Vite config for new dependency
2025-09-25 01:42:16 +08:00
yangdx
d933b20562
Update query mode tooltips with clearer retrieval strategy descriptions
2025-09-25 00:17:59 +08:00
yangdx
a911cd1c43
Add copy functionality messages to chat locales
...
- Add copyEmpty message
- Add copySuccess variants
- Add copyFailed message
- Add manual copy instruction
- Support 5 languages (ar,en,fr,zh,zh_TW)
2025-09-24 23:28:49 +08:00
yangdx
c358f83d2d
Implement robust clipboard functionality with multiple fallback strategies
...
• Add comprehensive clipboard utility
• Support legacy browser environments
• Provide detailed user feedback
• Handle security context failures
2025-09-24 23:12:16 +08:00
yangdx
2208151b82
Update webui assets
2025-09-24 22:32:31 +08:00
yangdx
95987ff56c
Add rehype-raw plugin for better HTML rendering in markdown
...
• Add rehype-raw dependency
• Enable HTML parsing in markdown
• Style sup/sub/mark/u/del/ins elements
• Apply to both thinking and main content
• Improve markdown display capabilities
2025-09-24 21:37:03 +08:00
yangdx
3d7635e097
refactor: addinging copy buttons beside each message
2025-09-24 20:43:22 +08:00
yangdx
188c912c9a
Improve graph labels UI text clarity across all locales
...
• More specific "no matching nodes" text
• Change "Label" to "Search node name"
• Update placeholder text for clarity
• Apply changes to all 5 languages
• Enhance user experience consistency
2025-09-24 20:05:37 +08:00
yangdx
ad247f2fc1
refactor: improve accessibility and i18n for search components
...
• Replace label with ariaLabel prop
• Add searchPlaceholder support
• Use i18n keys for messages
• Improve aria-label attributes
• Standardize noResultsMessage fallback
2025-09-24 19:59:56 +08:00
yangdx
18968c6b6b
Update webui assets
2025-09-23 23:46:17 +08:00
yangdx
2475194ab9
Update i18n translation
2025-09-23 23:41:31 +08:00
yangdx
b5ebfa0cb8
Add entity type synonyms for legal, medical, and natural domains
2025-09-23 23:33:29 +08:00
yangdx
bdb29b0497
Expand entity type synonyms for better graph node categorization
2025-09-23 23:16:17 +08:00
yangdx
7b63c16b1c
Set empty query labels to wildcard '*' for proper graph display
...
• Handle empty/whitespace query labels
• Auto-set to '*' when label is blank
• Ensure consistent graph behavior
• Prevent invalid query states
2025-09-23 22:41:31 +08:00
yangdx
34d91eb288
Update node type translation
2025-09-23 22:33:39 +08:00
yangdx
be1216770e
Fix linting
2025-09-23 22:31:15 +08:00
yangdx
9dd1790b5c
Add "Creature" entity type and reorganize type mappings
...
- Add Creature to default entity types
- Map animals/beings to creature type
2025-09-23 21:58:33 +08:00
yangdx
7a66c009ed
Refactor node type legend color mapping
...
- Reduce chaos legend by storing standard node type
- Reset lengend on graph manual refresh
- Optimize color mapping for new node type schema
2025-09-23 19:48:16 +08:00
yangdx
fa2938cf33
Increase tooltip max width in PropertiesView
2025-09-23 13:24:31 +08:00
yangdx
cc0eed1c8c
Format <SEP> separators as newlines in properties view for non editable value
...
- Convert <SEP> to semicolon + newline
- Apply formatting to text and tooltip
2025-09-23 13:10:06 +08:00
yangdx
5b0ad167d6
feat: Force sending history messages in bypass mode
...
• Force history turns to 3 for bypass mode if current setting is 0
• Add this feature allowing the LLM to generate output based on conversation history.
2025-09-22 15:09:34 +08:00
yangdx
40c8f1ef7b
feat: add smart input switching between Input and Textarea components
...
• Switch to Textarea for multi-line input
• Handle Shift+Enter for newlines
• Maintain focus during component switch
• Support multi-line paste operations
• Auto-adjust textarea height dynamically
2025-09-22 13:00:22 +08:00
yangdx
fca3ea5d20
Fix linting
2025-09-22 03:29:17 +08:00
yangdx
8af097a8e4
fix(webui): resolve theme switching crashes and optimize graph rendering
...
- Implement theme switching isolation to prevent component access during transitions by hidding GraphSearch
- Fix NotFoundGraphError during theme switching by adding defensive programming
- Replace problematic NodeById component with custom safe implementation
- Add comprehensive error handling and node/edge existence checks
- Optimize sigma settings with memoization to prevent unnecessary re-renders
- Remove redundant theme update logic and simplify event listener management
2025-09-22 03:03:53 +08:00
yangdx
d2029fd804
Replace Input with auto-resizing Textarea in RetrievalTesting
...
• Add new Textarea component
• Auto-resize between 40px-120px height
• Support Enter to submit, Shift+Enter for newline
• Add form autocomplete attributes
• Reset height after message submission
2025-09-22 02:01:39 +08:00
yangdx
17dd56e41c
Improve code highlighting with context-aware styling and inline detection
...
• Add messageRole prop to CodeHighlight
• Remove unused Element type import
• Replace node-based inline detection
• Add theme-aware inline code styles
• Update dependency arrays in useMemo
2025-09-22 01:41:58 +08:00
yangdx
9288ae1703
Refactor COT parsing to handle multiple think blocks robustly
2025-09-22 01:01:39 +08:00
yangdx
62aa0726a5
Fix conversation history handling when history_turns is 0
...
• Check history_turns > 0 before filtering
• Prevent sending all history converstion to backend when history_turns is 0
2025-09-21 23:51:19 +08:00