Antigravity
d2145f761d
mobile: fix navigation (typed routes), extract C tokens to lib/theme.ts
...
- lib/theme.ts: C design tokens dans fichier dédié (plus d'import circulaire _layout)
- app/_layout.tsx: importe C depuis @/lib/theme, ré-exporte pour compatibilité
- Tous les écrans: import C depuis '@/lib/theme' au lieu de '../_layout'
- Toutes les navigations: router.push({ pathname, params }) au lieu de template strings
-> Fix réel du bug 'impossible d'ouvrir carnet/note' avec Expo Router v6
- package.json: expo-web-browser ajouté (pour Google OAuth étape suivante)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-29 17:03:14 +00:00
Antigravity
45877db706
mobile: fix notebook icons + redesign home/notebooks + inline MD parser in WebView
...
- notebooks.tsx: detect Lucide icon names (folder, book, etc.) vs emoji
-> render <Folder> component instead of raw string 'folder'
-> colored icon wrap using notebook color
- home.tsx: full redesign — header greeting + quick actions + recent list
-> section-based layout, dense note rows with chevron
- note/[id].tsx: remove 'marked' import (Metro bundler issue)
-> inline minimal MD→HTML parser runs inside WebView JS context
-> handles headings, lists, blockquotes, code blocks, inline styles
-> zero external dependency, works 100% offline
- package.json: remove 'marked' dependency
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-29 16:49:55 +00:00
Antigravity
0ef12f7399
fix(mobile): render notes with marked (proper Markdown→HTML) + design CSS soigné
...
- Install marked package (UMD, hors-ligne)
- buildHtml: parse Markdown server-side avec marked, inject HTML statique
- CSS: typographie soignée, blockquotes brandés, code dark, tables propres
- Plus de CDN, fonctionne hors-ligne
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-29 16:43:24 +00:00
Antigravity
7c8695cacf
fix(mobile): migrate to Expo SDK 54, replace NativeWind with StyleSheet
...
CI / Lint, Unit Tests & Build (push) Failing after 1m5s
CI / Deploy production (on server) (push) Has been skipped
- Update package.json to Expo ~54.0.35, expo-router ~6.0.24, RN 0.81.5
- Remove NativeWind/Tailwind dependencies
- Fix babel.config.js: presets babel-preset-expo only
- Rewrite all screens with StyleSheet.create (no className)
- Add lucide-react-native + react-native-svg
- Export design tokens C from _layout.tsx for shared usage
- Install node_modules (702 packages)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-29 16:18:44 +00:00
Antigravity
aeedb2846f
feat: App mobile Expo + API mobile dédiée
...
CI / Lint, Unit Tests & Build (push) Failing after 1m21s
CI / Deploy production (on server) (push) Has been skipped
memento-mobile/ (Expo + React Native + expo-router):
- Auth: login email/password → Bearer token (expo-secure-store)
- Layout: guard auth → redirect /(auth)/login ou /(tabs)/home
- Tabs: Accueil, Carnets, Recherche, Profil
- Screens: login, home (recent notes + quick actions), notebooks list,
note viewer (WebView HTML), search (texte), notebook detail, profile
- Design: tokens brand-accent (#A47148), ink, concrete, paper, border
- lib/config.ts: API_URL dev/prod configurable
- lib/api.ts: apiFetch avec Bearer token automatique
- lib/store.ts: Zustand auth store (login/logout/restore)
memento-note/ (API mobile dédiée):
- lib/mobile-auth.ts: createMobileToken / verifyMobileToken (HMAC-SHA256, 90j)
- POST /api/mobile/auth/login: email+password → token + user
- GET /api/mobile/auth/me: valider token, retourner profil
- GET /api/mobile/notebooks: liste carnets avec nb notes
- GET /api/mobile/notes: notes récentes (filtre par carnet optionnel)
- GET /api/mobile/notes/[id]: contenu complet d'une note
- GET /api/mobile/search: recherche fulltext titre+contenu
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-05-29 15:53:13 +00:00