Closed Bug 1863400 Opened 1 year ago Closed 1 year ago

Move about:welcome code out from browser/components/newtab into its own browser/components directory

Categories

(Firefox :: Messaging System, task, P1)

task
Points:
5

Tracking

()

RESOLVED FIXED
122 Branch
Iteration:
122.1 - Nov 20 - Dec 1
Tracking Status
firefox122 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

(Blocks 3 open bugs, Regressed 2 open bugs)

Details

(Whiteboard: [hnt])

Attachments

(9 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

The code powering the current version of about:welcome has lived under browser/components/newtab since its inception in bug 1616370. It shares some of newtab's infrastructure for things like testing, linting, and building / webpacking / bundling.

We're going to be investing some more in newtab in the coming months, and one thing I'd like to do is try to decouple about:newtab from things like about:welcome so that newtab changes do not adversely affect these other components.

My suggestion is to move the code powering about:welcome into a new directory browser/components/welcome.

Hey Gijs - I've gotten a thumbs up from pdahiya to attempt this. Any objections if I try to move about:welcome into `browser/components/welcome"?

Flags: needinfo?(gijskruitbosch+bugs)
Assignee: nobody → mconley

(In reply to Mike Conley (:mconley) (:⚙️) from comment #0)

Hey Gijs - I've gotten a thumbs up from pdahiya to attempt this. Any objections if I try to move about:welcome into `browser/components/welcome"?

No objections, though could we make it aboutWelcome or similar? :-)

Flags: needinfo?(gijskruitbosch+bugs)

This clones many of the ESLint rules from browser/components/newtab over as well.

Attachment #9362694 - Attachment description: Bug 1863400 - Part 1: Move about:welcome mochitest-browser tests to browser/components/aboutwelcome folder. r?pdahiya!,Gijs! → WIP: Bug 1863400 - Part 1: Move about:welcome mochitest-browser tests to browser/components/aboutwelcome folder. r?pdahiya!,Gijs!
Attachment #9362695 - Attachment description: Bug 1863400 - Part 2: Move AboutWelcome parent and child JSWindowActors to browser/components/aboutwelcome folder. r?pdahiya! → WIP: Bug 1863400 - Part 2: Move AboutWelcome parent and child JSWindowActors to browser/components/aboutwelcome folder. r?pdahiya!
Attachment #9362696 - Attachment description: Bug 1863400 - Part 3: Move some about:welcome modules into browser/components/aboutwelcome folder. r?pdahiya! → WIP: Bug 1863400 - Part 3: Move some about:welcome modules into browser/components/aboutwelcome folder. r?pdahiya!
Attachment #9362697 - Attachment description: Bug 1863400 - Part 4: Move static about:welcome content into browser/components/aboutwelcome folder. r?pdahiya! → WIP: Bug 1863400 - Part 4: Move static about:welcome content into browser/components/aboutwelcome folder. r?pdahiya!
Attachment #9362698 - Attachment description: Bug 1863400 - Part 5: Move bundled about:welcome components into browser/components/aboutwelcome folder. r?pdahiya! → WIP: Bug 1863400 - Part 5: Move bundled about:welcome components into browser/components/aboutwelcome folder. r?pdahiya!
Attachment #9362699 - Attachment description: Bug 1863400 - Part 6: Perform bundling within browser/components/aboutwelcome folder. r?pdahiya! → WIP: Bug 1863400 - Part 6: Perform bundling within browser/components/aboutwelcome folder. r?pdahiya!
Attachment #9362700 - Attachment description: Bug 1863400 - Part 7: Move about:welcome Karma unit tests to browser/components/aboutwelcome folder. r?pdahiya! → WIP: Bug 1863400 - Part 7: Move about:welcome Karma unit tests to browser/components/aboutwelcome folder. r?pdahiya!
Attachment #9362694 - Attachment description: WIP: Bug 1863400 - Part 1: Move about:welcome mochitest-browser tests to browser/components/aboutwelcome folder. r?pdahiya!,Gijs! → Bug 1863400 - Part 1: Move about:welcome mochitest-browser tests to browser/components/aboutwelcome folder. r?pdahiya!,Gijs!
Attachment #9362695 - Attachment description: WIP: Bug 1863400 - Part 2: Move AboutWelcome parent and child JSWindowActors to browser/components/aboutwelcome folder. r?pdahiya! → Bug 1863400 - Part 2: Move AboutWelcome parent and child JSWindowActors to browser/components/aboutwelcome folder. r?pdahiya!
Attachment #9362696 - Attachment description: WIP: Bug 1863400 - Part 3: Move some about:welcome modules into browser/components/aboutwelcome folder. r?pdahiya! → Bug 1863400 - Part 3: Move some about:welcome modules into browser/components/aboutwelcome folder. r?pdahiya!
Attachment #9362697 - Attachment description: WIP: Bug 1863400 - Part 4: Move static about:welcome content into browser/components/aboutwelcome folder. r?pdahiya! → Bug 1863400 - Part 4: Move static about:welcome content into browser/components/aboutwelcome folder. r?pdahiya!
Attachment #9362698 - Attachment description: WIP: Bug 1863400 - Part 5: Move bundled about:welcome components into browser/components/aboutwelcome folder. r?pdahiya! → Bug 1863400 - Part 5: Move bundled about:welcome components into browser/components/aboutwelcome folder. r?pdahiya!
Attachment #9362699 - Attachment description: WIP: Bug 1863400 - Part 6: Perform bundling within browser/components/aboutwelcome folder. r?pdahiya! → Bug 1863400 - Part 6: Perform bundling within browser/components/aboutwelcome folder. r?pdahiya!
Attachment #9362700 - Attachment description: WIP: Bug 1863400 - Part 7: Move about:welcome Karma unit tests to browser/components/aboutwelcome folder. r?pdahiya! → Bug 1863400 - Part 7: Move about:welcome Karma unit tests to browser/components/aboutwelcome folder. r?pdahiya!
Whiteboard: [hnt]
Iteration: --- → 122.1 - Nov 20 - Dec 1
Priority: -- → P1
Points: --- → 5
Blocks: 1866138
Blocks: 1866170
Attachment #9362887 - Attachment description: Bug 1863400 - Part 8: Update stylelint and eslint rules for aboutwelcome to match newtab. r?pdahiya! → Bug 1863400 - Part 8: Update stylelint, eslint, prettierignore, hgignore, gitignore and Generated.txt rules for aboutwelcome to match newtab. r?pdahiya!

This is fairly gross, but basically it uses some directory manipulation to run the
bundling steps and karma tests for both browser/components/newtab and
browser/components/aboutwelcome.

It then also takes the lcov.info files generated by both test runs and
concatenates them together before zipping them up.

Bug 1866170 covers creating a try-runner.js script for
browser/components/aboutwelcome.

Depends on D193228

Attachment #9365092 - Attachment description: Bug 1863400 - Part 9: Hack the newtab try-runner.js script to also run about:welcome tests and coverage. r?pdahiya → Bug 1863400 - Part 9: Hack the newtab try-runner.js script to also run about:welcome tests and coverage. r?pdahiya!
Blocks: 1866914
Blocks: 1866935
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b06088e7bf14 Part 1: Move about:welcome mochitest-browser tests to browser/components/aboutwelcome folder. r=pdahiya,Gijs https://hg.mozilla.org/integration/autoland/rev/2e4ea1016d37 Part 2: Move AboutWelcome parent and child JSWindowActors to browser/components/aboutwelcome folder. r=pdahiya https://hg.mozilla.org/integration/autoland/rev/248515a053d2 Part 3: Move some about:welcome modules into browser/components/aboutwelcome folder. r=pdahiya https://hg.mozilla.org/integration/autoland/rev/fa9e5979e8f5 Part 4: Move static about:welcome content into browser/components/aboutwelcome folder. r=pdahiya,desktop-theme-reviewers,dao https://hg.mozilla.org/integration/autoland/rev/edb7a5027680 Part 5: Move bundled about:welcome components into browser/components/aboutwelcome folder. r=pdahiya,aminomancer https://hg.mozilla.org/integration/autoland/rev/47ce0e918be8 Part 6: Perform bundling within browser/components/aboutwelcome folder. r=pdahiya https://hg.mozilla.org/integration/autoland/rev/c72ffc74e4fa Part 7: Move about:welcome Karma unit tests to browser/components/aboutwelcome folder. r=pdahiya https://hg.mozilla.org/integration/autoland/rev/d5ae6f352563 Part 8: Update stylelint, eslint, prettierignore, hgignore, gitignore and Generated.txt rules for aboutwelcome to match newtab. r=pdahiya https://hg.mozilla.org/integration/autoland/rev/b34bd4e8f5e5 Part 9: Hack the newtab try-runner.js script to also run about:welcome tests and coverage. r=pdahiya,ahal,dmose
Regressions: 1866949
Regressions: 1866950
Blocks: 1867805
Regressions: 1868488
Blocks: fxms-infra
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: