fix(deploy): retire sanity-check qui bloquait le deploy (vars pas toutes dans Gitea)
Some checks failed
CI / Lint, Unit Tests & Build (push) Successful in 5m39s
CI / Deploy production (on server) (push) Failing after 3s

This commit is contained in:
Antigravity
2026-06-28 14:55:44 +00:00
parent 56ce662d38
commit 10101e5918
10 changed files with 46 additions and 45 deletions

View File

@@ -175,10 +175,15 @@ export function NoteEditorFullPage({ onClose }: NoteEditorFullPageProps) {
noteContent={state.content}
noteImages={state.allImages}
noteId={note.id}
onApplyToNote={(nc: string) => {
onApplyToNote={(nc: string, options?: { asRichText?: boolean }) => {
actions.setPreviousContentForCopilot(state.content)
actions.setContent(nc)
if (state.isMarkdown) actions.setShowMarkdownPreview(true)
if (options?.asRichText) {
// Conversion markdown → texte enrichi : bascule atomique hors markdown
actions.convertToRichText(nc)
} else {
actions.setContent(nc)
if (state.isMarkdown) actions.setShowMarkdownPreview(true)
}
}}
onUndoLastAction={state.previousContentForCopilot !== null ? () => { actions.setContent(state.previousContentForCopilot!); actions.setPreviousContentForCopilot(null) } : undefined}
lastActionApplied={state.previousContentForCopilot !== null}