Closed Bug 1657537 Opened 4 years ago Closed 4 years ago

Move components shared by tooltip and Compatibility Panel to common location

Categories

(DevTools :: Inspector: Compatibility, enhancement, P3)

Firefox 81
enhancement

Tracking

(firefox82 fixed)

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: lelouch.cpp, Assigned: lelouch.cpp)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 2 obsolete files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:81.0) Gecko/20100101 Firefox/81.0

Expected results:

With the introduction of the CSS Compatibility Tooltip, there will be React components shared between the compatibility panel and the tooltip.
Based on the discussion, we will move the shared components to devtools/client/inspector/compatibility and move MDNCompatibility library in devtools/client/shared/compatibility to devtools/server/actors/compatibility to reduce fragmentation in the compatibility ecosystem.

Blocks: 1636336
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3

Most of the MDNCompatibility library imports on the client side
is just to access the property MDNCompatibility.ISSUE_TYPE.
This patch moves the property into constants.js in devtools/shared
from where it can be accessed both client and server side.
The issue types are constants and is exported as COMPATIBILITY_ISSUE_TYPE

Assignee: nobody → lelouch.cpp
Status: NEW → ASSIGNED

This moves the MDNCompatibility library and the related datasets
and tests to the server side. It also moves the compatibility actor
file intot he compatibility directory.
The links to these files have been updated and the library tests have
been moved to the new location.

Depends on D86519

This patch moves the UnsupportedBrowserList React component and it's dependencies
to devtools/client/shared/compatibility
All the paths linked to the moved components have been updated to
point to the components in shared folder

Depends on D86521

This patch moves the snapshot
tests for the components shared between the compatibility panel and the
compatibility tooltip to shared/compatibility/test/node
The components UnsupportedBrowserList and UnsupportedBrowserItem
were moved to devtools/client/shared/compatibility in D83909.
The lock files and configs are copied from
devtools/client/inspector/compatibility/test/node and are exactly
identical except for the package name in package.json

Depends on D86522

Attachment #9169122 - Attachment is obsolete: true
Attachment #9169123 - Attachment is obsolete: true
Attachment #9169119 - Attachment description: Bug 1657537 - Part 1 - Move the ISSUE_TYPE property to shared constsnts file r=daisuke,mtigley → Bug 1657537 - Part 1 - Move the ISSUE_TYPE property to devtools/shared/constants.js r=daisuke,mtigley
Pushed by mtigley@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d39dc81e9644
Part 1 - Move the ISSUE_TYPE property to devtools/shared/constants.js r=mtigley
https://hg.mozilla.org/integration/autoland/rev/b17538791df6
Part 2 - Move MDNCompatibility library and related files to devtools/server/actors/compatibility r=daisuke,mtigley
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: