Closed
Bug 1294800
Opened 10 years ago
Closed 8 years ago
Add driver function for arbitrarily defined UI bars
Categories
(Firefox :: Normandy Client, defect, P3)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mythmon, Unassigned)
References
(Blocks 1 open bug)
Details
To provide flexibility in actions, the addon should provide a function in the driver that shows a bar in the browser, like the current heartbeat bar, with arbitrary contents.
The addon should provide set of widgets (labels, buttons, links, stars, spacers), and allow actions to place these widgets in the bar, instead of something like arbitrary DOM manipulation.
The API for this could look something like this:
normandyDriver.showBar({
icon: 'https://example.com/icon.png',
id: 'feature-x',
items: [
{ type: 'label', text: 'Have you used new feature X?' },
{ type: 'button', text: 'Yes', next: { type: 'url', href: 'http://example.com/feature-x-survey.html' },
{ type: 'button', text: 'No', next: { type: 'thanks' } },
{ type: 'spacer' },
{ type: 'link', text: 'What is x?', href: 'http://example.com/feature-x-learn-more.html' },
],
});
Comment 1•10 years ago
|
||
Taking this as it's needed for prompting a user to consider participating in a SHIELD study
Assignee: nobody → bstoroz
Status: NEW → ASSIGNED
Updated•10 years ago
|
Assignee: bstoroz → nobody
Status: ASSIGNED → NEW
Updated•8 years ago
|
Product: Shield → Firefox
| Reporter | ||
Comment 2•8 years ago
|
||
The driver is going away. The idea here is still useful, but it is going to look different.
| Reporter | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•