-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Extension Info Column Tweak #5153
Conversation
|
This looks a lot nicer. Looking at it now, though, I wonder if it would make more sense to group the version number with the date, since those are logically related. So how about: Extension Title (I thought it might be nice to add the label "Version", and there's probably room anyway, but don't feel strongly either way.) |
src/extensibility/registry_utils.js
Outdated
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.
There's redundant code between these two cases, and also we should account for the possibility that there's no userId (although that probably won't happen, the existing code did show something in that case). So I think you could collapse the whole thing into something like:
if (this.metadata && this.metadata.author) {
result = htmlEscape(this.metadata.author.name || this.metadata.author);
} else if (userId) {
result = htmlEscape(userId);
}
if (ownerLink) {
result = "<a href='" + htmlEscape(ownerLink) + "' title='" + htmlEscape(ownerLink) + "'>" + result + "</a>";
}
|
Yup, I like this layout. Just one code review comment. |
|
Also, this breaks one of the unit tests due to the format change (ExtensionManager-test, "should populate itself with registry entries and display their fields when created"). I'll push up a fix for that after you've made your fix. |
…ext-manager-column
…ackets into larz/ext-manager-column
|
@njx fixed. |
|
Fixed unit test. Merging. |
See #5147