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

Feature: Edit and Delete Submission with Hotwire #3907

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

KevinMulhern
Copy link
Member

Because:

  • We are moving our project submissions feature to Hotwire

This commit:

  • Add action menu to every project submission. The users submission will display edit and delete links, everyone else's will have the report link (yet to be implemented)
  • Add edit and update actions/views for v2 project submissions
  • Add delete action for v2 project submissions

@KevinMulhern
Copy link
Member Author

New action menu for all submissions:
Screenshot 2023-07-03 at 05 04 19

Because:
* We are moving our project submissions feature to Hotwire

This commit:
* Add action menu to every project submission. The users submission will display edit and delete links, everyone elses will have the report link (yet to be implemented)
* Add edit and update actions/views for v2 project submissions
* Add delete action for v2 project submissions
@KevinMulhern KevinMulhern force-pushed the feature/hotwire-edit-submissions branch from e1282e5 to a049fae Compare July 3, 2023 04:06
@KevinMulhern KevinMulhern temporarily deployed to odin-review-app-pr-3907 July 3, 2023 04:11 Inactive
@KevinMulhern
Copy link
Member Author

Relates to: #3908

@KevinMulhern KevinMulhern self-assigned this Jul 3, 2023
@KevinMulhern KevinMulhern added the Type: Enhancement Involves a new feature or enhancement request label Jul 3, 2023
@@ -1,5 +1,5 @@
<%= turbo_frame_tag 'project_submission_form', class: 'w-full' do %>
<%= form_with url: lesson_v2_project_submissions_path(lesson.id), model: project_submission, builder: TailwindFormBuilder do |form| %>
<%= form_with url:, model: project_submission, builder: TailwindFormBuilder do |form| %>
Copy link
Member

Choose a reason for hiding this comment

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

Nothing wrong with your code, but for a second I thought you'd accidentally left in url:. Not sure I like this Ruby feature 😆

Copy link
Member Author

Choose a reason for hiding this comment

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

heh, it's been tripping me up too 😆. Final version of this will get rid of that url and just use the model object. I only need the url atm because of the v2 namespace.

@KevinMulhern KevinMulhern merged commit 56dd76c into main Jul 4, 2023
@KevinMulhern KevinMulhern deleted the feature/hotwire-edit-submissions branch July 4, 2023 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Involves a new feature or enhancement request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants