Skip to content

Dromo prototype#897

Closed
vlad-shapik wants to merge 5 commits intomainfrom
dromo-prototype
Closed

Dromo prototype#897
vlad-shapik wants to merge 5 commits intomainfrom
dromo-prototype

Conversation

@vlad-shapik
Copy link
Contributor

No description provided.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots

See analysis details on SonarQube Cloud

@vlad-shapik vlad-shapik closed this Mar 3, 2026
@coderabbitai
Copy link

coderabbitai bot commented Mar 3, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 154648b and 05cbb3a.

📒 Files selected for processing (2)
  • src/react/public/index.html
  • src/react/src/components/ContributeForm.jsx

📝 Walkthrough

Walkthrough

Integrates DromoUploader.js CDN script into the application's public HTML and adds DromoUploader initialization logic to the ContributeForm component. The implementation handles file uploads through Dromo, converts results to CSV format, and attaches files to the existing hidden file input mechanism.

Changes

Cohort / File(s) Summary
Script Loading
src/react/public/index.html
Added two script tags to load DromoUploader.js from CDN in the document head.
Dromo Uploader Integration
src/react/src/components/ContributeForm.jsx
Added useEffect hook to initialize DromoUploader instance and wire onResults callback for CSV conversion and file attachment. Introduced openDromoUploader function. Restructured file control UI to include "Beta Self Service Upload" button alongside existing file selector, with helper text explaining the enhanced functionality.

Sequence Diagram

sequenceDiagram
    participant User
    participant ContributeForm
    participant DromoUploader
    participant FileInput
    
    Note over ContributeForm: Component Mount
    ContributeForm->>DromoUploader: Initialize instance + set onResults callback
    activate DromoUploader
    
    User->>ContributeForm: Click "Beta Self Service Upload"
    ContributeForm->>DromoUploader: openDromoUploader()
    DromoUploader-->>User: Display uploader UI
    
    User->>DromoUploader: Upload file(s)
    DromoUploader->>ContributeForm: onResults callback (Dromo data)
    
    Note over ContributeForm: Convert to CSV
    ContributeForm->>ContributeForm: Generate CSV from results
    ContributeForm->>ContributeForm: Create File object
    
    ContributeForm->>FileInput: Attach file to hidden input
    FileInput->>ContributeForm: Trigger onChange handler
    
    Note over ContributeForm: updateSelectedFileName called
    deactivate DromoUploader
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • roman-stolar
  • VadimKovalenkoSNF
✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dromo-prototype

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

3 participants