feat(arrow): implement intelligent arrow-shape connection#42
Open
szj2ys wants to merge 9 commits intoBIT-DataLab:mainfrom
Open
feat(arrow): implement intelligent arrow-shape connection#42szj2ys wants to merge 9 commits intoBIT-DataLab:mainfrom
szj2ys wants to merge 9 commits intoBIT-DataLab:mainfrom
Conversation
- Add Navbar with logo and navigation - Add Hero section with CTA and stats - Add UploadSection with file conversion integration - Add Features section with 6 key features - Add Footer with links and copyright - Replace default Next.js template in page.tsx
Setup GitHub Actions CI/CD pipeline - Add frontend CI workflow (lint, type-check, build) - Add backend CI workflow (flake8 lint, syntax check) - Add Vercel deployment workflow - Add PR template with checklist - Add Issue templates for bugs and features
…step - Add optional fields to Job interface in types.ts - Add null checks in upload-section.tsx progress calculation Fixes: 'total_steps' does not exist on type 'Job'
- Install @vercel/analytics package - Add Analytics component to root layout - Track custom events: file_selected, conversion_started, conversion_completed, download_clicked Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Create example-showcase.tsx with interactive before/after gallery - Add 3 example categories: Flowchart, Architecture, Network - Include trust badges with stats - Integrate into main page between Features and Footer Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…iation Add ArrowConnector module that automatically associates arrows with their source and target shapes based on spatial proximity and confidence scoring. Key features: - Distance-based proximity algorithm with configurable threshold (default 50px) - Confidence scoring using exponential decay based on distance - Prefers shapes that strictly contain arrow endpoints over boundary proximity - Stores connection metadata in element.metadata['arrow_connection'] - Full pipeline integration in main.py step [5] - XML generation outputs proper edge elements with source/target attributes Files added: - modules/arrow_connector.py: Core connector implementation - tests/test_arrow_connector.py: 16 comprehensive unit tests Files modified: - modules/data_types.py: Add metadata field to ElementInfo - modules/__init__.py: Export ArrowConnector - main.py: Integrate ArrowConnector into pipeline and XML generation All 16 tests passing.
szj2ys
pushed a commit
to szj2ys/Edit-Banana-1
that referenced
this pull request
Mar 14, 2026
…, and arrow connector Implements comprehensive error handling infrastructure: Backend Changes: - Exception hierarchy with specific error types (SegmentationError, OCRParsingError, etc.) - @Retry decorator with exponential backoff and configurable strategies - PartialResultsHandler for saving/recovering conversion state on failure - Arrow processor module for automatic arrow-shape association - 60 comprehensive unit tests for exceptions, retry, and partial results CI/CD: - GitHub Actions workflows for backend, frontend, and deployment Frontend: Clean merge keeping history persistence and share features Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements ArrowConnector module for automatic association of arrows with their source and target shapes based on spatial proximity and confidence scoring.
Changes
Backend
Tests
Files Modified
Test Plan
Related Issues
N/A