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

Add expected img property to widget instance objects used by the LTI widget picker. #1496

Conversation

FrenjaminBanklin
Copy link
Contributor

@FrenjaminBanklin FrenjaminBanklin commented Sep 25, 2023

Removes iconUrl use from widget picker, using it instead in the useInstanceList hook to add the img property to all widget instance objects for continued compatibility with any LTIs expecting that property such as Obojobo.

Fixes the assignment of the outcome_ext key in the LTI launch variable parsing code where it was erroneously defaulting to null instead of an empty string in the event that ext_outcome_data_values_accepted is not provided by incoming LTI params.

…eInstanceList hook to add 'img' property to all widget instance objects for backwards compatibility with any LTIs i.e. Obojobo.
… of the 'outcome_ext' key to null instead of an empty string in the case of the associated LTI parameter not being provided.
…hub.com:FrenjaminBanklin/Materia into issue/widget-picker-img-backwards-compatibility
Copy link
Member

@clpetersonucf clpetersonucf left a comment

Choose a reason for hiding this comment

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

One small recommendation, otherwise it looks good and does the job.

src/components/hooks/useInstanceList.jsx Outdated Show resolved Hide resolved
…er than the 60. Removed unnecessary iconUurl utility usage in My Widgets instance component. Added CSS style to improve the look of the widget icon in the LTI widget picker.
Copy link
Member

@clpetersonucf clpetersonucf left a comment

Choose a reason for hiding this comment

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

Nice. LGTM

@clpetersonucf clpetersonucf merged commit 90d1ce9 into ucfopen:issue/support-dashboard-in-react Sep 28, 2023
2 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.

2 participants