Document Assistant
Overview
Section titled “Overview”The Document Assistant controls how figures relate to their source documents. Unlink a figure from a document while choosing what to keep—the figure in your library, the imported copy, or neither—with visual previews so you can see what each option affects before you confirm.
Key Benefits for Users
Section titled “Key Benefits for Users”Clean Up Your Library
Section titled “Clean Up Your Library”- Remove Unwanted Links: Disconnect figures from documents without losing the figures
- Delete Import Artifacts: Remove figure revisions created during imports you want to undo
- Maintain Organization: Keep your figure library clean and well-organized
Safe Operations
Section titled “Safe Operations”- Visual Previews: See exactly which figure you’re about to unlink
- Confirmation for Tracked Figures: Extra confirmation prevents accidental deletion of important figures
- Clear Options: Understand exactly what will happen before you act
Flexible Control
Section titled “Flexible Control”- Unlink Only: Keep the figure, just remove the document connection
- Unlink and Delete: Remove both the link and the figure revision
- Per-Revision Control: Act on specific revisions without affecting others
Features
Section titled “Features”Unlink Figures from Documents
Section titled “Unlink Figures from Documents”When viewing a document (PowerPoint, Word, or Jupyter notebook), you can now unlink associated figures:
The Unlink Button:
- Located on each linked figure card in document view
- Red “Unlink” button with X icon
- Click to open the unlink modal
What Unlinking Does:
- Removes the connection between the figure and the document
- Figure remains in your library (unless you choose to delete)
- Document is unchanged
- Other figures remain linked
Unlink Options
Section titled “Unlink Options”The unlink modal provides clear choices:
Option 1: Unlink Only (Default)
Section titled “Option 1: Unlink Only (Default)”- Removes the figure-document association
- Figure revision remains in your library
- Safe for figures you want to keep
- No confirmation required
Option 2: Unlink and Delete Revision
Section titled “Option 2: Unlink and Delete Revision”- Removes the association AND deletes the figure revision
- For cleaning up unwanted imports
- Requires confirmation for tracked (non-imported) figures
- Imported figures can be deleted without extra confirmation
Visual Preview
Section titled “Visual Preview”Before unlinking, you see:
Figure Preview:
- Thumbnail image of the figure
- Figure name
- Revision number
- Clickable link to the full figure view
Context Information:
- Which document the figure is linked to
- The anchor/location in the document
- Whether the figure is imported or tracked
Confirmation for Tracked Figures
Section titled “Confirmation for Tracked Figures”When deleting a tracked (non-imported) figure revision:
Extra Safeguard:
- Warning message explains the figure was created in your analysis (not imported)
- Text input requiring you to type “confirm delete”
- Prevents accidental deletion of original work
- Imported figures bypass this (easier to re-import if needed)
Document View Integration
Section titled “Document View Integration”The unlink feature is seamlessly integrated into document views:
From PowerPoint/Word View:
- Open any imported document
- See list of extracted figures
- Each figure has an unlink button
- Actions apply per-figure
From Notebook View:
- Open any imported Jupyter notebook
- View code cells with their output figures
- Unlink individual figures while keeping the notebook
How to Access
Section titled “How to Access”From Document (Asset) View
Section titled “From Document (Asset) View”- Navigate to any asset (document) in your workspace
- Click to view the asset revision
- Scroll to see linked figures
- Click “Unlink” on any figure card
- Choose your options in the modal
- Confirm the action
From Document Tab
Section titled “From Document Tab”- Open a figure that was imported from a document
- Go to the “Source” or “Documents” tab
- See all documents linked to this figure
- Manage links from this view (reverse direction)
Use Cases
Section titled “Use Cases”Cleaning Up Test Imports
Section titled “Cleaning Up Test Imports”After testing the import feature:
- View the test document
- Unlink all figures with “delete revision” checked
- Figures are removed from your library
- Document asset can also be deleted separately
Removing Incorrect Links
Section titled “Removing Incorrect Links”If a figure was incorrectly linked:
- Find the figure in the document view
- Click Unlink
- Keep “delete revision” unchecked
- Link is removed, figure stays in library
Reorganizing After Import
Section titled “Reorganizing After Import”After importing, you may want different organization:
- Unlink figures from original document
- Move figures to a different analysis
- Re-link to different documents if needed
Undoing Accidental Imports
Section titled “Undoing Accidental Imports”If you imported the wrong document:
- Open the imported document
- Unlink all figures (with delete)
- Delete the document asset
- Your library returns to its previous state
Safety Features
Section titled “Safety Features”Imported vs. Tracked Figures
Section titled “Imported vs. Tracked Figures”GoFigr distinguishes between:
Imported Figures:
- Created automatically during document import
- Marked with
is_imported = true - Can be deleted without extra confirmation
- Easy to re-import if needed
Tracked Figures:
- Created through the Python/R API or manual creation
- Represent original work
- Require extra confirmation to delete
- “Confirm delete” text input required
What Confirmation Looks Like
Section titled “What Confirmation Looks Like”For tracked figures:
This figure revision was created in your analysis (not imported).Deleting it will permanently remove this revision.
To confirm deletion, please type "confirm delete" below:
[___________________]
[Cancel] [Delete]Prevention of Mistakes
Section titled “Prevention of Mistakes”- Modal requires explicit action
- Checkbox for deletion is unchecked by default
- Visual preview shows exactly what’s affected
- Link to view full figure before deciding
Technical Details
Section titled “Technical Details”API Endpoint
Section titled “API Endpoint”POST /api/v4/asset_revision/{id}/unlink_figure/{ "figure_revision": "revision_id", "anchor": "optional_anchor", "delete_figure_revision": false}Parameters:
figure_revision: API ID of the figure revision to unlinkanchor: Optional anchor/position reference (for multi-position links)delete_figure_revision: Whether to delete the revision after unlinking
Data Model
Section titled “Data Model”Links are stored in AssetLinkedToFigure model:
asset_revision: The document revisionfigure_revision: The linked figure revisionuse_type: How the figure is used (e.g., “source”)anchor: Position within the document
Cache Invalidation
Section titled “Cache Invalidation”After unlinking:
- Asset revision cache is invalidated
- Linked figures list refreshes automatically
- UI updates without page reload
Best Practices
Section titled “Best Practices”Before Unlinking
Section titled “Before Unlinking”- Check the Preview: Verify you’re unlinking the right figure
- Consider Keeping: Usually unlink-only is safer than delete
- Think About Re-Import: Can you easily get this figure back?
For Cleanup Operations
Section titled “For Cleanup Operations”- Work Document by Document: Clean up one import at a time
- Verify Before Bulk Actions: Double-check before mass unlinking
- Keep Backups: Important figures should have copies elsewhere
For Organization
Section titled “For Organization”- Unlink Before Moving: Clean up links before reorganizing
- Document Your Changes: Note what you’ve unlinked for team awareness
- Regular Maintenance: Periodically review and clean up links
Related Features
Section titled “Related Features”Document Preview
Section titled “Document Preview”- View imported documents within GoFigr
- Navigate through slides/pages
- See which figures came from which locations
Source Tracking
Section titled “Source Tracking”- Every figure knows its source document
- Bidirectional navigation between figures and documents
- Full provenance chain maintained
Figure QC (Quality Control)
Section titled “Figure QC (Quality Control)”- Badges show figure import status
- Warning alerts for import-related issues
- Reproducibility tracking for non-imported figures