• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

openSUSE / agama / 7298419110 / 1 – web
72%
master: 72%

Build:
DEFAULT BRANCH: master
Ran 22 Dec 2023 09:41AM UTC
Files 293
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Dec 2023 09:38AM UTC coverage: 74.264%. First build
web – 7298419110.1

push

github

web-flow
[web] Does not mangle names ending in PageMenu (#950)

## Problem

`core/Page` component changed a lot in #925 and got _the ability_ to
work with it's children in order to been able to extract some of them
for placing in the right place.

It's the case of the `Page.Actions` and `Page.Menu`, but while the
former are extracted by checking their `type`, for the latest it's
needed to relay on their `type.name` since they can be wrapped in
another component due to their potential complexity.

Thus, it was required that components intended to be used as page menus
were named ending in _PageMenu_, but this does not work as expected when
minification comes into scene.

## Solution

Until we have something better, the solution by now is asking
[TerserWebpackPlugin](https://webpack.js.org/plugins/terser-webpack-plugin/)
to keep functions names for these functions (aka components) ending in
_PageMenu_. A few bytes more for the production build, but in exchange
everything works as expected.

Fixes #949 

## Testing

Tested manually

## Screenshots

|Before | After |
|-|-|
|![Page Menu
missplaced](https://github.com/openSUSE/agama/assets/1691872/dbfe338b-751c-4110-ab8b-6f5f7a68fc5a)
| ![Page Menu in
place](https://github.com/openSUSE/agama/assets/1691872/b0fd3638-47cc-42ec-a3d9-b07751227862)
|

1426 of 2171 branches covered (0.0%)

Branch coverage included in aggregate %.

5912 of 7710 relevant lines covered (76.68%)

39.14 hits per line

Source Files on job web - 7298419110.1
  • Tree
  • List 293
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 7298419110
  • 5205490b on github
  • Prev Job for on master (#7290413673.)
  • Next Job for on master (#7298594068.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc