Closed
Bug 966839
Opened 12 years ago
Closed 11 years ago
[Camera] Add frame grid to camera settings
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(blocking-b2g:1.4+, b2g-v1.4 fixed, b2g-v2.0 fixed)
People
(Reporter: skasetti, Assigned: singhashish1887)
References
Details
(Whiteboard: [fxos:media])
User Story
As a user, I want to see the frame grid as an option in the camera settings menu and I can set it to either on or off Acceptance criteria: 1. The user can toggle between on and off for the grid option in camera settings 2. When 'on' option is selected the preview screen should show the grid
Attachments
(7 files, 1 obsolete file)
No description provided.
| Reporter | ||
Updated•12 years ago
|
User Story: (updated)
Comment 1•12 years ago
|
||
Ashish! Please check the user stories and update the current status.
Assignee: nobody → singhashish1887
| Assignee | ||
Comment 2•12 years ago
|
||
It can be implemented
| Assignee | ||
Comment 3•12 years ago
|
||
It can be implemented by drawing lines on View Finder
| Assignee | ||
Comment 4•11 years ago
|
||
Hi David,
We have uploaded frame grid work in progress code.This code does not include test code.
Pleased review the code.
Attachment #8380121 -
Flags: review?(dflanagan)
Comment 5•11 years ago
|
||
Comment on attachment 8380121 [details]
Pointer to Pull Request.html
Adding Diego and Wilson for feedback
Attachment #8380121 -
Flags: feedback?(wilsonpage)
Attachment #8380121 -
Flags: feedback?(dmarcos)
Comment 6•11 years ago
|
||
Comment on attachment 8380121 [details]
Pointer to Pull Request.html
Clearing the review request, since this patch was not actually yet ready for review and landing. I've left feedback on github.
My overall feeling is that that the code to display and position the grid is more complicated than needed. I think you'll be able to simplify it quite a bit with only a little work.
I'd also like wilson's opinion on whether the grid should be created and destroyed when shown and hidden or if, for consistency with other views, it should just be created at startup and shown and hidden when used. And the bigger question: should the grid actually be part of the viewfinder view, or part of the hud view? (Or even a new view class of its own?)
Attachment #8380121 -
Flags: review?(dflanagan)
Comment 7•11 years ago
|
||
Updated•11 years ago
|
Summary: [User story] Add frame grid to camera settings → [Camera] Add frame grid to camera settings
Comment 8•11 years ago
|
||
Attachment #8380460 -
Flags: feedback?(dflanagan)
Updated•11 years ago
|
Attachment #8380121 -
Attachment is obsolete: true
Attachment #8380121 -
Flags: feedback?(wilsonpage)
Attachment #8380121 -
Flags: feedback?(dmarcos)
Comment 9•11 years ago
|
||
Comment on attachment 8380460 [details]
patch (camera-dev)
Comments on github.
Overall, this seems much cleaner than the previous patch.
Note that there is still an issue with the file permissions. Someone running a Unix variant needs to run chmod 644 on them.
I'm completely confused by the updatePreview() method, but mostly by the parts that predate this patch, so I'd be happy with just having a followup bug files to look into that stuff.
Attachment #8380460 -
Flags: feedback?(dflanagan) → feedback+
Comment 10•11 years ago
|
||
Attachment #8385288 -
Flags: review?(dflanagan)
Comment 11•11 years ago
|
||
Comment on attachment 8385288 [details] [review]
pull-request (camera-new-features)
r- because:
1) the patch modifies a test file, but does not appear to actually test the grid
2) this PR combines an API refactoring to (methods added to js/vendor/view.js and removed from subclasses) with the feature work. Please put those in two separate pull requests.
3) The PR changes file modes from 644 to 755. As I've said before, I won't land patches that make files executable.
I have not yet tested the patch, and it has not gone through UX review yet, so more work may be required before landing, but I wanted to give this feedback right away.
Attachment #8385288 -
Flags: review?(dflanagan) → review-
Comment 12•11 years ago
|
||
3/4 update: LG to address david's comments and move this along.
| Assignee | ||
Comment 13•11 years ago
|
||
Wilson, please create PR for camera branch so David can review
Flags: needinfo?(wilsonpage)
Comment 14•11 years ago
|
||
PR is attached
https://github.com/mozilla-b2g/gaia/pull/16825
Flags: needinfo?(wilsonpage)
Comment 15•11 years ago
|
||
Attachment #8386463 -
Flags: review?(dflanagan)
Comment 16•11 years ago
|
||
I created a new Bug 980094 for the refactor of view.js that blocks this bug.
Comment 17•11 years ago
|
||
https://github.com/mozilla-b2g/gaia/pull/16924
The new pull request addresses the reasons of the r-:
1. It changes all the file permissions to 644
2. It moves the view.js refactor to a different patch (Bug 980094)
3. There's a unit test for the grid.
Comment 18•11 years ago
|
||
I made a couple of tweaks to the grid that are different from the visual specs:
1. I dimmed down the grid so it is less distracting. I also added a border to the lines to increase contrast when the background is bright.
2. The grid is now hidden when opening the settings menu. With the settings open, the lines of the grid and the menu options were overlapping creating a confusing pattern (see attachment)
Comment 19•11 years ago
|
||
Image illustrating the overlap of the grid with the settings lines
Comment 20•11 years ago
|
||
This how the settings menu looks like with the grid hidden
Updated•11 years ago
|
Attachment #8386463 -
Flags: ui-review?(rmacdonald)
Comment 21•11 years ago
|
||
Rob, I flaged the bug for you to review. Please ping me if you need help to flash your phone.
You have to fetch the branch from my repo with the following commands (same thing we did together the other day but on a different branch):
git fetch dmarcos
git checkout dmarcos/bug966839
make install-gaia APP=camera
Flags: needinfo?(rmacdonald)
Comment 22•11 years ago
|
||
Adding Hung to this (In reply to Diego Marcos from comment #21)
> Rob, I flaged the bug for you to review. Please ping me if you need help to
> flash your phone.
Adding Hung as well. Amy is on PTO until Wednesday and Hung has kindly agreed to step in for visual reviews while she is away.
Flags: needinfo?(rmacdonald) → needinfo?(hnguyen)
Comment 23•11 years ago
|
||
Comment on attachment 8386463 [details] [review]
pull-request (camera-new-features) review comments addressed
Focusing solely on the frame grid... I really like how the frame grid is hidden while the menu is open but minusing for two reasons.
1 - The menu should automatically close when an option, including HDR on or off, is selected. (Should this be covered under a different bug?)
2 - The grid lines do not match the visual design spec and, as a result, I'm flagging Hung from visual on this patch.
If the menu closing is a separate bug and Hung is ok with the visuals, then I'm otherwise fine with this.
Thanks!
Thanks!
Attachment #8386463 -
Flags: ui-review?(rmacdonald)
Attachment #8386463 -
Flags: ui-review?(hnguyen)
Attachment #8386463 -
Flags: ui-review-
Comment 25•11 years ago
|
||
Comment on attachment 8386463 [details] [review]
pull-request (camera-new-features) review comments addressed
After reviewing the current visual specification with Peter, we've decided to make a minor update.
In place of the opaque white lines, we thought best to use a bit of a transparency to reduce the harshness along with a faint black stroke for very bright situations. Its basically a polished version of what Diego had implemented.
Please see attached updated specification for full details.
Attachment #8386463 -
Flags: ui-review?(hnguyen) → ui-review+
Updated•11 years ago
|
Target Milestone: --- → 1.4 S3 (14mar)
Updated•11 years ago
|
Flags: needinfo?(dmarcos)
Updated•11 years ago
|
Attachment #8386463 -
Flags: ui-review?
Attachment #8386463 -
Flags: ui-review-
Attachment #8386463 -
Flags: ui-review+
Flags: needinfo?(dmarcos)
Comment 26•11 years ago
|
||
Flagging again for UX review after implemented requested changes in the grid. Please focus now only on the grid. You will have a chance to review the behavior of the settings menu in a different bug.
Flashing your phones:
git fetch dmarcos
git checkout dmarcos/bug966839
make install-gaia APP=camera
Comment 27•11 years ago
|
||
Its looks great - thanks for Diego. I think we're good to go.
Comment 28•11 years ago
|
||
Comment on attachment 8386463 [details] [review]
pull-request (camera-new-features) review comments addressed
r- because I can barely understand the CSS and because it does not appear to match the visual spec. The updated spec asks for 2px wide, 70% opaque white lines, and the CSS gives 1px wide 30% opaque white. Also, this patch draws a translucent black line around the perimeter of the screen as part of the grid.
Attachment #8386463 -
Flags: review?(dflanagan) → review-
Updated•11 years ago
|
Attachment #8386463 -
Flags: review- → review?(dflanagan)
Comment 29•11 years ago
|
||
Comment on attachment 8386463 [details] [review]
pull-request (camera-new-features) review comments addressed
r+ with nits addressed, and if you check the merge on view/viewfinder.js, particularly the code involved in setting the preview size.
Attachment #8386463 -
Flags: review?(dflanagan) → review+
Comment 30•11 years ago
|
||
Landed on camera-new-features:
https://github.com/mozilla-b2g/gaia/commit/5d0758cf2bc4e25f6adc9392ab23b63dcca79a0e
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 31•11 years ago
|
||
Bulk edit for camera bugs.
If earlier comments do not show how this bug landed to master, it probably landed as part of https://github.com/mozilla-b2g/gaia/pull/17599 which merged the camera-new-features branch into master.
This bug was uplifted from master to v1.4 as part of https://github.com/mozilla-b2g/gaia/commit/a8190d08e61316a86bba572ba8d894d081a20530
status-b2g-v1.4:
--- → fixed
status-b2g-v2.0:
--- → fixed
Target Milestone: 1.4 S3 (14mar) → 1.4 S5 (11apr)
Updated•11 years ago
|
blocking-b2g: --- → 1.4+
Updated•11 years ago
|
Attachment #8386463 -
Flags: ui-review?
You need to log in
before you can comment on or make changes to this bug.
Description
•