Skip to content

feat: update build script and add PWA support#27

Open
Subham-chaudhary wants to merge 1 commit into
mskayyali:mainfrom
Subham-chaudhary:feature/pwa-manifest
Open

feat: update build script and add PWA support#27
Subham-chaudhary wants to merge 1 commit into
mskayyali:mainfrom
Subham-chaudhary:feature/pwa-manifest

Conversation

@Subham-chaudhary
Copy link
Copy Markdown

feature added: PWA support

  • Modified the build script in package.json to include webpack.
  • Added next-pwa dependency for Progressive Web App support.
  • Included new icons for PWA in the public directory:
  • Created manifest.json and site.webmanifest files for PWA configuration.

Motivation

I just wanted to use this as an dedicated app, not just another browser tab.
Thus, I added Progressive WebApp support, the goal is to make the app feel like a dedicated, installable tool, improving accessibility and usability for frequent users.

Testing

  • Verified installability on Chromium-based browsers (Chrome, Brave).
  • Tested behavior on mobile devices (Android & iOS).
  • Confirmed responsiveness across different screen sizes (mobile, tablet, desktop).
  • Service worker successfully registers in production build.

PWA is disabled in development mode to avoid caching issues.

- Modified the build script in package.json to include webpack.
- Added next-pwa dependency for Progressive Web App support.
- Included new icons for PWA in the public directory:
- Created manifest.json and site.webmanifest files for PWA configuration.
Dev-020 added a commit to Dev-020/nodepad_Dev that referenced this pull request May 11, 2026
Three-phase AI pipeline that consolidates sparse nodespace notes into
a structured, contextualized markdown document:

- lib/synthesis.ts
  - buildEdgeMap(): Phase 1 — serialises block graph from
    influencedBy edges; separates reference nodes as source anchors
  - callDecontextualize(): Call A — rewrites each node into a
    self-contained statement using only its graph neighbours and
    source anchor as context (no external knowledge fill)
  - callCluster(): Call B — groups nodes into named sections by
    semantic meaning; post-processes to ensure every ID is assigned
    to exactly one section, missing nodes go to "General"
  - callSynthesize(): Call C — writes section headings, intros,
    expounding prompts (Socratic, not recall), and gap markers;
    nodeIds merged from clustering step by index
  - generateSynthesisDocument(): orchestrates Phases 1–3 with
    calls A+B in parallel then call C sequential
- lib/synthesis-export.ts
  - renderSynthesisDocument(): Phase 3 renderer — YAML frontmatter,
    self-contained statements with source attribution, expounding
    prompts and gaps as Obsidian callout blocks
- components/vim-input.tsx
  - Add "Synthesis document" action to command palette
  - pluginOnly: false (web-app only for now; plugin port later)
- app/page.tsx
  - Handle "synthesis-doc" command: captures project snapshot
    synchronously then runs async pipeline, downloads result
  - synthesisStatus state drives a spinner toast during generation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Dev-020 added a commit to Dev-020/nodepad_Dev that referenced this pull request May 11, 2026
- renderTimingTable now takes wallClockMs? and uses it for the Total
  row label ("Total (wall-clock)"), consistent with the generated_in
  frontmatter field. Both renderSynthesisDocument and
  renderPolishedDocument pass their wallClockMs through.
- Remove clusters_known from ProgressEvent type and its emission in
  callCluster — the event was never consumed by the UI handler since
  Call C phase_start events fire immediately after B completes,
  making the signal redundant.
- Update BACKLOG mskayyali#27 to reflect web-app implementation is complete;
  plugin port remains open as future work.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Dev-020 added a commit to Dev-020/nodepad_Dev that referenced this pull request May 11, 2026
docs: Synthesis Document Generation — implementation plan (mskayyali#27)
Dev-020 added a commit to Dev-020/nodepad_Dev that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant