How monapdx/personality-dashboard works
Purpose and Runtime
Personality Dashboard is a local-first personal identity workspace. A React 18 single-page application renders an editable philosophy/value map, related workflow and tool-planning views, and a project evaluation scorecard. It has no backend, accounts, or network data dependency.
Browser bootstrap and application shell:
• src/main.jsx
• src/App.jsx
• src/App.css
Vite 5 provides development serving and production bundling via vite.config.js.
Application Shell and Navigation
App.jsx owns the top-level page composition, section navigation, shared toolbar placement, and footer. Feature views are client-rendered sections rather than routed server pages, so state remains available throughout the dashboard.
Core sections are implemented in:
• src/components/IdentityMap.jsx
• src/components/PrinciplesLibrary.jsx
• src/components/WorkflowBuilder.jsx
• src/components/ToolIdeas.jsx
• src/components/ProjectEvaluator.jsx
State, Persistence, and Data Boundary
IdentityContext is the central domain-state boundary. It initializes editable clusters, workflow, and tool ideas from seed data; exposes mutations to feature components; and synchronizes the resulting model to browser localStorage under identity-core-v1.
• src/context/IdentityContext.jsx
• src/data/initialData.js
• src/utils/ids.js
The durable model is entirely browser-side. Reload restores local state; clearing storage reverts initialization behavior rather than invoking a remote service.
Identity Map and Cluster Editing
The identity map is the primary interaction surface: Identity Core is central, with editable value clusters around it. Selecting a cluster opens readable detail and editing flows. Cluster content includes meaning, principles, stress-test questions, and suggested tools.
• src/components/IdentityMap.jsx
• src/components/ClusterDetail.jsx
• src/components/ClusterModal.jsx
ClusterModal is the structured editing boundary; its updates flow through context rather than being maintained as isolated component state. Shared list editing is delegated to src/components/ListEditor.jsx.
Search and Knowledge Views
The principles library provides a cross-cluster, searchable/filterable projection of the cluster model. It reads the same contextual identity data rather than maintaining a separate principles store.
• src/components/PrinciplesLibrary.jsx
• src/components/DataToolbar.jsx
• src/context/IdentityContext.jsx
This makes cluster edits immediately visible in the library and map.
Planning and Evaluation Stages
Workflow Builder turns editable input, process, output, and feedback-loop lists into a personal operating pipeline. Tool Ideas manages cluster-associated product/utility concepts. Project Evaluator accepts a project description and applies the predefined autonomy, energy, portability, refusal, clarity, safety, and memory-preservation dimensions to produce a scorecard and prompts.
• src/components/WorkflowBuilder.jsx
• src/components/ToolIdeas.jsx
• src/components/ProjectEvaluator.jsx
• src/data/initialData.js
Import/Export and Static Visual Assets
The data toolbar is the portability boundary: JSON export creates backups; JSON import replaces the primary editable collections; Markdown export produces a human-readable snapshot.
• src/components/DataToolbar.jsx
• src/utils/markdownExport.js
• src/context/IdentityContext.jsx
Chart imagery originates in repository-root charts-graphs/, is copied into public assets during dev/build by scripts/sync-charts-graphs.js, and is referenced through the chart mapping and rendering layer:
• scripts/sync-charts-graphs.js
• src/data/chartImages.js
• src/components/ChartsGraphs.jsx
• src/components/ChartFigure.jsx
GitHub Pages deployment is defined by .github/workflows/deploy-pages.yml.
Main entry points: App.jsx Application shell · IdentityContext.jsx Identity context · DataToolbar.jsx Data toolbar · main.jsx Browser bootstrap
Components 19
Browser Runtime
- Browser bootstrap
src/main.jsx - Application shell · Composes sections, navigation, toolbar, and footer.
src/App.jsx
State & Data
- Identity context · Owns editable identity, workflow, and tool collections.
src/context/IdentityContext.jsx - Seed model
src/data/initialData.js - Browser localStorage · Stores the model under identity-core-v1.
- Markdown export
src/utils/markdownExport.js
Dashboard Features
- Identity map
src/components/IdentityMap.jsx - Cluster detail
src/components/ClusterDetail.jsx - Cluster editor
src/components/ClusterModal.jsx - Principles library · Searchable projection of cluster principles.
src/components/PrinciplesLibrary.jsx - Data toolbar · Imports JSON and exports JSON or Markdown.
src/components/DataToolbar.jsx - Workflow builder · Edits input, process, output, and feedback stages.
src/components/WorkflowBuilder.jsx - Tool ideas
src/components/ToolIdeas.jsx - Project evaluator · Scores descriptions against predefined identity dimensions.
src/components/ProjectEvaluator.jsx
Visual Assets
- Chart asset sync · Copies repository charts into public assets during dev/build.
scripts/sync-charts-graphs.js - Chart image mapping
src/data/chartImages.js - Charts & figures
src/components/ChartsGraphs.jsx
Build & Deploy
- Vite build server · Serves development and bundles the SPA.
vite.config.js - GitHub Pages deploy
.github/workflows/deploy-pages.yml
Connections 23
- Vite build server → Browser bootstrap: serves and bundles
- Browser bootstrap → Application shell: mounts
- Application shell → Identity context: provides shared state
- Application shell → Identity map: renders section
- Application shell → Principles library: renders section
- Application shell → Workflow builder: renders section
- Application shell → Tool ideas: renders section
- Application shell → Project evaluator: renders section
- Application shell → Data toolbar: places shared toolbar
- Identity context → Seed model: initializes from
- Identity context → Browser localStorage: restores and syncs
- Identity map → Cluster detail: selects cluster
- Cluster detail → Cluster editor: opens editor
- Cluster editor → Identity context: submits updates
- Principles library → Identity context: reads cluster model
- Workflow builder → Identity context: edits workflow
- Tool ideas → Identity context: edits tool ideas
- Project evaluator → Seed model: uses score dimensions
- Data toolbar → Identity context: imports and exports model
- Data toolbar → Markdown export: creates snapshot
- Chart asset sync → Chart image mapping: makes assets available
- Chart image mapping → Charts & figures: resolves chart imagery
- GitHub Pages deploy → Vite build server: builds for publishing