fix: improve note interactions and markdown LaTeX support

## Bug Fixes

### Note Card Actions
- Fix broken size change functionality (missing state declaration)
- Implement React 19 useOptimistic for instant UI feedback
- Add startTransition for non-blocking updates
- Ensure smooth animations without page refresh
- All note actions now work: pin, archive, color, size, checklist

### Markdown LaTeX Rendering
- Add remark-math and rehype-katex plugins
- Support inline equations with dollar sign syntax
- Support block equations with double dollar sign syntax
- Import KaTeX CSS for proper styling
- Equations now render correctly instead of showing raw LaTeX

## Technical Details

- Replace undefined currentNote references with optimistic state
- Add optimistic updates before server actions for instant feedback
- Use router.refresh() in transitions for smart cache invalidation
- Install remark-math, rehype-katex, and katex packages

## Testing

- Build passes successfully with no TypeScript errors
- Dev server hot-reloads changes correctly
This commit is contained in:
2026-01-09 22:13:49 +01:00
parent 3c4b9d6176
commit 640fcb26f7
218 changed files with 51363 additions and 902 deletions

View File

@@ -2,7 +2,7 @@ type,name,module,path,hash
"csv","agent-manifest","_config","_config/agent-manifest.csv","6916048fc4a8f5caaea40350e4b2288f0fab01ea7959218b332920ec62e6a18c"
"csv","task-manifest","_config","_config/task-manifest.csv","35e06d618921c1260c469d328a5af14c3744072f66a20c43d314edfb29296a70"
"csv","workflow-manifest","_config","_config/workflow-manifest.csv","254b28d8d3b9871d77b12670144e98f5850180a1b50c92eaa88a53bef77309c8"
"yaml","manifest","_config","_config/manifest.yaml","9abfbbefe941a8c686a26987c4eb6fab995bf42d3d90d08b389c0fdac8390a68"
"yaml","manifest","_config","_config/manifest.yaml","e612d9e71baf3a6db2ca6d0e295db20f8758dc8b385f63e3332d7992306a1724"
"csv","default-party","bmm","bmm/teams/default-party.csv","43209253a2e784e6b054a4ac427c9532a50d9310f6a85052d93ce975b9162156"
"csv","documentation-requirements","bmm","bmm/workflows/document-project/documentation-requirements.csv","d1253b99e88250f2130516b56027ed706e643bfec3d99316727a4c6ec65c6c1d"
"csv","domain-complexity","bmm","bmm/workflows/2-plan-workflows/prd/domain-complexity.csv","ed4d30e9fd87db2d628fb66cac7a302823ef6ebb3a8da53b9265326f10a54e11"
@@ -203,7 +203,7 @@ type,name,module,path,hash
"xml","instructions","bmm","bmm/workflows/4-implementation/code-review/instructions.xml","80d43803dced84f1e754d8690fb6da79e5b21a68ca8735b9c0ff709c49ac31ff"
"xml","instructions","bmm","bmm/workflows/4-implementation/create-story/instructions.xml","713b38a3ee0def92380ca97196d3457f68b8da60b78d2e10fc366c35811691fb"
"xml","instructions","bmm","bmm/workflows/4-implementation/dev-story/instructions.xml","d01f9b168f5ef2b4aaf7e1c2fad8146dacfa0ea845b101da80db688e1817cefb"
"yaml","config","bmm","bmm/config.yaml","f03792cda69272a220b77bb8461299b17fb984e2da5594b6e9878c3a6c1007b1"
"yaml","config","bmm","bmm/config.yaml","e8064ae57e4141e15ed66c5034e44244d5bedc8ed81042ad26b2a0af886b3342"
"yaml","deep-dive","bmm","bmm/workflows/document-project/workflows/deep-dive.yaml","a16b5d121604ca00fffdcb04416daf518ec2671a3251b7876c4b590d25d96945"
"yaml","enterprise-brownfield","bmm","bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml","40b7fb4d855fdd275416e225d685b4772fb0115554e160a0670b07f6fcbc62e5"
"yaml","enterprise-greenfield","bmm","bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml","61329f48d5d446376bcf81905485c72ba53874f3a3918d5614eb0997b93295c6"
@@ -265,4 +265,4 @@ type,name,module,path,hash
"xml","validate-workflow","core","core/tasks/validate-workflow.xml","539e6f1255efbb62538598493e4083496dc0081d3c8989c89b47d06427d98f28"
"xml","workflow","core","core/tasks/workflow.xml","8f7ad9ff1d80251fa5df344ad70701605a74dcfc030c04708650f23b2606851a"
"xml","workflow","core","core/workflows/advanced-elicitation/workflow.xml","063e6aab417f9cc67ae391b1d89ba972fc890c123f8101b7180496d413a63d81"
"yaml","config","core","core/config.yaml","c6d19864014f4d83c324f17078a250f42ef64ad7f9b2d2af31babd651c64a56d"
"yaml","config","core","core/config.yaml","4982179d32cf6ef943f84af4a9857497b96bbb2decd55e8cc6a6329bca74b457"
1 type name module path hash
2 csv agent-manifest _config _config/agent-manifest.csv 6916048fc4a8f5caaea40350e4b2288f0fab01ea7959218b332920ec62e6a18c
3 csv task-manifest _config _config/task-manifest.csv 35e06d618921c1260c469d328a5af14c3744072f66a20c43d314edfb29296a70
4 csv workflow-manifest _config _config/workflow-manifest.csv 254b28d8d3b9871d77b12670144e98f5850180a1b50c92eaa88a53bef77309c8
5 yaml manifest _config _config/manifest.yaml 9abfbbefe941a8c686a26987c4eb6fab995bf42d3d90d08b389c0fdac8390a68 e612d9e71baf3a6db2ca6d0e295db20f8758dc8b385f63e3332d7992306a1724
6 csv default-party bmm bmm/teams/default-party.csv 43209253a2e784e6b054a4ac427c9532a50d9310f6a85052d93ce975b9162156
7 csv documentation-requirements bmm bmm/workflows/document-project/documentation-requirements.csv d1253b99e88250f2130516b56027ed706e643bfec3d99316727a4c6ec65c6c1d
8 csv domain-complexity bmm bmm/workflows/2-plan-workflows/prd/domain-complexity.csv ed4d30e9fd87db2d628fb66cac7a302823ef6ebb3a8da53b9265326f10a54e11
203 xml instructions bmm bmm/workflows/4-implementation/code-review/instructions.xml 80d43803dced84f1e754d8690fb6da79e5b21a68ca8735b9c0ff709c49ac31ff
204 xml instructions bmm bmm/workflows/4-implementation/create-story/instructions.xml 713b38a3ee0def92380ca97196d3457f68b8da60b78d2e10fc366c35811691fb
205 xml instructions bmm bmm/workflows/4-implementation/dev-story/instructions.xml d01f9b168f5ef2b4aaf7e1c2fad8146dacfa0ea845b101da80db688e1817cefb
206 yaml config bmm bmm/config.yaml f03792cda69272a220b77bb8461299b17fb984e2da5594b6e9878c3a6c1007b1 e8064ae57e4141e15ed66c5034e44244d5bedc8ed81042ad26b2a0af886b3342
207 yaml deep-dive bmm bmm/workflows/document-project/workflows/deep-dive.yaml a16b5d121604ca00fffdcb04416daf518ec2671a3251b7876c4b590d25d96945
208 yaml enterprise-brownfield bmm bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml 40b7fb4d855fdd275416e225d685b4772fb0115554e160a0670b07f6fcbc62e5
209 yaml enterprise-greenfield bmm bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml 61329f48d5d446376bcf81905485c72ba53874f3a3918d5614eb0997b93295c6
265 xml validate-workflow core core/tasks/validate-workflow.xml 539e6f1255efbb62538598493e4083496dc0081d3c8989c89b47d06427d98f28
266 xml workflow core core/tasks/workflow.xml 8f7ad9ff1d80251fa5df344ad70701605a74dcfc030c04708650f23b2606851a
267 xml workflow core core/workflows/advanced-elicitation/workflow.xml 063e6aab417f9cc67ae391b1d89ba972fc890c123f8101b7180496d413a63d81
268 yaml config core core/config.yaml c6d19864014f4d83c324f17078a250f42ef64ad7f9b2d2af31babd651c64a56d 4982179d32cf6ef943f84af4a9857497b96bbb2decd55e8cc6a6329bca74b457

View File

@@ -0,0 +1,6 @@
ide: claude-code
configured_date: 2026-01-09T12:45:17.212Z
last_updated: 2026-01-09T12:45:17.212Z
configuration:
subagentChoices: null
installLocation: null

View File

@@ -1,9 +1,11 @@
installation:
version: 6.0.0-alpha.22
installDate: 2026-01-06T17:15:56.602Z
lastUpdated: 2026-01-06T17:15:56.602Z
installDate: 2026-01-09T12:45:17.078Z
lastUpdated: 2026-01-09T12:45:17.078Z
modules:
- core
- bmm
ides:
- gemini
- claude-code
- github-copilot

View File

@@ -1,7 +1,7 @@
# BMM Module Configuration
# Generated by BMAD installer
# Version: 6.0.0-alpha.22
# Date: 2026-01-06T17:15:56.578Z
# Date: 2026-01-09T12:45:17.037Z
project_name: Keep
user_skill_level: intermediate

View File

@@ -1,7 +1,7 @@
# CORE Module Configuration
# Generated by BMAD installer
# Version: 6.0.0-alpha.22
# Date: 2026-01-06T17:15:56.579Z
# Date: 2026-01-09T12:45:17.038Z
user_name: Ramez
communication_language: French