Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a default color for Media category #593

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

0xbrayo
Copy link
Member

@0xbrayo 0xbrayo commented Jun 18, 2024

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

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

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.

@@ -49,6 +49,11 @@ export const defaultCategories: Category[] = [
{ name: ['Work', 'Video'], rule: { type: 'regex', regex: 'Kdenlive' } },
{ name: ['Work', 'Audio'], rule: { type: 'regex', regex: 'Audacity' } },
{ name: ['Work', '3D'], rule: { type: 'regex', regex: 'Blender' } },
{
name: ['Media'],
rule: { type: null },
Copy link

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
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
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
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

Copy link
Member

@ErikBjare ErikBjare Jul 9, 2024

Choose a reason for hiding this comment

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

Copy link

codecov bot commented Jun 18, 2024

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
8 checks passed
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