Skip to content

[Bugfix:Forum] Fix Markdown Toggle on Forum Replies#12071

Merged
bmcutler merged 8 commits intomainfrom
vue-forum-markdown-bug
Oct 3, 2025
Merged

[Bugfix:Forum] Fix Markdown Toggle on Forum Replies#12071
bmcutler merged 8 commits intomainfrom
vue-forum-markdown-bug

Conversation

@skara9
Copy link
Copy Markdown
Contributor

@skara9 skara9 commented Sep 19, 2025

Why is this Change Important & Necessary?

Resolves #12068
Markdown toggle on Forum replies does not function correctly (see issue for more details).
Also, toggling markdown may erase the contents of the text box in certain cases.
Bug introduced by Vue refactor #11872

What is the New Behavior?

Vue component has been updated to directly read+write to original HTML form input, removed unnecessary cookie
Markdown fields without toggle functionality are preserved

It is worth investigating to find a better solution for propagating Vue state updates to outer DOM in the future.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.69%. Comparing base (e8d4cd0) to head (1e20e2c).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12071   +/-   ##
=========================================
  Coverage     21.69%   21.69%           
  Complexity     9587     9587           
=========================================
  Files           268      268           
  Lines         36593    36593           
  Branches        475      475           
=========================================
  Hits           7940     7940           
  Misses        28182    28182           
  Partials        471      471           
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.07% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.71% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 90.72% <ø> (ø)

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

🚀 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

@JManion32 JManion32 left a comment

Choose a reason for hiding this comment

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

There seems to still be an issue with the edit box where the content of edited messages are deleted when preview or markdown is toggled.

buggy-markdown-fix-video.mp4

@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Sep 26, 2025
Copy link
Copy Markdown
Contributor

@Rkoester47 Rkoester47 left a comment

Choose a reason for hiding this comment

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

I tested to see if I could reproduce the issue Justin showed in the video above, and I believe the same issue is present for me. While I can use markdown toggle on a new comment to add a hyperlink, I can confirm that attempting to edit an existing comment and toggling the markdown or preview erases the message entirely.

Hitting cancel also replaces the text in the comment in the thread.

Copy link
Copy Markdown
Contributor

@Rkoester47 Rkoester47 left a comment

Choose a reason for hiding this comment

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

I initially tested an out of date version. After checking the newest commits, the issue does seem to be resolved. I was able to edit a comment, toggle markdown and preview with no issue.

@skara9 skara9 requested a review from JManion32 September 30, 2025 20:06
@automateprojectmangement automateprojectmangement bot moved this from Work in Progress to In Review in Submitty Development Sep 30, 2025
Copy link
Copy Markdown
Contributor

@JManion32 JManion32 left a comment

Choose a reason for hiding this comment

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

Toggling markdown and preview work correctly while preserving the content of the post.

@github-project-automation github-project-automation bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Oct 3, 2025
@skara9 skara9 moved this from Awaiting Maintainer Review to Ready to Merge in Submitty Development Oct 3, 2025
@bmcutler bmcutler merged commit 418fa08 into main Oct 3, 2025
23 of 26 checks passed
@bmcutler bmcutler deleted the vue-forum-markdown-bug branch October 3, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Submitty Forum erases the message when Markdown is toggled.

4 participants