Closed
Bug 912892
Opened 11 years ago
Closed 11 years ago
[app manager] simulator launch UI
Categories
(DevTools Graveyard :: WebIDE, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 26
People
(Reporter: paul, Assigned: paul)
References
Details
Attachments
(2 files)
(deleted),
patch
|
ochameau
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
We need a simulator store. We also need the UI that would install the simulator if not present.
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #802191 -
Flags: review?(poirot.alex)
Comment 2•11 years ago
|
||
Comment on attachment 802191 [details] [diff] [review]
patch v1
Review of attachment 802191 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good and works great!
::: browser/app/profile/firefox.js
@@ +1067,5 @@
> pref("devtools.commands.dir", "");
>
> // Disable the app manager
> pref("devtools.appmanager.enabled", false);
> +pref("devtools.appmanager.simulatorInstallPage", "https://addons.mozilla.org/firefox/addon/firefox-os-simulator/");
I'm pretty confident we are going to create a new addon on AMO distinct from the existing one, but let's change this pref whenever we publish this new addon on AMO.
::: browser/devtools/app-manager/content/connection-footer.js
@@ +138,5 @@
> + this.connection.keepConnecting = false;
> + });
> + this.connection.keepConnecting = true;
> + this.connection.connect();
> + });
trailing space
::: browser/devtools/app-manager/content/connection-footer.xhtml
@@ +114,5 @@
> + <template id="simulator-item-template">
> + <span>
> + <button class="simulator-item" onclick="UI.startSimulator(this.dataset.version)" template='{"type":"attribute","path":"version","name":"data-version"}'>
> + <span template='{"type":"textContent", "path":"version"}'></span>
> + </button>
It feels weird to click on this button and nothing happen. The simulator is launched, but everything stay as-is in the connection footer. I'm wondering if we should dismiss the simulator list and display the regular connection footer with the disconnect button, or change the button state of the selected simulator.
In any case, we can improve this in a followup.
::: browser/locales/en-US/chrome/browser/devtools/app-manager.dtd
@@ +33,5 @@
> <!ENTITY connection.cancel "Cancel">
> <!ENTITY connection.or "or">
> +<!ENTITY connection.noSimulatorInstalled "No simulator installed.">
> +<!ENTITY connection.installFirstSimulator "Install simulator.">
> +<!ENTITY connection.installAnotherSimulator "Add">
What about using Install instead of Add?
Attachment #802191 -
Flags: review?(poirot.alex) → review+
Comment 3•11 years ago
|
||
I pushed a new version of my branch against the simulator:
https://github.com/mozilla/r2d2b2g/pull/756
This allows to build simulator addons that works with the app manager!
Assignee | ||
Comment 4•11 years ago
|
||
(In reply to Alexandre Poirot (:ochameau) from comment #2)
> ::: browser/devtools/app-manager/content/connection-footer.xhtml
> @@ +114,5 @@
> > + <template id="simulator-item-template">
> > + <span>
> > + <button class="simulator-item" onclick="UI.startSimulator(this.dataset.version)" template='{"type":"attribute","path":"version","name":"data-version"}'>
> > + <span template='{"type":"textContent", "path":"version"}'></span>
> > + </button>
>
> It feels weird to click on this button and nothing happen. The simulator is
> launched, but everything stay as-is in the connection footer. I'm wondering
> if we should dismiss the simulator list and display the regular connection
> footer with the disconnect button, or change the button state of the
> selected simulator.
Oh yeah, I forgot that. I'll just dismiss the simulator list.
This might look weird during the launch -> connection period, but I'll address that later.
> > +<!ENTITY connection.installAnotherSimulator "Add">
>
> What about using Install instead of Add?
I want a short button, and to be clear that it's not needed to install something else.
Assignee | ||
Comment 5•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Whiteboard: [land-in-fx-team]
Assignee | ||
Comment 6•11 years ago
|
||
Whiteboard: [land-in-fx-team]
Comment 7•11 years ago
|
||
Assignee: nobody → paul
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 26
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•