♻️(refacto) Drop the initialBlockId workaround of user mentions once BlockNote does
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 54/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- django, react, typescript
Línea de trabajo
Read BlockNote's UniqueID.ts and FixUpSchema.ts references, then inspect replaceInitialBlockId in src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-inline-content/Mention/UserMention/ and its call in useSearchUserMention. Confirm how the backend validates mention anchors and how copied block links behave. Done means BlockNote supplies a UUID for the initial block (or a generation hook), the workaround and call are removed, and existing links remain valid.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
BlockNote gives the fixed id initialBlockId, not a uuid, to the first block of a new collaborative doc and keeps it once the block has content (also set in FixUpSchema.ts):
https://github.com/TypeCellOS/BlockNote/blob/ea5d80358f179d1683abcd2e0e3e9d547bf52eef/packages/core/src/extensions/tiptap-extensions/UniqueID/UniqueID.ts#L190-L216
The backend only accepts a uuid as mention anchor, so the frontend renames this block to a uuid before notifying the mentioned user (replaceInitialBlockId in src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-inline-content/Mention/UserMention/, marked with a TODO); the rename breaks the #initialBlockId block links copied before it. No open BlockNote issue tracks it, the closest is TypeCellOS/BlockNote#475 (closed).
Suggested fix: ask BlockNote to give the initial block a real uuid (or a hook to generate it), then remove replaceInitialBlockId and its call in useSearchUserMention.
- Lenguaje dominante
- TypeScript
- Estrellas
- 17k
- Forks
- 705
- Merge medio
- 4 d 13 h
- PR fusionados (30 d)
- 47
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de suitenumerique/docs
-
🐛(Bug) Helm chart is published from a push to any branch, not only mainPosiblemente ocupada @RoeeSivan la tomó hace 1 día. AbiertoAI generated CI helm
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
suitenumerique/docs#3049 ·
Los mantenedores suelen responder en 3 días
-
🐛(Bug) Preview comment missing when a PR is opened or labelled with a conflictPosiblemente ocupada @RoeeSivan la tomó hace 1 día. AbiertoCI preview
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
suitenumerique/docs#3039 ·
Los mantenedores suelen responder en 3 días
-
AI generated frontend
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
suitenumerique/docs#3030 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
🐛(Bug) Block menu shows an orphan separator on blocks without colors (math, diagram)Posiblemente ocupada @arxh80 la tomó hace 8 días. Abiertofrontend good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
suitenumerique/docs#3021 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
frontend
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
suitenumerique/docs#3018 · 1 comentario ·
Los mantenedores suelen responder en 3 días
Todos los issues de suitenumerique/docs
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
GetStream/stream-chat-react#3467 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
vercel-labs/ui#1139 ·
Los mantenedores suelen responder en 1 día
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Posiblemente ocupada @goranai la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
[Bug] IntegerRange.contains counts a non-integer just above max as inside an inclusive rangeAbiertobot:ai-assisted component:platform-js status:untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
midnightntwrk/platform-js#93 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100