Skip to content

build(deps-dev): bump moment from 2.29.1 to 2.29.2 - #333

Merged
ErikBjare merged 1 commit into
masterfrom
dependabot/npm_and_yarn/moment-2.29.2
Apr 9, 2022
Merged

ErikBjare merged 1 commit into
masterfrom
dependabot/npm_and_yarn/moment-2.29.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 8, 2022

Copy link
Copy Markdown
Contributor

Bumps moment from 2.29.1 to 2.29.2.

Changelog

Sourced from moment's changelog.

2.29.2 See full changelog

  • Release Apr 3 2022

Address GHSA-8hfj-j24r-96c4

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Apr 8, 2022
@codecov

codecov Bot commented Apr 8, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #333 (2b1655d) into master (02b88da) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #333   +/-   ##
=======================================
  Coverage   22.05%   22.05%           
=======================================
  Files          25       25           
  Lines        1283     1283           
  Branches      168      168           
=======================================
  Hits          283      283           
- Misses        948      959   +11     
+ Partials       52       41   -11     
Impacted Files Coverage Δ
src/util/time.ts 26.19% <0.00%> (ø)
src/util/color.ts 31.66% <0.00%> (ø)
src/util/timeperiod.ts 16.66% <0.00%> (ø)
src/store/modules/activity.ts 5.64% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02b88da...2b1655d. Read the comment docs.

@ErikBjare
ErikBjare merged commit c83e3fb into master Apr 9, 2022
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/moment-2.29.2 branch April 9, 2022 11:21
TimeToBuildBob added a commit to TimeToBuildBob/aw-webui that referenced this pull request Sep 26, 2026
…contrast

The inBarColors helper used durationColor (ActivityWatch#444) for the duration label when
dark text was chosen. On borderline bar colours where ActivityWatch#333 just clears the
4.5:1 AA threshold, ActivityWatch#444 could fall short. Use textColor (ActivityWatch#333) for both name
and duration in the dark-text branch so the contrast guarantee is the same for
both labels.

Git-Session-Id: 19a84a06-0c5b-5834-91cc-5c41a80c4dae
ErikBjare pushed a commit that referenced this pull request Oct 6, 2026
* fix(sunburst): resolve 'auto' theme for the root circle color

The category sunburst colored its root ('All') node white only when
settings.theme was exactly 'light'. The default theme is 'auto', so on a
light system theme the root rendered as a dark #333 disc - and with no
data the whole chart is just a solid black circle on a light page.

Resolve 'auto' via detectPreferredTheme(), as App.vue already does.

* fix(sunburst): derive root color from the applied page theme in auto mode

App.vue and Theme.vue apply the theme by managing the /dark.css stylesheet
link; resolving 'auto' via detectPreferredTheme() re-read the live system
preference, which can desync from the applied stylesheet if the OS
preference changes mid-session. Instead read the applied state directly.

Also drop the window.matchMedia mock from the tests (it leaked across
tests) in favor of toggling the stylesheet link like the app does.

Git-Session-Id: 534f727a-6d32-5c8c-a765-bfdfb20d50d0

* refactor(theme): centralize dark stylesheet href in DARK_THEME_HREF

App.vue, Theme.vue, isDarkThemeApplied(), and the sunburst test each
hardcoded '/dark.css'. Export a single DARK_THEME_HREF from util/theme so
the test tracks the real stylesheet path production applies instead of a
duplicated literal (addresses AI-review P2 on #1020).

Git-Session-Id: b740a91a-d0eb-50d8-851f-df783784d58f
ErikBjare pushed a commit that referenced this pull request Oct 6, 2026
* fix(dark-mode): restore appsummary bar-chart label contrast

The generic 'svg text { fill: #fff !important }' rule forces white text on
ALL SVG elements including bar-chart labels in the appsummary component.
For light-colored bars (#FFE082 yellow, #90CAF9 light blue, #EF9A9A pink,
#A5D6A7 green) this produces white-on-light with failing WCAG contrast.

Add a scoped exception matching the timespiral pattern already in dark.css:
unset the fill override for appsummary text so labels fall back to the
component's own fill or SVG default (black), which is readable on both
light and dark bar backgrounds.

Closes #412

Git-Session-Id: d3f6

* fix(dark-mode): outline appsummary labels instead of unsetting fill

fill: unset made labels black, which is illegible on dark bars and on
the dark background when a short bar ends before its label does.
Keep white fill and add a dark paint-order:stroke outline so labels
read on light bars, dark bars, and background alike.

Git-Session-Id: d4b04a47-4fb8-5017-913a-9cf2f4330639

* fix(summary): colour bar labels by bar luminance, split overflow text

Replace the dark-mode stroke outline with a structural fix in summary.ts:
each label is drawn twice, once clipped to the bar (dark or light text,
whichever contrasts better with the bar colour) and once clipped to the
remaining width (default text colour, themed by dark.css for the page
background). Labels that overflow short bars stay readable in both themes
without outlines or text-shadow on the bar.

Reverts the dark.css appsummary text override.

Git-Session-Id: ec72

* fix(summary): use textColor for in-bar duration to guarantee WCAG AA contrast

The inBarColors helper used durationColor (#444) for the duration label when
dark text was chosen. On borderline bar colours where #333 just clears the
4.5:1 AA threshold, #444 could fall short. Use textColor (#333) for both name
and duration in the dark-text branch so the contrast guarantee is the same for
both labels.

Git-Session-Id: 19a84a06-0c5b-5834-91cc-5c41a80c4dae

* fix(summary): post-render pass to correct label colour after dark-mode CSS overrides; aria-hidden on visual text copies

Git-Session-Id: 347544d9-d4b9-52ca-a959-71c5eb10b5ac

* fix(summary): filter zero-duration apps; keep in-bar label colours correct across hover

P1 (ced6c2c4c7bf): extend the duration filter to also reject duration === 0.
A zero-duration app produced widthPct=0 and clipOut covering the full bar
width, drawing both label copies in the same region with conflicting fills.

P2 (14a715afce66): move clipIn/clipOut id definitions before the hover
handlers so they can be referenced in those closures.  mouseover now updates
in-bar label colours to contrast against the hover fill; mouseout schedules a
requestAnimationFrame pass that re-reads the actual CSS-computed fill
(accounting for theme overrides) and restores the correct in-bar colour.
This ensures the label colours stay accurate even when a rAF fires during a
hover and when CSS (e.g. dark.css) overrides the raw appcolor.

Git-Session-Id: d67ea75f-ed61-5b13-a770-59cfac0e87b2

* fix(summary): rename shadowed _ params to satisfy no-shadow lint

Git-Session-Id: 7fda0260-02b0-5ec4-b1a4-c9c66ceac41a

* fix(summary): guard empty app list after zero-duration filter

Git-Session-Id: d4f1421c-a125-55b7-9b4b-e43da08db21d

* fix(summary): derive hover label colours from displayed fill, not raw hover color

dark.css overrides the hovered uncategorized bar fill (rgb(184,184,184) ->
#555 !important), so picking label colours from the raw hover color produced
dark labels on the dark themed bar. Reuse the computed-style readback already
used on mouseout for the mouseover path (shared helper).

Git-Session-Id: 130d3e4b-eec6-5fcb-b7ab-fbc00b18e391
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant