mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-04 21:32:39 +02:00
feat: various UI fixes, prompt optimizations, and allowing duplicate docs
- Updated `content_hash` in the `Document` model to remove global uniqueness, allowing identical content across different paths. - Enhanced `_create_document` function to handle path uniqueness and prevent session-poisoning from `IntegrityError`. - Added detailed comments for clarity on the changes and their implications. - Introduced new citation handling in the editor for improved user experience with citation jumps. - Updated package dependencies in the frontend for better functionality.
This commit is contained in:
parent
e6433f78c4
commit
b9a66cb417
26 changed files with 1540 additions and 852 deletions
|
|
@ -210,6 +210,27 @@ button {
|
|||
}
|
||||
}
|
||||
|
||||
/* Citation-jump highlight — entrance pulse only. The `SearchHighlightLeaf`
|
||||
(see components/ui/search-highlight-node.tsx) is otherwise statically
|
||||
tinted; this animation runs once on mount to draw the eye to the cited
|
||||
text after `scrollIntoView` lands. The highlight itself is permanent
|
||||
until the user clicks inside the editor (or another dismissal trigger
|
||||
fires in `EditorPanelContent`). */
|
||||
@keyframes citation-flash-in {
|
||||
0% {
|
||||
background-color: transparent;
|
||||
box-shadow: 0 0 0 0 transparent;
|
||||
}
|
||||
40% {
|
||||
background-color: color-mix(in oklab, var(--primary) 30%, transparent);
|
||||
box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 25%, transparent);
|
||||
}
|
||||
100% {
|
||||
background-color: color-mix(in oklab, var(--primary) 15%, transparent);
|
||||
box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 40%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
/* Human-in-the-loop approval card animations */
|
||||
@keyframes pulse-subtle {
|
||||
0%,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue