Closed Bug 743002 Opened 13 years ago Closed 13 years ago

Drawer: message title bar status between native app and drawer

Categories

(Pancake Graveyard :: Front-end, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gbrander, Assigned: gbrander)

Details

Attachments

(4 files)

Since the toolbar for the drawer will be kept in the iOS app, we need to be able to: * Send a message to native when switching to **places** pane * Receive messages from native when it wants to switch to **stacks** pane
We are now sending an event when switching to places view of drawer https://bitbucket.org/mozillapancake/pancake/changeset/f3d8f12ec645. to: "native" msg: { type: 'places:view', place_title: '...' }
Target Milestone: --- → M2
Attached image button.png
Width matches the width shown in the comp
Attached image button-active.png
Width matches comp
The mockup app -- views.mustache -- now supports the places:view message, changing the title of the drawer toolbar when stack is changed.
(In reply to Gordon Brander from comment #5) > The mockup app -- views.mustache -- now supports the places:view message, > changing the title of the drawer toolbar when stack is changed. https://bitbucket.org/mozillapancake/pancake/changeset/a3451edf3fa0
(In reply to Gordon Brander from comment #1) > We are now sending an event when switching to places view of drawer > https://bitbucket.org/mozillapancake/pancake/changeset/f3d8f12ec645. > > to: "native" > msg: { type: 'places:view', place_title: '...' } Hey just to be sure, I actualy receive a places:view message containing a stack_title property. Was that intended?
What message do I send to the FE when the user clicks the Back button?
Can you add a little extra space on the right side of the button images so that the text is centered in the 'straight' part of the button?
Added handler for `stacks:view` event in drawer. So now, all you should have to do to get the drawer to display stacks is send a `stacks:view` event to `drawer`.
The button image matches the size shown in the drawer comps. However, the button in the comp says "back". It should say "stacks". I'll add a new one that should be the right size for the word "stacks".
The button size is good. The image just needs to be wider with some extra transparent space on the right side. Because iOS centers the button text at the actual image center.
(In reply to Stefan Arentz [:st3fan] from comment #7) > Hey just to be sure, I actualy receive a places:view message containing a > stack_title property. Was that intended? Oops! My bug comment was incorrect. Yes, you're right: you're viewing the places for a stack, so you should get back the stack_title. The code should be correct.
Attached image Button with space
New button images added. Hope that helps!
Implemented.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: