-
Notifications
You must be signed in to change notification settings - Fork 11
Améliorer la saisie avec un éditeur WYSIWYG #796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yaaax
wants to merge
57
commits into
main
Choose a base branch
from
687-améliorer-la-saisie-erreurs-et-recommandations
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
The head ref may contain hidden characters: "687-am\u00E9liorer-la-saisie-erreurs-et-recommandations"
Open
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
0da9c0e
Add Tiptap and a first integration in NotesModal
yaaax af23880
Fix markdown content recovery
yaaax ffb6046
Set default code block language to html
yaaax 4becae3
Fix eslint imports
yaaax 8bfbe35
Fix eslint finally
yaaax ba218d0
Fix tiptap code blocks style
yaaax df48b96
Fix eslint warning (type)
yaaax c8d1262
Factorize code in AuditService
yaaax beeef1b
Add display field for uploads
yaaax 7a165f8
Tiptap: handle images drag and drop
yaaax bf48bc2
refactor(tiptap): simplify code
yaaax 0b86107
Titap: prevent layout shift on image load
yaaax 10d792d
Titap: fix and improve image style
yaaax 4e653bb
Ajout de la config de debug globale
yaaax 1091882
Titap: fix drop cursor and image position when dropped
yaaax 0506218
Titap: handle multiple image drop
yaaax 963e492
Attachment: fix error 500
yaaax 0866f14
Tiptap: improve accessibility
yaaax 8a946b1
Image upload: add error message
yaaax 0e6190c
Minor typo: Tiptap instead of TipTap
yaaax b571d24
Tiptap: improve drag and drop + upload
yaaax d98b78e
Add upload/delete timeout error messages
yaaax c92eddf
Improve error messages (avoid displaying null)
yaaax 5197c70
Tiptap: improve drop cursor style
yaaax 43588d4
Tiptap: handle and fix drop + paste
yaaax 331b86a
Tiptap style: improve focus outline
yaaax cd147ed
Tiptap style: do not fix height
yaaax 627f805
Tiptap: refactor to allow image upload from button
yaaax a28acde
Fix CSS errors
yaaax 46f21eb
Fix type issues (error messages can be strings)
yaaax b3b41d2
Tiptap: add buttons
yaaax d689d71
Fix duplicate image when dropping an image from an external website
yaaax 6229c2a
Audit store: fix deleteAuditFile
yaaax a303230
feat(Audit service) Add deleteAuditFiles
yaaax 59ea358
chore(titap): Add comments for future use
yaaax 0315f0c
feat(system): add pruneUploads function (wip)
yaaax e196744
Sidebar: fix width on desktop
yaaax 51247c8
Prisma (AuditFile): add creationDate
yaaax f576a70
Prisma (StoredFile): add creationDate
yaaax 52d0e07
Prisma(chore): reorder fields in StoredFile model
yaaax 58a5cf3
StoredFile(db): thumbnailKey becomes optionnal
yaaax 0c967c8
Fix DTO files (sync between StoredFile and AuditFile)
yaaax 4acd69b
feat(FileStorageService): Add getAllFileKeys
yaaax 7dab077
Prisma: better query logs (DEBUG="prisma:query")
yaaax 7d6a344
tiptap(feat): fix multiple image selection style
yaaax a9abf6d
Tiptap: handle upload files from criteria
yaaax 26ffd7d
feat(system): fix pruneUploads to handle StoredFiles
yaaax d44a6ae
results store: improve uploadExampleImage (no more timeout)
yaaax e3fa5f5
tiptap: remove image properly when an error occured
yaaax 5ccf1a3
tiptap: smaller buttons
yaaax 29056bb
tiptap: focus editor after image drop (or paste)
yaaax 45bf037
tiptap(chore): remove useless code
yaaax a0f94ae
System store: remove pruneUploads from web app
yaaax fb6476b
tiptap: fix report with non editable editors
yaaax 236d908
fix(tiptap): display selection on leaf nodes only
yaaax bb3c800
Requiert un token pour prune les images orphelines (#946)
hissalht 2ae60ee
Update prune-images.yml
hissalht File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: prune-images | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 1 * *" # Runs at 00:00, on day 1 of the month | ||
workflow_dispatch: # Can also be run manually from the github UI | ||
|
||
jobs: | ||
request_pruning: | ||
name: Request images pruning | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- env: | ||
PRUNING_ACCESS_TOKEN: ${{ secrets.PRUNING_ACCESS_TOKEN }} | ||
run: | | ||
curl 'https://ara.numerique.gouv.fr/api/system/prune-uploads' | ||
-H 'X-PruneToken: Bearer "$PRUNING_ACCESS_TOKEN"' | ||
-d '' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
// Frontend (Chrome) | ||
{ | ||
"type": "chrome", | ||
"request": "launch", | ||
"name": "FRONT (Vue.js) – Chrome", | ||
"url": "http://localhost:3000", | ||
"webRoot": "${workspaceFolder}/confiture-web-app/src", | ||
"sourceMapPathOverrides": { | ||
"webpack:///src/*": "${webRoot}/*" | ||
} | ||
}, | ||
// Frontend (Chrome) | ||
{ | ||
"type": "firefox", | ||
"request": "launch", | ||
"name": "FRONT (Vue.js) – Firefox", | ||
"url": "http://localhost:3000", | ||
"webRoot": "${workspaceFolder}/confiture-web-app/src", | ||
"pathMappings": [ | ||
{ "url": "webpack:///confiture-web-app/src/", "path": "${webRoot}/" } | ||
] | ||
}, | ||
// Backend (REST API) | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "BACKEND (nest)", | ||
"runtimeExecutable": "npm", | ||
"runtimeArgs": ["run", "start:debug", "--", "--inspect-brk"], | ||
"autoAttachChildProcesses": true, | ||
"restart": true, | ||
"sourceMaps": true, | ||
"stopOnEntry": false, | ||
"console": "integratedTerminal" | ||
} | ||
] | ||
} |
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
8 changes: 8 additions & 0 deletions
8
...a/migrations/20240906161141_add_display_field_on_files_attachment_or_editor/migration.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- CreateEnum | ||
CREATE TYPE "FileDisplay" AS ENUM ('EDITOR', 'ATTACHMENT'); | ||
|
||
-- AlterTable | ||
ALTER TABLE "AuditFile" ADD COLUMN "display" "FileDisplay" NOT NULL DEFAULT 'ATTACHMENT'; | ||
|
||
-- AlterTable | ||
ALTER TABLE "StoredFile" ADD COLUMN "display" "FileDisplay" NOT NULL DEFAULT 'ATTACHMENT'; |
2 changes: 2 additions & 0 deletions
2
...ture-rest-api/prisma/migrations/20250121151450_add_audit_file_creation_date/migration.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "AuditFile" ADD COLUMN "creationDate" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP; |
2 changes: 2 additions & 0 deletions
2
...ure-rest-api/prisma/migrations/20250124221428_add_stored_file_creation_date/migration.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "StoredFile" ADD COLUMN "creationDate" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP; |
2 changes: 2 additions & 0 deletions
2
...est-api/prisma/migrations/20250126234052_thumbnail_optional_for_stored_file/migration.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "StoredFile" ALTER COLUMN "thumbnailKey" DROP NOT NULL; |
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.