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

Fix some minor js issues #2184

Draft
wants to merge 17 commits into
base: update-bootstrap-ui-library
Choose a base branch
from

Commits on Oct 14, 2024

  1. Fix proptype of NumeralInput.value

    The value is internally converted to a numeral anyway, so we can be lenient in accepting data.
    Additionally, the component was called with a no longer existing property, which I removed as well.
    jhmegorei committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    84dd803 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    82b916b View commit details
    Browse the repository at this point in the history
  3. Make fetchDOIMetadata and fetchISBNMetadata return a proper Literatur…

    …e object, not a JS Object
    
    This caused Proptype Errors in AddButton and Citation
    jhmegorei committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    0014cef View commit details
    Browse the repository at this point in the history
  4. Move ToggleButton to tab body and replace it by proper bootstrap comp…

    …onent
    
    The original issue was just that the ToggleButton was situated in the Tab Button, which throws an error, because you are not allowed
    to nest a <button> within a <button>.
    
    Then it occurred to me, that this was the only instance where this button is used and that it's usage (namely toggling reaction scheme between default and gaseous)
    was not very clear until you hover over the button and read the tooltip.
    
    Therefore I replaced it by a regular bootstrap buttongroup we also use in other places. This way, the toggling functionality becomes clear directly,
    as both buttons are displayed at the same time. So no more hover necessary. Additionally, the buttons use a global utility component for easier styling
    of toggle buttons throughout the app.
    jhmegorei committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    d11eab6 View commit details
    Browse the repository at this point in the history
  5. Make disabled property of PrivateNoteElement optional

    The render function sets a default, so the prop is definitely not required
    jhmegorei committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a29be55 View commit details
    Browse the repository at this point in the history
  6. Make WellplateDetailsAttachments use instances of Wellplate and Attac…

    …hment for PropType checking
    jhmegorei committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    bd3ec01 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    08efa4d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7bd272a View commit details
    Browse the repository at this point in the history
  9. Allow element.id to be either number or string as it is only used in …

    …string-like contexts anyway
    jhmegorei committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    19853cc View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f2c1fd8 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f83610a View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    2c6e519 View commit details
    Browse the repository at this point in the history
  13. Fix ImageModal properties

    jhmegorei committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    0866fd8 View commit details
    Browse the repository at this point in the history
  14. Fix issue from code review

    jhmegorei committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    672ef12 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f055573 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    0390b86 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    b39ed11 View commit details
    Browse the repository at this point in the history