mikal-k / moji-the-decoder

0 stars 0 forks source link

Sweep: Moji decoding site is broken #14

Closed mikal-k closed 11 months ago

mikal-k commented 11 months ago

Details

Clicking "Decode" does not return the codes for neither normal emojis nor ZWJ ones. The text field below the decode button seems not to change at all when the button is pressed. Also, the URL does not update with the characters in the text field when hitting the decode button.

Checklist - [X] ``public_html/index.html`` ✅ Commit 4e20883 - [X] `public_html/index.html` ✅ Sandbox ran successfully - [X] ``moji.js`` ⚠️ No Changes Made - [X] `moji.js` ❌ Sandbox failed so I made additional changes - [X] `moji.js` ❌ Sandbox failed so I made additional changes - [X] `moji.js` ❌ Sandbox failed so I made additional changes - [X] `moji.js` ❌ Sandbox failed so I made additional changes - [X] `moji.js` ❌ Sandbox failed so I made additional changes - [X] `moji.js` ❌ Sandbox failed so I made additional changes - [X] `moji.js` ❌ Sandbox failed so I made additional changes - [X] `moji.js` ❌ Sandbox failed so I made additional changes - [X] `moji.js` ❌ Sandbox failed so I made additional changes - [X] `moji.js` ❌ Sandbox failed so I made additional changes - [X] `moji.js` ❌ Sandbox failed so I made additional changes - [X] `moji.js` ❌ Sandbox failed so I made additional changes ![Flowchart](http://24.199.78.105:8082/public/2cbd16f183ade702ec585130ffba6692cdbb1631be122ec239d19db426eff314_14_flowchart.svg)
sweep-ai[bot] commented 11 months ago

Here's the PR! https://github.com/mikal-k/moji-the-decoder/pull/16.

⚡ Sweep Basic Tier: I'm creating this ticket using GPT-4. You have 4 GPT-4 tickets left for the month and 2 for the day. For more GPT-4 tickets, visit our payment portal.

Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/mikal-k/moji-the-decoder/blob/eab66ab3324677280d303302d022588a3e46ac3b/public_html/index.html#L1-L117 https://github.com/mikal-k/moji-the-decoder/blob/eab66ab3324677280d303302d022588a3e46ac3b/README.md#L1-L19 https://github.com/mikal-k/moji-the-decoder/blob/eab66ab3324677280d303302d022588a3e46ac3b/moji.js#L1-L48

Step 2: ⌨️ Coding


Sandbox logs for 0ebd28c
trunk fmt public_html/index.html || return 0 1/2 ✓
 ✔ Formatted public_html/index.html
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix --print-failures public_html/index.html 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Sandbox logs for 0ebd28c
trunk fmt moji.js || return 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures moji.js 2/2 ✓
Checked 1 file
✔ No issues


Step 3: 🔁 Code Review

Here are my self-reviews of my changes at sweep/fix-moji-decoding.

Here is the 1st review

Thanks for your work on this. However, there are a few areas that need to be addressed before this PR can be merged: - The diff provided does not show any changes related to the event listener for the "Decode" button. This was part of the original plan and needs to be implemented. Please check the event listener in `public_html/index.html` and ensure it triggers the correct function when clicked. - Similarly, the diff does not show any changes to the asynchronous function that sends the POST request to the "/decode" endpoint, or the code that updates the "result" div. These also need to be implemented as per the original plan. Please review and update these sections in `public_html/index.html`. - The diff does not show any changes to the `moji.js` file. The "/decode" endpoint and the use of the EmojiDictionary and emoji-unicode modules need to be checked and possibly updated. Please review and make necessary changes in `moji.js`. Once these changes are made, we can review the PR again. If you need any help, feel free to ask.

I finished incorporating these changes.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord