-
Notifications
You must be signed in to change notification settings - Fork 301
Conversation
Wow, this change looks awesome! Thanks a lot for including the screenshot. The UI looks really great and since it was inspired by Atom it has that modern UX feel. This seems like it would be a convenient place for hosting the compile errors & warnings as well, at some point. The redux state changes look solid to me. I added a few comments inline, and then just had these questions:
Another thing I'm thinking about in the longer-term is how to keep Oni keyboard-friendly with these new components. Something like the vimium behavior might be really helpful - I created #366 to discuss this. Not something we need to tackle now but longer-term it'd be useful, especially as we add more of these rich UI experiences to Oni. Excellent work, this looks great! |
browser/src/NeovimInstance.ts
Outdated
@@ -97,7 +97,7 @@ export class NeovimInstance extends EventEmitter implements INeovimInstance { | |||
|
|||
this._initPromise = startNeovim(this._pluginManager.getAllRuntimePaths(), filesToOpen) | |||
.then((nv) => { | |||
console.log("NevoimInstance: Neovim started") // tslint:disable-line no-console | |||
this.emit("logInfo", "NevoimInstance: Neovim started") |
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.
Would you mind fixing my typo while you're here? 😄 I used NevoimInstance
instead of NeovimInstance
@@ -326,7 +326,7 @@ export class NeovimInstance extends EventEmitter implements INeovimInstance { | |||
this._initPromise.then(() => { | |||
this._neovim.uiTryResize(columns, rows, (err?: Error) => { | |||
if (err) { | |||
console.error(err) | |||
this.emit("logError", err) |
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.
Thanks for hooking these up to the new logging infrastructure
|
||
@component-padding: 10px; | ||
@border-color: rgb(25, 25, 25); | ||
// @font-family-monospace: |
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 like there are a few unused lines here
@import (reference) "./common.less"; | ||
|
||
@icon-size: 30px; | ||
@font-family-monospace: Consolas, "Liberation Mono", Menlo, Courier, monospace; |
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.
This might be a good candidate to have in common.less
- same for a few other constants.
} | ||
} | ||
} | ||
function mapStateToProps(s: State.IState): Partial<INotificationsProps> { |
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.
Nice use of Partial
here! I need to remember to leverage that..
I renamed it all to Log/Logs, it fits better indeed. I cleaned up some of the CSS + corrected display of long stack traces. I don't have a windows PC at my disposal right now, so I didn't do the scrollbars yet. |
Awesome, thanks @FrigoEU ! This looks excellent. Appreciate you taking the time to do the rename... we need to get the We can track the scrollbar issue separately, I'm happy to take a look at that since my main dev machine is Windows. The only thing left is that we should remove the placeholder logs, could you please take those out? Otherwise I'm set to merge this in! |
Oki, I removed the examples. Yes, it would be nice to track the scrollbars in a different issue. Thanks for any help you can give, otherwise I'll find some windows machine to run Oni on later. |
Awesome, thanks for addressing those! I'll open an issue for the windows scrollbar. I'm merging in now - thanks for the contribution, @FrigoEU ! |
FYI - logged #370 to track the windows styling issues. |
Hey,
This is a pretty big PR that corresponds to #98 most closely, in the future maybe to #39 and the design is stolen for the most part from atom/notifications#29. I started from the atom css and markup but ending up rendering it in a normal table.
I split up the commits in 3:
This is not really finished yet, but far enough along to show I think. Here's some screenshots, mixing the example data and some actual notifications:
Use the new command "Show Notifications" to see it pop open. Note that the first few notifications are examples.
What still needs to happen:
Some other remarks on the code: