Skip to content

all comments added#360

Merged
leandrumartin merged 7 commits into
mainfrom
213-jsdoc-comments
Jun 16, 2026
Merged

all comments added#360
leandrumartin merged 7 commits into
mainfrom
213-jsdoc-comments

Conversation

@Joishee05

Copy link
Copy Markdown
Collaborator

Closes #213

Add JSDoc-compliant comments to files that lack sufficient documentation.

@Joishee05 Joishee05 self-assigned this Apr 24, 2026
@Joishee05 Joishee05 linked an issue Apr 24, 2026 that may be closed by this pull request
3 tasks
@leandrumartin leandrumartin requested a review from Copilot May 2, 2026 17:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds/updates JSDoc-compliant documentation across templates/js to improve developer onboarding and make function/class intent, parameters, and return types clearer (per #213).

Changes:

  • Added/expanded JSDoc blocks for key exported functions and several internal helpers (including @param/@returns).
  • Improved inline documentation for UI modules (sidebar, search, navigation, quiz).
  • Added type documentation for shared data structures (e.g., imageCaptions map).

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
templates/js/viewer.js Adds missing @returns and improves parameter doc for viewer display helpers.
templates/js/sidebar.js Adds JSDoc for async sidebar/help-button initialization functions.
templates/js/search.js Adds JSDoc for search initialization and internal search/navigation helpers.
templates/js/quiz.js Adds class/method JSDoc for quiz manager behavior and return types.
templates/js/navigation.js Documents navigation setup and helper functions with parameter/return types.
templates/js/main.js Adds JSDoc for populateSubboneDropdown (but currently has a malformed/duplicated block).
templates/js/imageDisplay.js Adds JSDoc for image rendering helpers and transform utilities.
templates/js/imageCaptions.js Documents exported caption lookup map type/shape.
templates/js/dropdowns.js Adds JSDoc for image stage helpers, image-loading helper, and dropdown wiring.
templates/js/description.js Adds JSDoc for GitHub-backed description loader.
templates/js/coloredRegionsOverlay.js Adds missing @returns tags for clear helpers.
templates/js/api.js Adds JSDoc for API fetch functions including throws/return details.
templates/js/annotationOverlay.js Adds JSDoc for overlay lifecycle and annotation rendering/loading helpers (one doc mismatch with implementation).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread templates/js/main.js
Comment thread templates/js/annotationOverlay.js Outdated
Comment thread templates/js/coloredRegionsOverlay.js
Comment thread templates/js/description.js Outdated
Comment thread templates/js/dropdowns.js Outdated
Comment thread templates/js/imageDisplay.js Outdated
Comment thread templates/js/imageDisplay.js Outdated
Comment thread templates/js/imageDisplay.js Outdated
Comment thread templates/js/navigation.js Outdated
Comment thread templates/js/navigation.js Outdated
Comment thread templates/js/quiz.js Outdated
Comment thread templates/js/quiz.js Outdated
# Conflicts:
#	templates/js/annotationOverlay.js
#	templates/js/api.js
#	templates/js/dropdowns.js
#	templates/js/imageDisplay.js
#	templates/js/quiz.js
#	templates/js/sidebar.js

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 7 comments.

Comment thread templates/js/annotationOverlay.js
Comment thread templates/js/description.js Outdated
Comment thread templates/js/navigation.js Outdated
Comment thread templates/js/quiz.js
Comment thread templates/js/imageDisplay.js Outdated
Comment thread templates/js/imageDisplay.js
Comment thread templates/js/quiz.js
@leandrumartin leandrumartin merged commit 60f2406 into main Jun 16, 2026
5 checks passed
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.

JSDoc Comments

3 participants