Skip to content

Revert v6 web component rewrite#367

Merged
codingjoe merged 4 commits intomainfrom
issues/363/revert
Jan 6, 2026
Merged

Revert v6 web component rewrite#367
codingjoe merged 4 commits intomainfrom
issues/363/revert

Conversation

@codingjoe
Copy link
Copy Markdown
Owner

Back to the roots, I carefully reverted the web component changes
while keeping the updates to the senlenium suite and the package.

Reverts 2706cb3

Copilot AI review requested due to automatic review settings January 6, 2026 13:16
@codingjoe codingjoe self-assigned this Jan 6, 2026
@codingjoe codingjoe linked an issue Jan 6, 2026 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 6, 2026

Codecov Report

❌ Patch coverage is 91.89189% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.95%. Comparing base (c1b8467) to head (8f78b3b).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
s3file/forms.py 91.89% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #367      +/-   ##
==========================================
- Coverage   97.72%   96.95%   -0.78%     
==========================================
  Files           8        8              
  Lines         264      230      -34     
==========================================
- Hits          258      223      -35     
- Misses          6        7       +1     
Flag Coverage Δ
python 96.95% <91.89%> (-0.78%) ⬇️
selenium-ubuntu-latest 72.17% <27.02%> (-8.51%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts the v6 web component rewrite, rolling back from a custom <s3-file> web component implementation to the traditional file input approach with JavaScript event handlers, while preserving updates to the Selenium test suite and package configuration.

Key Changes:

  • Reverted from web component (<s3-file>) to traditional file input with class-based targeting
  • Replaced modern fetch-based upload logic with XMLHttpRequest for progress tracking
  • Removed web component-related Python classes (Asset, ESM, InputToS3FileRewriter)

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/testapp/templates/form.html Reverted template to use standard file inputs; added progress bar example and event handling script
tests/test_forms.py Removed web component unit tests; updated Selenium tests to target file inputs by name instead of type; added slugify for test file naming
tests/conftest.py Added slugify to test fixture filenames for consistency
tests/tests/s3file.test.js Removed all JavaScript unit tests for the web component implementation
s3file/static/s3file/js/s3file.js Reverted from web component class to traditional IIFE-based implementation with XHR
s3file/forms.py Removed InputToS3FileRewriter, Asset, and ESM classes; restored class-based widget rendering
README.md Added progress bar documentation and usage examples
.pre-commit-config.yaml Added esupgrade hook for JavaScript code modernization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codingjoe codingjoe force-pushed the issues/363/revert branch 2 times, most recently from 94b1bc6 to a49b3c0 Compare January 6, 2026 13:22
Back to the roots, I carefully reverted the web component changes
while keeping the updates to the senlenium suite and the package.

Reverts 2706cb3
@codingjoe codingjoe merged commit 4eae952 into main Jan 6, 2026
13 of 16 checks passed
@codingjoe codingjoe deleted the issues/363/revert branch January 6, 2026 15:13
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.

Hi there @codingjoe!

2 participants