-
Notifications
You must be signed in to change notification settings - Fork 5
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
V1.5.0 dev #300
V1.5.0 dev #300
Conversation
Update LICENSE.md
src/explorer/initFileLoad.js
Outdated
|
||
var files = explorer.dataFileLoad.loader.node().files; | ||
//clear the file input | ||
loadStatus.text('Loaded.').style('color', 'green'); |
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.
should update this to say Loaded . instead of replacing the Choose a File text. Captured in #303 .
src/explorer/makeCodebook.js
Outdated
@@ -41,7 +41,9 @@ export function makeCodebook(explorer) { | |||
|
|||
explorer.codebook.on('complete', function() { | |||
explorer.fileListing.init(explorer); | |||
initFileLoad.call(explorer); | |||
if (explorer.config.fileLoader) { |
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.
that's pretty darn to-the-point
src/explorer/fileListing/onDraw.js
Outdated
f[explorer.config.labelColumn] === | ||
explorer.current[explorer.config.labelColumn] | ||
) | ||
.filter(f => f.fileID === explorer.current.fileID) |
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.
could also do .classed('selected', f => f.fileID === explorer.current.fileID)
because i like to nitpick
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.
yeah, that would be cleaner. I'll commit the update.
src/explorer/setDefaults.js
Outdated
f.settings = f.settings || {}; | ||
f.fileID = i; |
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.
0-indexed file IDs!?
makeCodebook() {} | ||
}; | ||
|
||
explorer.on = function(event, callback) { |
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. love. callbacks.
@@ -1,6 +1,7 @@ | |||
const defaultSettings = { | |||
ignoredColumns: [], | |||
meta: [], | |||
defaultCodebookSettings: {}, |
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.
effectively a single codebook settings object that applies to all codebooks? rather than individual settings?
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.
Nailed it. 🔨
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.
Looks good to me! Just one suggestion for the file loader, captured in #303 .
@emmorris @danedexF5 I think we can probably skip (or do a very minimal) regression testing for this release since it only applies to the |
This release focuses exclusively on updates to the
explorer
object. Biggest feature update is a new file loader accessed withexplorer.config.fileLoader = true
. Lots of other smallish technical updates including callbacks and easier ways to customize all codebooks created within an explorer.