Closed Bug 1880542 Opened 1 year ago Closed 11 months ago

Refactor fxview-tab-list and fxview-tab-row

Categories

(Firefox :: Sidebar, task, P1)

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: sclements, Assigned: kcochrane)

References

(Blocks 2 open bugs, Regressed 1 open bug)

Details

(Whiteboard: [fidefe-firefox-view])

Attachments

(1 file)

These components have gotten more complex with the addition of tab indicators and pinned tabs. Simple use cases don't need more than a title and url (for the sidebar), and even within firefox view, only Open Tabs needs to care about the tab indicator and pinned tab logic.
A few ideas:

  • Can we make the fxview-tabs-list more generic by moving handleFocusElementInRow to be handled by row elements? then we can create and slot in different custom row elements to the list depending on the use case? Might need to use lit context for any logic/state handled in the list.
  • Then have fxview-tab-row-simple be a base class from which others could extend, ie fxview-tab-row, fxview-open-tabs-row, etc.
Assignee: nobody → kcochrane
Status: NEW → ASSIGNED
Blocks: 1884193
Attachment #9392853 - Attachment description: WIP: Bug 1880542 - Refactor fxview-tab-list and fxview-tab-row → Bug 1880542 - Refactor fxview-tab-list and fxview-tab-row r=sfoster
Pushed by kcochrane@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dfd96ba0e091 Refactor fxview-tab-list and fxview-tab-row r=sfoster,fxview-reviewers,jsudiaman
Regressions: 1887994
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
Regressions: 1889769
See Also: → 1895516
Component: Firefox View → Sidebar
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: