Skip to content

WV-4029: Convert App component from class to functional#6562

Merged
vicgonzalez25 merged 2 commits intodevelopfrom
wv-4029-modernize-app-component
Apr 10, 2026
Merged

WV-4029: Convert App component from class to functional#6562
vicgonzalez25 merged 2 commits intodevelopfrom
wv-4029-modernize-app-component

Conversation

@vicgonzalez25
Copy link
Copy Markdown
Contributor

@vicgonzalez25 vicgonzalez25 commented Apr 8, 2026

Summary

Converts the top-level App component in web/js/app.js from a class to a functional component with hooks.

What changed

  • onload() startup logic → one-time useEffect (still wrapped in util.wrap)
  • componentDidMount / componentWillUnmount → single useEffect for the keydown, resize, and orientationchange listeners with cleanup
  • componentDidUpdate watcher on numberOutagesUnseenuseEffect + usePrevious from customHooks.js
  • static setVhCSSProperty → module-level const
  • Removed what-input library — replaced [data-whatintent] selectors in reset.scss and toolbar.scss with native CSS :focus-visible

Comment thread web/js/app.js Outdated
@vicgonzalez25 vicgonzalez25 merged commit 6204861 into develop Apr 10, 2026
4 checks passed
christof-wittreich added a commit that referenced this pull request Apr 10, 2026
* Dependency Updates 04-03-26 (#6559)

* Added tasks/bamboo/runUnitTest.sh

* Updated comments to be accurate

* Added empty placeholder unit test files

* PlayQueue functional component (#6565)

* WV-4029: Convert App component from class to functional (#6562)

* WV-4029: Convert App component from class to functional

* Replace what-input library with native CSS :focus-visible

* Dependency Updates 04-10-26 (#6577)

* v4.94.0

---------

Co-authored-by: Jason Hurley <95651563+jwhurley1@users.noreply.github.com>
Co-authored-by: Jason Hurley <jwhurley1@gmail.com>
Co-authored-by: vicgonzalez25 <victor.a.gonzalez-leon@nasa.gov>
@minniewong minniewong added this to the v4.94.0 milestone Apr 13, 2026
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.

5 participants