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

[BUG] Calendar entries with no time in their title are not recognized #8

Open
KeyanAbtahi opened this issue Mar 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@KeyanAbtahi
Copy link

WHAT:
If a calendar entry does not include time in its title, the extension does not seem to recognize it. The buttons to mark it as complete or incomplete have no effect, and no strikethrough effect is applied.

EXAMPLE:
Working entry: "23:59 ..." (NOTE: #7).
Nonworking entry: "SPRING BREAK".

REPRODUCTION:

  • Load the calendar.
  • Look for an entry with no time in its title.
  • Toggle the complete/incomplete button.
@KeyanAbtahi KeyanAbtahi changed the title [ISSUE] Calendar entries with no time in their title are not being recognized by the extension [BUG] Calendar entries with no time in their title are not being recognized by the extension Mar 14, 2024
@KeyanAbtahi KeyanAbtahi changed the title [BUG] Calendar entries with no time in their title are not being recognized by the extension [BUG] Calendar entries with no time in their title are not recognized Mar 14, 2024
@da-stoi da-stoi self-assigned this Mar 14, 2024
@da-stoi da-stoi added the bug Something isn't working label Mar 14, 2024
@da-stoi
Copy link
Owner

da-stoi commented Apr 29, 2024

Hi,

Thanks for the detailed bug report. Unfortunately none of my Canvas calendar events do not have a time so I am unable to test this bug.

However, the code that handles making sure that events are checked/unchecked correctly does not interact with the date of an event so I'm thinking there is something else going on. Your example mentions the nonworking entry being "SPRING BREAK." Is this event a multi-day event(spanning over the whole range of your spring break)?

Additionally if you feel comfortable poking around your browser's development tools it would be extremely helpful if I could see a copy of data the extension has stored. Below you'll find a guide on how to navigate around development tools.

This guide/screenshot was done on a Chromium browser, specifically Arc. However, it will look the same if you use Chrome. Most other browsers share a similar layout.

  1. Navigate to your university's canvas calendar.
  2. Open DevTools by right clicking on an empty part of the page and selecting the Inspect option. It may also be called Inspect Element.
  3. This will open DevTools. Here you will see a set of "tabs" at the top. Click the option that says Application. If you don't see this you may need to click the >> button and select Application from the dropdown. (Outlined in Cyan below.)
  4. You will now see a list of items on the left. Expand the dropdown that says Local storage and click on the option that lists your university's canvas link. (Outlined in Red below)
  5. This will show list on the right with a filter search box at the top. In this search box type checkedTodos. (Outlined in Orange below.)
  6. You will see one row called checkedTodos with a value to the right of it. (Outlined in Green) This contains a list of all the events you have marked as complete. Double click on this area and copy it to your clipboard. (Outlined in Purple)
  7. Paste the value of this into a reply to this issue. It would be wonderful if you can wrap the value around a set of "```" so GitHub can identify it as code. It shouldn't, but double check that this does not contain any personally identifiable information before submitting your reply. The data in this list only contains:
    • Event name
    • Event type
    • Event ID
    • Course ID
checkedTodosExample

Please let me know if you have any issues getting this information. I'd be more than happy to help you out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants