Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Implement Delete File Button #74

Merged
merged 5 commits into from
Feb 3, 2024

Conversation

wderocco8
Copy link
Contributor

What does this PR do?

Added functionality for rushees to explicitly delete files after input (instead of having to either swap/clear them)

Type of change

  • Fix: Bug fix (non-breaking change which fixes an issue)
  • Refactor: Any code refactoring
  • Chore: technical debt, workflow improvements
  • Feature: New feature (non-breaking change which adds functionality)
  • Documentation: This change requires a documentation update

Tests Performed

  • Ensured file sizes are still dynamically adjusted after file deletion
  • Same with file names ^
  • Submission works properly

Screenshots

DEMO: https://drive.google.com/file/d/1_gf6BJeoKvOU-lOwvXZLWX7-tk4tOC3U/view?usp=sharing

Additional Comments

Copy link
Contributor

@jinyoungbang jinyoungbang left a comment

Choose a reason for hiding this comment

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

LGTM! Some minor changes before merging but overall 👍

Pipfile Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you remove this from the PR? 😅

@@ -570,48 +649,9 @@ export default function Form({ title, questions, listingId, includeEventsAttende
{renderInput("phone", "Phone Number (xxx-xxx-xxxx)", "text", true)}
{renderInput("linkedin", "LinkedIn Profile", "text")}
{renderInput("website", "Website / Portfolio", "text")}
{renderFileInput("resume", "Upload Your Resume (PDF)", "file", true)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Love this refactoring; makes things more consistent!

@jinyoungbang jinyoungbang changed the title Fix/delete file form refactor: Implement Delete File Button Feb 3, 2024
@jinyoungbang jinyoungbang merged commit 56feb89 into dev/v0.2 Feb 3, 2024
1 check passed
@jinyoungbang jinyoungbang deleted the fix/delete-file-form branch February 3, 2024 23:25
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.

2 participants