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)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.4+, b2g-v1.4 fixed, b2g-v2.0 fixed)

RESOLVED FIXED
1.4 S5 (11apr)
blocking-b2g 1.4+
Tracking Status
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.
User Story: (updated)
Ashish! Please check the user stories and update the current status.
Assignee: nobody → singhashish1887
It can be implemented
It can be implemented by drawing lines on View Finder
Blocks: 966764
Depends on: 971460
Attached file Pointer to Pull Request.html (obsolete) —
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 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 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)
Summary: [User story] Add frame grid to camera settings → [Camera] Add frame grid to camera settings
Attached file patch (camera-dev)
Attachment #8380460 - Flags: feedback?(dflanagan)
Attachment #8380121 - Attachment is obsolete: true
Attachment #8380121 - Flags: feedback?(wilsonpage)
Attachment #8380121 - Flags: feedback?(dmarcos)
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+
Attachment #8385288 - Flags: review?(dflanagan)
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-
3/4 update: LG to address david's comments and move this along.
Wilson, please create PR for camera branch so David can review
Flags: needinfo?(wilsonpage)
Flags: needinfo?(wilsonpage)
I created a new Bug 980094 for the refactor of view.js that blocks this bug.
Depends on: 980094
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.
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)
Image illustrating the overlap of the grid with the settings lines
Attached image settingsMenuNoGrid.png
This how the settings menu looks like with the grid hidden
Attachment #8386463 - Flags: ui-review?(rmacdonald)
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)
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 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-
Updated visual spec for the camera grid.
Flags: needinfo?(hnguyen)
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+
Target Milestone: --- → 1.4 S3 (14mar)
Flags: needinfo?(dmarcos)
Attachment #8386463 - Flags: ui-review?
Attachment #8386463 - Flags: ui-review-
Attachment #8386463 - Flags: ui-review+
Flags: needinfo?(dmarcos)
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
Its looks great - thanks for Diego. I think we're good to go.
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-
Attachment #8386463 - Flags: review- → review?(dflanagan)
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+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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
Target Milestone: 1.4 S3 (14mar) → 1.4 S5 (11apr)
blocking-b2g: --- → 1.4+
Attachment #8386463 - Flags: ui-review?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: