feat: ship v0.3.0 with P2.1 editor polish and P3 AI collaboration

Add chapter reorder, search replace, inspiration capture, and AI chat with context editing, settings, offline handling, and naming checks. Fix dev black screen by keeping process.env reads in the main process only.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-06 16:33:56 +08:00
parent 0b5aa146bd
commit 8ce35a1e8e
59 changed files with 3808 additions and 100 deletions
@@ -0,0 +1,27 @@
import { useState } from 'react'
import { useTranslation } from 'react-i18next'
import { NamingCheckModal } from '@renderer/components/ai/NamingCheckModal'
export function KnowledgePanel(): React.JSX.Element {
const { t } = useTranslation()
const [namingOpen, setNamingOpen] = useState(false)
return (
<>
<div className="knowledge-panel" data-testid="knowledge-panel">
<div className="knowledge-toolbar">
<button
type="button"
className="btn"
data-testid="naming-check-open"
onClick={() => setNamingOpen(true)}
>
{t('naming.open')}
</button>
</div>
<div className="placeholder-box">{t('knowledge.placeholder')}</div>
</div>
<NamingCheckModal open={namingOpen} onClose={() => setNamingOpen(false)} />
</>
)
}