-
Notifications
You must be signed in to change notification settings - Fork 4
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
Unified base mode colors and helper function #1
Conversation
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.
Great job setting this up. Glad you were able to use the compile script and use npm link to test the compiled JS in the context of e-mission-phone
You should try to test the source Python code as well
Thanks for the feedback @JGreenlee! I took some time to incorporate your requests and actually properly test the python implementation, in which I found a few more bugs that I also addressed in this latest push. Also, I did have to change Testing Done
|
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.
Great! Now can you create a corresponding PR on e-mission-phone? Search for places where getBaseModeByKey
was imported from diaryHelper
. Replace those by importing base_mode_colors
from e-mission-common
and calling base_mode_colors.get_base_mode_by_key
.
Then you can remove getBaseModeByKey
.
Sounds good, just released a PR with those changes! |
Moved
modeColors
,BaseModes
, andgetBaseModeByKey
fromdiaryHelper.ts
toe-mission-common
for centralized use betweene-mission
platforms.Testing Done
e-mission-common
as a dependency ine-mission-phone
e-mission-common
version as shown below.