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

Get rid of some prop type console warnings #4072

Merged
merged 3 commits into from
Jan 8, 2025
Merged

Get rid of some prop type console warnings #4072

merged 3 commits into from
Jan 8, 2025

Conversation

marlo-longley
Copy link
Member

@marlo-longley marlo-longley commented Jan 6, 2025

No description provided.

@marlo-longley marlo-longley changed the title Change required type for panels to Object Get rid of some prop type console warnings Jan 6, 2025
@marlo-longley marlo-longley force-pushed the prop-warnings branch 2 times, most recently from cc4174b to 228b23d Compare January 7, 2025 16:28
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.52%. Comparing base (cd7f3bc) to head (1b4c943).
Report is 13 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4072   +/-   ##
=======================================
  Coverage   94.52%   94.52%           
=======================================
  Files         313      313           
  Lines       14766    14769    +3     
  Branches     2496     2492    -4     
=======================================
+ Hits        13957    13960    +3     
  Misses        804      804           
  Partials        5        5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marlo-longley marlo-longley marked this pull request as ready for review January 7, 2025 17:46
Comment on lines +19 to +21

if (!accessTokenServiceId || !authServiceId) return null;

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if (!accessTokenServiceId || !authServiceId) return null;

authServiceId is covered later:
https://github.com/ProjectMirador/mirador/pull/4072/files#diff-dfe0ec8d6ff147fa74246b2b5bddddb923d72f4572ba8da097a5b4f991168fd9R101

I can't tell if accessTokenServiceId is critical to rendering the UI (it looks like maybe it's just used in the callbacks?)

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, re: authServiceId since it is referenced on line 24 I will keep this and remove the later check?

@cbeer cbeer merged commit 3930da8 into main Jan 8, 2025
9 checks passed
@cbeer cbeer deleted the prop-warnings branch January 8, 2025 23:21
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