-
Notifications
You must be signed in to change notification settings - Fork 178
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(app-shell-odd): overhaul odd system update #16486
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
657cce0
refactor(app-shell-odd): move brightness
sfoster1 243deec
refactor(app-shell-odd): move update files
sfoster1 b4e9e6b
refactor(app-shell-odd): remove duplicate handler
sfoster1 f79d659
refactor(app-shell-odd): move update constants
sfoster1 9b538dc
refactor(app-shell-odd): remove little used file
sfoster1 763bf3f
refactor(app-shell-odd): add aborts to http
sfoster1 f640172
refactor(app-shell-odd): split updates into pieces
sfoster1 6d1dcf8
refactor: updates should include release note content
sfoster1 6c274a9
refactor(app-shell-odd): integrate providers
sfoster1 b0b3caf
lints
sfoster1 9d4ac41
test fixes for usb
sfoster1 6460aa7
obviously not
sfoster1 2e66605
How Embarassing
sfoster1 e4d50b4
fix: need shell so these are echoed
sfoster1 71ebd3c
fix: this name changed
sfoster1 5894dae
refactor: actually save stuff to disk
sfoster1 4737f7f
"ha ha"
sfoster1 029e4bf
refactor: fix log typing
sfoster1 7c4fba8
add some extra debug logs
sfoster1 ed3664f
refactor: set userdata earlier
sfoster1 5c029f7
refactor: some nicer logging
sfoster1 93898da
log typing fixups
sfoster1 d209c91
fix: fix up usb sensing named volumes
sfoster1 f211917
fix: fix up some usb logs
sfoster1 b84ef85
fix: fixup scan-usb
sfoster1 6b6b3ff
some extra logging
sfoster1 12cd94f
refactor: reflect redux messages to handlers
sfoster1 e93f6b4
fix: some usb enumeration bugs
sfoster1 1f2c373
some typing stuff
sfoster1 7d764f8
need some mocking
sfoster1 4e7b195
format and lint
sfoster1 f6d09b9
this type needs to be in app-shell too
sfoster1 213589e
absolutely not
sfoster1 c614113
fix: next-tickify dispatches
sfoster1 7617dca
Merge branch 'edge' into rqa-3060-overhaul-odd-system-update
sfoster1 99783da
the quick review feedback
sfoster1 7d055a8
comments
sfoster1 9507a74
dont need this anymore
sfoster1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// things intended to execute early in app-shell initialization | ||
// do as little as possible in this file and do none of it at import time | ||
|
||
import { app } from 'electron' | ||
import { ODD_DATA_DIR } from './constants' | ||
|
||
let path: string | ||
|
||
export const setUserDataPath = (): string => { | ||
if (path == null) { | ||
console.log( | ||
`node env is ${process.env.NODE_ENV}, path is ${app.getPath('userData')}` | ||
) | ||
if (process.env.NODE_ENV === 'production') { | ||
console.log(`setting app path to ${ODD_DATA_DIR}`) | ||
app.setPath('userData', ODD_DATA_DIR) | ||
} | ||
path = app.getPath('userData') | ||
console.log(`app path becomes ${app.getPath('userData')}`) | ||
} | ||
return app.getPath('userData') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
do we care to split out
get
andset
functions?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 guess I could call this
getEnsuredUserDataPath
or something?