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

Split up sidebar.json roughly by widget_var #54125

Merged
merged 1 commit into from
Jan 8, 2022

Conversation

wapcaplet
Copy link
Contributor

@wapcaplet wapcaplet commented Jan 7, 2022

Summary

None

Purpose of change

To facilitate future expansion in widget styles for each widget_var, and to take better advantage of this whole data/json/ui directory dedicated to widgets.

Describe the solution

Break up the main data/json/ui/sidebar.json file into pieces:

  • activity.json, body_temp.json, date.json, encumbrance.json, etc. - not exactly one per widget_var, but close enough
  • layout.json: Various layouts combining other widgets
  • sidebar.json: Main sidebar definition(s) only

Describe alternatives you've considered

I realize that large reorganizations like this are generally unwelcome due to the churn they generate, but I wish I had set a better precedent in the layout of this directory in the first place. I figured better to churn now, while it's still early in its maturity.

Testing

Additional context

To facilitate future expansion in widget styles for each widget_var,
break up the main sidebar.json file into pieces:

- activity.json, body_temp.json, date.json, encumbrance.json, etc.
- layout.json: Various layouts combining other widgets
- sidebar.json: Main sidebar definition(s) only
@wapcaplet wapcaplet added the [JSON] Changes (can be) made in JSON label Jan 7, 2022
@wapcaplet wapcaplet added the Info / User Interface Game - player communication, menus, etc. label Jan 7, 2022
@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Jan 7, 2022
@wapcaplet wapcaplet marked this pull request as ready for review January 8, 2022 01:35
@kevingranade kevingranade merged commit 1849155 into CleverRaven:master Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions Info / User Interface Game - player communication, menus, etc. [JSON] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants