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

Breaking: Convert to JSX (fixes #146) #194

Merged
merged 34 commits into from
Jun 7, 2024
Merged

Breaking: Convert to JSX (fixes #146) #194

merged 34 commits into from
Jun 7, 2024

Conversation

kirsty-hames
Copy link
Contributor

@kirsty-hames kirsty-hames commented May 21, 2024

Fixes #146

Update

  • Converts .hbs template to .jsx
  • View template filenames updated to .jsx
  • BoxMenuModel created
  • BoxMenuView background layers have been moved into the boxMenu template.

- replace .hbs templates with .jsx
- change view template filenames
- create Boxmenu model
- condense view background style functions that are dependant on background image
templates/boxMenuItem.jsx Outdated Show resolved Hide resolved
templates/boxMenuItem.jsx Outdated Show resolved Hide resolved
js/BoxMenuView.js Outdated Show resolved Hide resolved
Copy link
Member

@oliverfoster oliverfoster left a comment

Choose a reason for hiding this comment

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

👀 This is a breaking change as anyone with template overrides will find their menu not working.

Copy link
Contributor

@guywillis guywillis left a comment

Choose a reason for hiding this comment

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

Lovely upgrade, thank you @kirsty-hames.

Some real nit picky comments from the review mostly. Biggest thing is the _boxmenu to _boxMenu change in the js and jsx files.

A separate thought:

  • Should the menu image have styles attached to it to be consistent with elements around it i.e. margin-bottom - perhaps that's more of a theme related comment but thought I'd raise it

js/BoxMenuView.js Outdated Show resolved Hide resolved
js/BoxMenuView.js Outdated Show resolved Hide resolved
templates/boxMenu.jsx Outdated Show resolved Hide resolved
templates/boxMenu.jsx Outdated Show resolved Hide resolved
templates/boxMenu.jsx Outdated Show resolved Hide resolved
templates/boxMenuItem.jsx Outdated Show resolved Hide resolved
templates/boxMenuItem.jsx Outdated Show resolved Hide resolved
templates/boxMenuItem.jsx Outdated Show resolved Hide resolved
templates/boxMenuItem.jsx Outdated Show resolved Hide resolved
templates/boxMenuItem.jsx Outdated Show resolved Hide resolved
@kirsty-hames kirsty-hames changed the title Update: Convert to JSX (fixes #146) Breaking: Convert to JSX (fixes #146) May 28, 2024
kirsty-hames and others added 11 commits May 28, 2024 10:27
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
kirsty-hames and others added 10 commits May 28, 2024 10:33
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
Co-authored-by: Guy Willis <guywillis@users.noreply.github.com>
@kirsty-hames
Copy link
Contributor Author

Thanks for the thorough review @guywillis. I've implemented your feedback and amended the PR label to 'Breaking' as per @oliverfoster's comment.

Copy link
Contributor

@guywillis guywillis left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

Choose a reason for hiding this comment

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

👀

@joe-allen-89 joe-allen-89 merged commit 7a1c911 into master Jun 7, 2024
@joe-allen-89 joe-allen-89 deleted the issue/146 branch June 7, 2024 08:53
github-actions bot pushed a commit that referenced this pull request Jun 7, 2024
# [7.0.0](v6.7.0...v7.0.0) (2024-06-07)

### Breaking

* Convert to JSX (fixes #146) (#194) ([7a1c911](7a1c911)), closes [#146](#146) [#194](#194)
Copy link

github-actions bot commented Jun 7, 2024

🎉 This PR is included in version 7.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSX Conversion
5 participants