Skip to content

Comments

Suggested feature updates#1

Open
ds-vibe wants to merge 10 commits intojamietso:mainfrom
ds-vibe:feature/advanced-features
Open

Suggested feature updates#1
ds-vibe wants to merge 10 commits intojamietso:mainfrom
ds-vibe:feature/advanced-features

Conversation

@ds-vibe
Copy link

@ds-vibe ds-vibe commented Dec 10, 2025

Summary

This PR adds suggested features to RedlineNow, including rich text editing, Word document import/export, and (stubbed) playbook management for AI-powered summaries. All changes are organized into logically grouped commits.

✨ Rich Text Editing

  • Rich text editor with support for bold, italic, and underline formatting
  • Uses TipTap

📄 Word Document Support

  • Import Word documents (.docx) directly into the editor (converted to HTML)
  • Export redline comparisons to Word format with tracked changes
  • Preserves formatting (bold, italic, underline) during import/export
  • Note: Does not preserve all formatting upon export (e.g., columns).

🎨 UI Changes

  • Import modal for "Modified Text": options to copy original, import file, or paste text
  • Word export button in header
  • Added Playbook button (see below)

📚 Playbook Management (stubbed)

  • Intended to allow user to upload and apply contract playbooks to documents in app
  • Feature is included in alpha form in code, but UI is stubbed
  • Requires more iteration

🔧 Technical Details

New Dependencies

  • @tiptap/react, @tiptap/starter-kit, @tiptap/extension-placeholder, @tiptap/extension-underline - Rich text editing
  • docx - Word document generation
  • mammoth - Word document parsing
  • file-saver - File download functionality

All new dependencies use permissive licenses (MIT/BSD-2-Clause)

📝 Commit Organization

Changes are organized into 10 logical commits:

  1. Rich text editor component
  2. Word document import/export service
  3. Rich text types and formatting support
  4. Rich text integration into main app
  5. Rich text formatting in diff view
  6. Word export button and import modal
  7. Dependencies for rich text and Word processing
  8. Configuration updates
  9. Playbook integration with AI service
  10. Playbook management feature

- Add RichTextContent type (string | JSONContent)
- Add RichTextFormatting interface for bold/italic/underline
- Update PanelProps to support rich text values
- Remove multi-version support types
- Add rich text state management in App.tsx
- Update EditorPanel to use RichTextEditor when rich text is available
- Support both plain text and rich text modes
- Add Word document import functionality to EditorPanel
- Remove multi-version support code
- Preserve and display formatting (bold, italic, underline) in redline
- Support HTML rendering for rich text documents
- Update diff service to extract and apply formatting from HTML
- Improve diff computation to handle rich text content
- Add Word export button to header
- Integrate ImportModifiedModal for importing modified documents
- Improve import modal display logic to show consistently
- Fix modal to appear whenever original has content but modified is empty
- Add TipTap packages for rich text editing
- Add docx and mammoth for Word document handling
- Add file-saver for file downloads
- All dependencies use permissive licenses (MIT/BSD-2-Clause)
- Update .gitignore to include .env files
- Update constants.ts with empty initial values for cleaner UX
- Update index.html configuration for new dependencies
- Support passing approved playbook rules to AI
- Enhance summary generation with playbook context
- Update to use Gemini 2.5 Flash model
- Add PlaybookManager component for uploading and managing playbook rules
- Add AcceptRejectControls for approving/rejecting rules
- Add playbookService for parsing and managing playbook entries
- Add playbook documentation
- Integrate playbook rules with AI summary generation
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