Skip to content

Conversation

@pmitros
Copy link
Collaborator

@pmitros pmitros commented Mar 1, 2023

@bradley-erickson I added documentation to the code as I was stepping through it. Would you mind reviewing? I'm not sure what format you prefer for documentation here.

@pmitros pmitros requested a review from bradley-erickson March 1, 2023 03:49
Copy link
Collaborator

@bradley-erickson bradley-erickson left a comment

Choose a reason for hiding this comment

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

All the comments look good and clearly explain the gist of what's going on for each component. I think we just need to address which format we want to use for documenting things. See specifics in code comments.

*
* A React component that renders a set of indicator bars, each showing a label, a value, and a help text.
* The component expects the following props:
* - id (string): the HTML id of the top-level element.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Which format should we use for documentation? This or the @params used elsewhere.

* - `label` (optional): A label to be used in combination with the highlight ID for customizing styling.
* @param {string} [class_name] - Additional class name(s) to apply to the rendered component
* @param {string} [id] - ID to apply to the rendered component
*/
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing returns statement

import Button from 'react-bootstrap/Button';
import ButtonGroup from 'react-bootstrap/ButtonGroup';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
Copy link
Collaborator

Choose a reason for hiding this comment

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

This component is currently not being used. Changed to using the individual items instead for more modularization. I'd recommend just removing this file (that can wait until we do the migration of the code though)

* LOConnection is a simple interface to the Learning Observer (LO)
* WebSocket API.
*
* LOConnection is designed to act as a bridge, enabling users to
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should the param and return info be included in this comment instead of a subsequent one? Also in whichever format we follow (see other comments)

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.

3 participants