Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Jun 14, 2022
1 parent 0e0c687 commit 9fe3fe0
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions src/util/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ export interface Category {
// https://colorhunt.co/palette/4802
const COLOR_GREEN = '#96cd39',
COLOR_SUPER_GREEN = '#54e346',
COLOR_BRIGHT_GREEN = '#A8FC00',
COLOR_UNCAT = '#CCC',
COLOR_ORANGE_GREEN = '#f5ff65',
COLOR_SLIGHTLY_YELLOW = '#f5ff65',
COLOR_ORANGE = '#ffba47',
COLOR_RED = '#ff5b44';

Expand All @@ -51,8 +52,12 @@ export const defaultCategories: Category[] = [
},
{
name: ['Work', 'General'],
rule: { type: 'regex', regex: 'Preview|Finder|Todoist|1Password|Soulver' },
data: { color: COLOR_ORANGE_GREEN },
rule: {
type: 'regex',
regex: 'Preview|Finder|Todoist|1Password|Soulver|System Preferences|VNC Viewer|Streaks',
select_keys: ['app'],
},
data: { color: COLOR_SLIGHTLY_YELLOW },
},
{
name: ['Work', 'Programming'],
Expand All @@ -73,7 +78,7 @@ export const defaultCategories: Category[] = [
rule: {
type: 'regex',
select_keys: ['app'],
regex: 'Code|Sublime Text|TextMate|iTerm|Script Editor|Base|Postico',
regex: 'Code|Sublime Text|TextMate|iTerm|Script Editor|Base|Postico|Sequel Ace',
},
data: { color: COLOR_SUPER_GREEN },
},
Expand Down Expand Up @@ -105,14 +110,23 @@ export const defaultCategories: Category[] = [
},
data: { color: COLOR_RED },
},
{
name: ['Media', 'Podcasts'],
rule: {
type: 'regex',
regex: 'Podcasts',
select_keys: ['app'],
},
data: { color: COLOR_BRIGHT_GREEN },
},
{
name: ['Media', 'Music'],
rule: {
type: 'regex',
regex: 'Spotify|Deezer|Amazon Music',
ignore_case: true,
},
data: { color: '#A8FC00' },
data: { color: COLOR_BRIGHT_GREEN },
},
{
name: ['Comms'],
Expand All @@ -136,11 +150,15 @@ export const defaultCategories: Category[] = [
{
name: ['Comms', 'Meetings'],
rule: { type: 'regex', regex: 'Zoom|Calendar|Cron' },
data: { color: COLOR_ORANGE_GREEN },
data: { color: COLOR_SLIGHTLY_YELLOW },
},
{
name: ['Web Browsing'],
rule: { type: 'regex', regex: 'Chrome|Safari|FireFox|Brave', select_keys: ['app'] },
rule: {
type: 'regex',
regex: 'Chrome|Safari|FireFox|Brave',
select_keys: ['app']
},
},
{ name: ['Uncategorized'], rule: { type: null }, data: { color: COLOR_UNCAT } },
];
Expand Down

1 comment on commit 9fe3fe0

@github-actions
Copy link

Choose a reason for hiding this comment

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

Here are screenshots of this commit:

Screenshots using aw-server v0.12.0b2 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.0b2 (click to expand)

CML watermark

Please sign in to comment.