This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 235711 - New browser picker implementation doesn't match spec for labels
Summary: New browser picker implementation doesn't match spec for labels
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords: 7.4_HR_FIX
Depends on:
Blocks:
 
Reported: 2013-09-09 16:05 UTC by lxlyons
Modified: 2013-09-17 13:22 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
example labels for browser picker (46.47 KB, image/png)
2013-09-09 16:07 UTC, lxlyons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lxlyons 2013-09-09 16:05:46 UTC
The current implementation of the browser picker doesn't match the spec in terms of proposed labels.  This is important because, as currently implemented, it isn't clear that everything in the "with nb integration" band actually has nb integration.

Here's the email I sent to Petr about this:


> Guys:
>
> The new browser picker still doesn't use the labels called for in the spec (attached).  I'm fairly certain I've mentioned this in bugs related to this before, but it's tricky with multiple owners for different parts of the feature.  We also need to show a more complete label in the tooltip than what we show here.  Finally, the Run menu options should probably share the same descriptive label as the toolbar.
>
> Do we want to fix this?  As it stands now, we don't match the design and I'm not sure we're giving good feedback to the user.  For example, in the browser picker, the fact that we have one item "with NetBeans Integration" suggests the others don't have it.
>
> Please let me know if you want me to log a new bug consolidating this info for one owner.
>
> Thanks!
> Liza
Comment 1 lxlyons 2013-09-09 16:07:52 UTC
Created attachment 139846 [details]
example labels for browser picker
Comment 2 Tomas Mysik 2013-09-10 10:13:00 UTC
Aha, it seems that this issue wasn't reassigned to me accidentally ;)

Do I understaned it correctly that "with NetBeans integration" should be removed? Or anything more?

Thanks.
Comment 3 Tomas Mysik 2013-09-10 11:57:33 UTC
Davide, I don't know these modules well but I can see 2 possiblities here:

(a) add a new method, e.g. getSimpleDsiplayName(); or
(b) work around it in the popup only (by ugly replacing part of the string).

I prefer the (a) option, of course. Moreover, a new method for a tooltip will be needed (getShortDescription()?).

Let me know what you think about it and feel free to reassign back to me, I will do it.

Thanks.
Comment 4 Tomas Mysik 2013-09-10 13:44:42 UTC
Just one note - HTML5 project type uses ordinary combo for browser selection and not the picker - so we still must be able to somehow say which browser has NetBeans integration and which does not.
Comment 5 David Konecny 2013-09-10 19:47:57 UTC
Could we drop "with NetBeans integration" from browser name completely? And in cases where browser names would be ambiguous could we customize browser name? There is .hasNetBeansIntegration() method I think somewhere which should help.
Comment 6 Tomas Mysik 2013-09-12 05:00:42 UTC
I will do that.
Comment 7 Tomas Mysik 2013-09-12 06:49:22 UTC
Should be fixed now, proper browser name should be present:
- in the picker,
- in the tooltip of the toolbar icon,
- in the "ordinary" combo in the Project Properties dialog.

Please, could anyone verify it for mobile browsers on all platforms as well? I was not sure about PHONEGAP browser family ID... Honzo?

BTW not sure whether this is a candidate for NB 7.4.

Thanks.

http://hg.netbeans.org/web-main/rev/7ab89003586f
Comment 8 David Konecny 2013-09-12 21:41:27 UTC
I think it make sense to push it to 7.4 because it is so prominenly visible. My two cents.
Comment 9 Tomas Mysik 2013-09-13 04:50:56 UTC
Petře, what do you think?
Also, Honzo, is this change OK for you (I mean PHONEGAP as I wrote)?

Thanks.
Comment 10 Petr Jiricka 2013-09-13 06:52:47 UTC
Sorry, I forgot to respond yesterday. In principle I agree, let's put it in 7.4. But in the current state there are still some inconsistencies:

- Some of the items in the "With NetBeans Connector" section of the picker contain the "with NetBeans Integration" distinction in the tooltip + combo in project properties, while others don't. Should the items from the "Mobile Device Browser" section also include "with NetBeans Integration" in the tooltip, to make this consistent with the Cordova section?

- I am still torn about the term Connector vs. Integration. The section in the picker is labeled as "With NetBeans Connector", but in other places we use Integration. And only for Chrome, we actually have a real artifact called "NetBeans Connector"; for the other browsers, it is an abstract term. Maybe we should just ignore this distinction and change it to Connector everywhere - I must say Connector sounds better to me than Integration. This could have impact on UI/docs though - cc'ing Ken.
Comment 11 Tomas Mysik 2013-09-13 07:20:48 UTC
OK, I will improve the change:
- "Connector" everywhere in the code;
- "with NetBeans Connector" for mobile browsers as well (but NOT for embedded browser).

Thanks.
Comment 12 Tomas Mysik 2013-09-13 07:38:07 UTC
Done. Láďo, please verify, I will transplant it to NB 7.4.

Thanks.

http://hg.netbeans.org/web-main/rev/1e4c6d232881
Comment 13 Tomas Mysik 2013-09-13 07:40:33 UTC
BTW

(In reply to Tomas Mysik from comment #11)
> - "Connector" everywhere in the code;

I used grep to replace it really everywhere.
Comment 14 Vladimir Riha 2013-09-13 10:56:27 UTC
Verified in web-main, browser picker and project properties show Connector

Product Version: NetBeans IDE Dev (Build web-main-11600-on-20130913)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 15 Petr Jiricka 2013-09-13 11:42:38 UTC
I reviewed the changes and they look good.
Comment 16 Tomas Mysik 2013-09-13 17:50:22 UTC
Transplanted to releases repo, branch release74. The original fix increases spec version but I did not change it in the release74 since it is already properly set (to x.y.1). I have build full IDE without any problem, if anyone sees any problem with it, please, fix it.

Thanks.

http://hg.netbeans.org/releases/rev/17ee398d1db1
http://hg.netbeans.org/releases/rev/964df53bce25
Comment 17 Quality Engineering 2013-09-14 05:14:24 UTC
Integrated into 'main-silver', will be available in build *201309140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1e4c6d232881
User: Tomas Mysik <tmysik@netbeans.org>
Log: #235711 cont'd - New browser picker implementation doesn't match spec for labels

Replacing "integration" with "Connector" everywhere.
Comment 18 Vladimir Riha 2013-09-17 13:22:58 UTC
Verified in RC1

Product Version: NetBeans IDE 7.4 RC1 (Build 201309152201)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b49
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b107
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)