Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Refactor overlay into split #1664

Closed
athomasmoz opened this issue Jan 11, 2019 · 3 comments
Closed

Refactor overlay into split #1664

athomasmoz opened this issue Jan 11, 2019 · 3 comments
Assignees
Labels
size S 2 pt = 1 day = 6 - 8 hours
Milestone

Comments

@athomasmoz
Copy link

Refactor overlay into split

This will involve adjusting fragment transactions so that WebRenderFragment is visible

Why/User Benefit/User Problem

What / Requirements

Acceptance Criteria (how do I know when I’m done?)

@mcomella
Copy link
Contributor

Presumably, the home page will stay the same but we'll want something like this while browsing:
screenshot_1548797869

We should design for:

  • Animate Scrolling as Focus Moves on Overlay #1669 Being able to animate the bottom layer over the top when focus changes or scrolling the whole page on the home screen
  • Change of internal layouts of each view: these will change soon so we want to make sure they're easy to change quickly

mcomella added a commit that referenced this issue Jan 29, 2019
The toolbar and navigationoverlay packages both had one item in them.
The toolbar is only used in the navigationoverlay so I didn't see any
reason to keep around two very small packages.
mcomella added a commit that referenced this issue Jan 29, 2019
The NavigationOverlayFragment is starting to get unwieldly: it's 550+
lines and it's hard to figure out which code is related to the toolbar
and which code is related to the bottom navigation panel. Since they're
being split, now is an opportune time to separate their file contents.
Moving the toolbar code out:
- Reduces NavOverlayFrag to ~430 lines
- Makes the dependencies between the toolbar and bottom navigation panel
more obvious
- Makes the dependencies between the toolbar and the framework more
obvious
- Makes the shared code more obvious

No functionality was changed and no code was cleaned up: I essentially
just moved functions, updated references, and added the necessary
parameters.

This refactor isn't perfect - e.g. should the NavOverlayFragment really
always handle `onNavigationEvent`? - but is intended to make things easier
to change later.
mcomella added a commit that referenced this issue Jan 29, 2019
The current focus is the default argument so it's unnecessary for us to
pass it in.

This simplifies the depependencies that ToolbarUiController has on the
NavOverlayFragment.
@ghost ghost added the in progress label Jan 29, 2019
mcomella added a commit that referenced this issue Jan 30, 2019
The toolbar and navigationoverlay packages both had one item in them.
The toolbar is only used in the navigationoverlay so I didn't see any
reason to keep around two very small packages.
mcomella added a commit that referenced this issue Jan 30, 2019
The NavigationOverlayFragment is starting to get unwieldly: it's 550+
lines and it's hard to figure out which code is related to the toolbar
and which code is related to the bottom navigation panel. Since they're
being split, now is an opportune time to separate their file contents.
Moving the toolbar code out:
- Reduces NavOverlayFrag to ~430 lines
- Makes the dependencies between the toolbar and bottom navigation panel
more obvious
- Makes the dependencies between the toolbar and the framework more
obvious
- Makes the shared code more obvious

No functionality was changed and no code was cleaned up: I essentially
just moved functions, updated references, and added the necessary
parameters.

This refactor isn't perfect - e.g. should the NavOverlayFragment really
always handle `onNavigationEvent`? - but is intended to make things easier
to change later.
mcomella added a commit that referenced this issue Jan 30, 2019
The current focus is the default argument so it's unnecessary for us to
pass it in.

This simplifies the depependencies that ToolbarUiController has on the
NavOverlayFragment.
mcomella added a commit that referenced this issue Jan 30, 2019
The toolbar and navigationoverlay packages both had one item in them.
The toolbar is only used in the navigationoverlay so I didn't see any
reason to keep around two very small packages.
mcomella added a commit that referenced this issue Jan 30, 2019
The NavigationOverlayFragment is starting to get unwieldly: it's 550+
lines and it's hard to figure out which code is related to the toolbar
and which code is related to the bottom navigation panel. Since they're
being split, now is an opportune time to separate their file contents.
Moving the toolbar code out:
- Reduces NavOverlayFrag to ~430 lines
- Makes the dependencies between the toolbar and bottom navigation panel
more obvious
- Makes the dependencies between the toolbar and the framework more
obvious
- Makes the shared code more obvious

No functionality was changed and no code was cleaned up: I essentially
just moved functions, updated references, and added the necessary
parameters.

This refactor isn't perfect - e.g. should the NavOverlayFragment really
always handle `onNavigationEvent`? - but is intended to make things easier
to change later.
mcomella added a commit that referenced this issue Jan 30, 2019
The current focus is the default argument so it's unnecessary for us to
pass it in.

This simplifies the depependencies that ToolbarUiController has on the
NavOverlayFragment.
mcomella added a commit that referenced this issue Jan 31, 2019
The toolbar and navigationoverlay packages both had one item in them.
The toolbar is only used in the navigationoverlay so I didn't see any
reason to keep around two very small packages.
mcomella added a commit that referenced this issue Jan 31, 2019
The NavigationOverlayFragment is starting to get unwieldly: it's 550+
lines and it's hard to figure out which code is related to the toolbar
and which code is related to the bottom navigation panel. Since they're
being split, now is an opportune time to separate their file contents.
Moving the toolbar code out:
- Reduces NavOverlayFrag to ~430 lines
- Makes the dependencies between the toolbar and bottom navigation panel
more obvious
- Makes the dependencies between the toolbar and the framework more
obvious
- Makes the shared code more obvious

No functionality was changed and no code was cleaned up: I essentially
just moved functions, updated references, and added the necessary
parameters.

This refactor isn't perfect - e.g. should the NavOverlayFragment really
always handle `onNavigationEvent`? - but is intended to make things easier
to change later.
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
@liuche
Copy link
Contributor

liuche commented Feb 23, 2019

I'm also sending @brampitoyo a build so I can get some feedback on various sizing of the toolbar, window space, etc, but since this is landing turned off I can file the polish in a later bug.

liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit to liuche/firefox-tv that referenced this issue Feb 23, 2019
liuche added a commit that referenced this issue Feb 23, 2019
@liuche liuche closed this as completed Feb 23, 2019
@ghost ghost removed the in progress label Feb 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size S 2 pt = 1 day = 6 - 8 hours
Projects
None yet
Development

No branches or pull requests

3 participants