Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1210109 menu #1721

Merged
merged 13 commits into from
Apr 20, 2016
Merged

Bug 1210109 menu #1721

merged 13 commits into from
Apr 20, 2016

Conversation

fluffyemily
Copy link
Contributor

This is the Menu part of the exposing tools to the user story. The toolbar changes are under a separate story

@fluffyemily fluffyemily force-pushed the fluffyemily/Bug-1210109-Menu branch from b61aa0e to a20a1af Compare April 19, 2016 14:45
Emily Toop added 13 commits April 20, 2016 18:07
            - Create structs to describe MenuItems and MenuToolbarItems
            - Create MenuConfiguration file
            - Add test for menu configuration
            - Create menu view
                 * create delegate and data source for menu toolbar items
                 * create delegate and data source for menu items
                 * adds a MenuItemView to a container view for each menu item
            - Add custom Toolbar to provide rounded corners.
            - Add footer view to menu view & use rounded toolbar for top right and top left
            - Layout the title label to correct width
… more than 1 menu page

            - Allow for configuration of max number of items in menu row,
            - don't disable the menu button when the page is not a web page
            - Ensure that menu is dismissed on rotation when in iPhone mode
            - Present as popover correctly in ALL size classes
            - make menu button user interaction enabled so that we can detect the touch and dismiss the menu
            - ensure rounded corners of toolbar are shown by adding page control and collection view into container view
Bug 1210109 - Fix layout issue with menu (collection view height) in popover mode.

Always show home panel toolbar when menu available
            - Move TabState protocol to struct and get Tab to return it's current state on request.
            - Move AppState to be an enum that takes a state object (for tab) that also describes location
            - Only store enum inside Menu and get MenuConfig to create itself based on state
            - Keep track of menuController and update with new state when it changes
            - Create HomePanelState and make home panels aware of whether it is in private or non-private mode.
            - Add isPrivate method to app state rather than menuConfig. Create TabTrayState
            - Turn MenuItem and MenuToolbarItem into protocols
            - Turn MenuConfiguration into a protocol too, again for future proofing.
            - Make TabStateDelegate an AppStateDelegate and make HomePanels, Tab Tray and Tab all keep a weak reference to it.
            - Update app state when changes to state variables are made
            - Only update the app state for the menu when the MOZ_MENU feature flag is enabled
Bug 1254574 & 1254575 - implement open in new normal & private tabs menu actions
Bug 1254586 - Implement Find In Page menu action
Bug 1254587 - Implement Request Desktop/Mobile site functionality
Bug 1254577 - Move bookmarks over to using TabState to make decisions.
                * Implement Add/Remove Bookmark menu action
Bug 1254576 - implement open settings menu action
Bug 1254599 - Create all purpose animator for providing animations on menu items (or toolbar buttons if required)
Bug 1254577 - add selected state for add bookmark and implement a highlighted tint colour.
Bug 1263178 - Making it easier to generate URLs for opening the home panels
… the selected panel is switched rather than opening a new tab
            - display menu instead of add tab button if menu enabled
            - display always as popover in tabs tray (at least for as long as the menu button sits at the top.
            - close only those tabs in the current tray (functionality checked and confirmed with @tecgirl)
               * Updating Bookmarking tests to use menu bookmarks
               * Add test for find in page from menu
               * Add test to use desktop/mobile site switch from the menu
               * Fix toolbar tests - look for menu button rather than bookmark button in toolbar
               * Add menu specific tests
                * Make MenuActions more generic in preparation for open sourcing
                * Call performMenuAction asynchronously from menu rather than forcing the BVC to care about asynchronicty
                * Better detect whether or not we are displaying home panels by checking the displayURL of the  selected tab rather than whether or not there is a home panel controller
this is because a timing issue sometimes meant that the home panel controller from a previous tab was still hanging around when requesting a menu from a new tab with a URL, therefore displaying the wrong URL
                * Only show settings button on tabs tray if not using menu
            - When switching between private and non-private mode on home panels, update the isPrivate flag
            - Make the menu button the right colour and positioned correctly
            - separate the menu from the specific Browser implementation of it
            - Make new custom UIBarButtonItems tappable
@fluffyemily fluffyemily force-pushed the fluffyemily/Bug-1210109-Menu branch from a20a1af to 874f501 Compare April 20, 2016 17:10
@fluffyemily fluffyemily merged commit bae8bf9 into master Apr 20, 2016
@farhanpatel farhanpatel deleted the fluffyemily/Bug-1210109-Menu branch October 5, 2016 12:21
isabelrios pushed a commit to isabelrios/firefox-ios that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants