-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Refactor status bars #485
base: dev
Are you sure you want to change the base?
Refactor status bars #485
Conversation
This is awesome. Thanks! I am reading through the changes some and will want to test it a bit, naturally. Saw two things at a quick glance:
|
@PEZ Ok no problem, I overlooked the file naming and will fix that, and I agree on the class names, will fix those as well. I added a link to the followup PR so be sure to check that out as well. |
// TODO: This should be somewhere else | ||
const configReader = new ConfigReader(); | ||
export default configReader; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that you are improving the config reading. This is just a note to us all to be alert to how this work can be continued. There are a few other config watchers, I think. And also we are reading up most config in the state
module, where I do not think it really belongs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and maybe it would be a good idea to consume the config reader from state
to keep aligned with the single source of truth. Config reader could emit change events to be picked up by state. Or if using redux, dispatch config change actions. Tomato/Tomato.
What has Changed?
ConfigReader
for managing color configThis PR is only a refactor and is to be followed by the next PR. Please review here.. This PR replaces #480 with a different implementation approach.
While working on adding evaluation status to the app state, I saw a benefit from refactoring the status bars to make things more manageable. I ran into a dependency resolution issue where
paredit/statusbar.ts
was depending on thecolors
var from/statusbar.ts
, so I also took this opportunity to put down groundwork for aConfigReader
with a purpose of creating one place to manage reading the workspace config.I think there is room for improvement on the
ConfigReader
, as it only provides color config right now. I feel it should also be initialized and managed somewhere else in the application, but at least with the way it is right now, it has no other dependencies so should be able to safely reference it anywhere else in the application.Fixes #
My Calva PR Checklist
I have:
dev
branch. (Or have specific reasons to target some other branch.)master
. (Sorry for the nagging.)ci/circleci: build
test. (For now you'll need to opt in to the CircleCI New Experience UI to see the Artifacts tab, because bug.)The Calva Team PR Checklist:
Before merging we (at least one of us) have:
dev
branch (unless reasons).Ping @PEZ, @kstehn, @cfehse