Repository navigation
Add CanvasCast Extension - #209
Conversation
pernielsentikaer
left a comment
There was a problem hiding this comment.
Hi @YodaLightsabr 💪
Found a few suggestions and comments:
- Is it called Canvas or CanvasCast, it's mixed in the extension, could be nice to have it baseline.
Do you by any chance have a token I could try so I can test the rest of the functionality? Feel free to find me in the channel #extensions on Slack
|
Sure! I'll get a test course going where you can try it out. Canvas is the name of the API Canvascast is using to check the courses and assignments. |
Co-authored-by: Per Nielsen Tikær <[email protected]>
Co-authored-by: Per Nielsen Tikær <[email protected]>
Co-authored-by: Per Nielsen Tikær <[email protected]>
Co-authored-by: Per Nielsen Tikær <[email protected]>
|
Hi @YodaLightsabr 👋 Awesome, looking forward to test it out, thanks for the key provided |
pernielsentikaer
left a comment
There was a problem hiding this comment.
Hi @YodaLightsabr 👋
Thanks for the corrections, it's very close to launching 🚀
Comments and suggestions
- There is no handling of wrong URL/token - you can check #165 for a way to handle it visually.
- move api.js to src/ folder
Request a new review when you are ready, feel free to contact me here or at Slack if you have any questions.
| "commands": [ | ||
| { | ||
| "name": "index", | ||
| "title": "Open Dashboard", |
There was a problem hiding this comment.
| "title": "Open Dashboard", | |
| "title": "Dashboard", |
|
hiii! this extension looks super cool; i think it would be nice to add a readme that explains how to get the access token, and also add a warning about the access token breaking canvas' tos as explained here |
|
@YodaLightsabr Do you need help with anything? |
|
I'll have a few more test assignments added soon, I've just been really busy and haven't gotten around to it yet. |
|
Hi @YodaLightsabr 👋 Sure! Just DM on Slack when you're ready 🧑🎤 And as @maggie-j-liu said, there should be a README.md file telling about the extension (and how to get token) and if anything not is compliant with the terms it should be added too: https://developers.raycast.com/basics/prepare-an-extension-for-store#metadata-and-configuration |
|
Closing this PR due to inactivity – feel free to reopen later. |
|
Thanks, closing it reminded me I hadn't updated it. I think I've just about finished adding all of the suggestions. |
|
@YodaLightsabr Let me know if you want to reopen it here... |
|
Yeah, I think it's ready to be reopened. |
|
Let's reopen it and get it merged – we could call it “My Courses” instead, that would be a more sufficient title |
|
Published to the Raycast Store: |
|
This is a very useful extension. I do have one suggestion: Can you please make the extension only show courses which we have bookmarked in Canvas. For students with many old, but still Canvas-enrolled courses, it takes up the entire CanvasCast "Enrolled courses" thing. E.g., I can't see any course with a letter after "B". By only showing "Bookmarked courses", it would allow us to easily access the courses we want as most accessible and hopefully prevent these past-enrolled courses from taking up the entire CanvasCast pop-up. |
|
Oh yeah, I can totally relate to that. I have a ton of old courses and it wasn't until recently where they were dropped from my account. I'll take a look at this soon. |
Thanks so much for looking into this! For colleges like mine that are too lazy to drop them it would be super helpful haha |
|
@eliotbehr if you could test something for me it would be a big help. Could you sign into your canvas and then GET |
|
@YodaLightsabr It did change it very slightly—with enrollment_state=active it removed one course that the school seemed to have explicitly unenrolled me, but not the old courses where I'm still "enrolled". Also this API query only presents at most 10 courses, sorted by alphabetical order it seems. Could this be a possible option to query?: api/v1/users/self/favorites/courses |
|
Oh, I didn't see that. As long as it returns the same Course object, it should be an easy swap. |
|
@YodaLightsabr |
|
Hmmm, that shouldn't be happening. Could you tell me the API outputs of the courses endpoint, and then the favorites endpoint, and then what you want to see in the extension? You can hide private course details, it would just be helpful for debugging. |
|
@YodaLightsabr |
|
Ok, I think I've figured out how to only use the courses on the Dashboard and sort them in that order. I'll get started on implementing it. |


Description
Add Canvas LMS extension.
Type of change
New extension
Screencast
There isn't a lot to show because it's one command, but here it is. I also can't show the actual data because it has personal information.
Courses load a user's courses from https://canvas.instructure.com/doc/api/courses.html
Assignments load a user's TODO items from https://canvas.instructure.com/doc/api/users.html
Announcements load a user's announcements from https://canvas.instructure.com/doc/api/announcements.html
All colors are linked to the color of the course.
Checklist
512x512