Skip to content

Conversation

@gkharrell01
Copy link
Contributor

@gkharrell01 gkharrell01 commented May 28, 2025

Goal: Fix minor bugs before final presentation. A few variable name issues and url deletions that caused issue with submission and redirection. Added comments in files changed to give context.

@gkharrell01 gkharrell01 changed the title Interactive fiction - Minor bug fixes [Interactive fiction] Minor bug fixes May 28, 2025
path("lobby/<int:pk>/code/", views.MatchCodeView.as_view(), name="match-code"),
# interactive fiction
path("interactive-fiction/", views.IFGameCreateView.as_view(), name="interactive-fiction-create"),
path('upload/<int:pk>/', views.UploadFileView.as_view(), name='upload-file'),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

URL path was removed at some point...

const author = document.getElementById('id_author').value.trim();
const desc = document.getElementById('id_description').value.trim();
const gameFile = document.getElementById('id_game_file');
const gameFile = document.getElementById('myFile');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A few variable names in the modal logic were repeated which caused bugs.

</div>
</div>
</h3>
</form>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Main problem: Image submission created two forms in the file, which caused no data to passed when POST request was made.

@gkharrell01 gkharrell01 requested a review from jacqsmei May 28, 2025 03:37
@smagdalen smagdalen self-requested a review May 28, 2025 04:13
@smagdalen smagdalen assigned smagdalen and gkharrell01 and unassigned smagdalen May 28, 2025
Copy link
Contributor

@smagdalen smagdalen left a comment

Choose a reason for hiding this comment

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

LGTM

path("lobby/<int:pk>/code/", views.MatchCodeView.as_view(), name="match-code"),
# interactive fiction
path("interactive-fiction/", views.IFGameCreateView.as_view(), name="interactive-fiction-create"),
path("upload/<int:pk>/", views.UploadFileView.as_view(), name="upload-file"),
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch

data-maxlength>{{ form.content_warning.value }}</textarea>
</div>
<div>
<label for="id_image">Cover Imags</label>
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch

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