Skip to content

add a default color for Media category#593

Merged
ErikBjare merged 2 commits into
ActivityWatch:masterfrom
0xbrayo:master
Jul 9, 2024
Merged

add a default color for Media category#593
ErikBjare merged 2 commits into
ActivityWatch:masterfrom
0xbrayo:master

Conversation

@0xbrayo

@0xbrayo 0xbrayo commented Jun 18, 2024

Copy link
Copy Markdown
Member

The color value is a placeholder, should you choose to change it 😄


🚀 This description was created by Ellipsis for commit 9fd6513

Summary:

Added default color #F33 for 'Media' category in defaultCategories array in src/util/classes.ts.

Key points:

  • Added default color #F33 for 'Media' category in defaultCategories array.
  • Modified src/util/classes.ts to include the color in the data field of the 'Media' category object.

Generated with ❤️ by ellipsis.dev

@ellipsis-dev ellipsis-dev Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 9fd6513 in 58 seconds

More details
  • Looked at 17 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_RrGqEVDCnMyEXEa3


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Comment thread src/util/classes.ts Outdated
{ name: ['Work', '3D'], rule: { type: 'regex', regex: 'Blender' } },
{
name: ['Media'],
rule: { type: null },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rule type is set to null which is not a valid value according to the Rule interface definition. It should be either 'regex' or 'none'.

Suggested change
rule: { type: null },
rule: { type: 'none' },

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently there are several instances of null instead of 'none', not sure why these aren't caught in CI.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to chase them down and replace with 'none'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't find any other instance of null used in the rules

@ErikBjare ErikBjare Jul 9, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov

codecov Bot commented Jun 18, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 26.13%. Comparing base (2f3d1e8) to head (cdfee31).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #593   +/-   ##
=======================================
  Coverage   26.13%   26.13%           
=======================================
  Files          27       27           
  Lines        1630     1630           
  Branches      281      286    +5     
=======================================
  Hits          426      426           
  Misses       1145     1145           
  Partials       59       59           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ErikBjare ErikBjare merged commit 6ed3e83 into ActivityWatch:master Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants