Origins based view for Fission#2513
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2513 +/- ##
==========================================
- Coverage 86.39% 86.27% -0.12%
==========================================
Files 214 214
Lines 16687 16801 +114
Branches 4283 4315 +32
==========================================
+ Hits 14416 14495 +79
- Misses 2068 2107 +39
+ Partials 203 199 -4
Continue to review full report at Codecov.
|
canova
left a comment
There was a problem hiding this comment.
Thanks for the work! It looks good to me and like the track architecture, we can use something like that for active tab too, if we can also support other track types like screenshots.
Probably it could use some code de-duplication with the active tab in the future :) But nothing to block for this PR!
Also for the question:
One question I have, is that do we actually need to serialize the browsingContextID to the URL? Can we just look it up by the profile.meta.configuration.activeBrowsingContextID?
Yeah, we can do that. I think we went with adding this ID to the URL because when we were talking about possibilities, someone mentioned that we could also want to support other (non-active) tabs in the future, like selecting a tab from a list and seeing its content instead of the active tab. So adding the active tab ID there is more future proof. But we can also handle this with an upgrader if we want that option in the future. So I'm okay with removing it from the URL.
This is now ready for review. I've split up everything into 3 commits which should be best viewed individually.
The first commit is the most verbose, as it changes the
showTabOnlyarchitecture. It introduces theTimelineTrackOrganization, which can then use switches to handle the different cases.One question I have, is that do we actually need to serialize the browsingContextID to the URL? Can we just look it up by the
profile.meta.configuration.activeBrowsingContextID?The second commit actually adds all of the experimentation. I don't think this commit needs a "strong review", as its experimental. I tried to add known issues as code comments. Your welcome to do a thorough review there, or a light one, as I think it falls under "low risk" code changes. I tried to comment things as much as I could, let me know if I can clarify more. My plan is to iterate a bit with the code here, and focus on follow-ups if possible. Commit #1 and #3 are intended as non-experimental commits, and should probably have due rigor applied on the review.
Deploy preview
In order to activate this view, add
&view=originsto the URL.