Skip to content

Commit

Permalink
Merge pull request #24 from /issues/23
Browse files Browse the repository at this point in the history
Issues/23
  • Loading branch information
NekitCorp authored May 2, 2023
2 parents 44d9d67 + 3b7d325 commit 351983a
Show file tree
Hide file tree
Showing 76 changed files with 4,496 additions and 6,287 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Playwright Tests

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Build extension
run: yarn build
- name: Install Playwright Browsers
run: yarn playwright install --with-deps chromium
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
23 changes: 23 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on:
pull_request:
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
# Install dependencies
- run: yarn
# Tests
- run: yarn check:tsc
- run: yarn check:svelte
- run: yarn test
- run: yarn build
30 changes: 27 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
/node_modules/
/public/build/
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

.DS_Store
node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
/test-results/
/playwright-report/
/playwright/.cache/
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120
"printWidth": 100
}
18 changes: 0 additions & 18 deletions .vscode/settings.json

This file was deleted.

61 changes: 17 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,24 @@ Google Chrome extension for improvement [workflowy](https://workflowy.com/)

Features:

- [Calculate total hashtag time](#calculate-total-hashtag-time)
- [Filter by hashtags on hotkey](#filter-by-hashtags-on-hotkey)
- [Hotkey search](#hotkey-search)
- [Swap hashtags on hotkey](#swap-hashtags-on-hotkey)
- [Paint hashtag line color](#paint-hashtag-line-color)
- [Calculate total time](#calculate-total-time)
- [Hashtag line color](#hashtag-line-color)

## Extension settings
## Features

![settings](/img/settings.png)
### Hotkey search

## Features
![hotkey-search-options](/docs/hotkey-search-options.png)
![hotkey-search-demo](/docs/hotkey-search-demo.gif)

### Swap hashtags on hotkey

### Calculate total hashtag time
![swap-hashtags-on-hotkey-options](/docs/swap-hashtags-on-hotkey-options.png)
![swap-hashtags-on-hotkey-demo](/docs/swap-hashtags-on-hotkey-demo.gif)

> Required option `Calculate total time` in extension settings
### Calculate total time

#### Supported tags

Expand All @@ -26,41 +30,10 @@ Features:
- `m` - minutes
- `s` - seconds

![presentation1](https://i.gyazo.com/534ccdf0b014a4c23fd7a186cd30c06c.gif)
![presentation2](https://camo.githubusercontent.com/94e0e25e56485ae07d4188c4c333c49f4cf6c9f7/68747470733a2f2f73746f726167652e79616e646578636c6f75642e6e65742f7075626c69632d6d6174657269616c732f70726573656e746174696f6e322e676966)

### Filter by hashtags on hotkey

> At the presentation below we click in turn `SHIFT + HOME`, `SHIFT + PAGEUP`
![presentation3](https://i.gyazo.com/a565909e85cdcec5cf397a80645894da.gif)

### Swap hashtags on hotkey

> Required option `Swap hashtags on hotkey` in extension settings
![presentation4](https://i.gyazo.com/8070f0fc6904d0a9621c7f81b7b3bcc9.gif)

### Paint hashtag line color

![paint-hashtag-line-color](/img/paint-hashtag-line-color.gif)

## Development

[Getting Started Tutorial](https://developer.chrome.com/extensions/getstarted)

```bash
# build files to './public/build'
# rollup.watch rebuilds your bundle when it detects changes
npm run dev
```
![calculate-total-time-options](/docs/calculate-total-time-options.png)
![calculate-total-time-demo](/docs/calculate-total-time-demo.gif)

```bash
# production build files to './public/build'
$ npm run build
```
### Hashtag line color

```bash
# run tests
$ npm run test
```
![hashtag-line-color-options](/docs/hashtag-line-color-options.png)
![hashtag-line-color-demo](/docs/hashtag-line-color-demo.gif)
Binary file added docs/calculate-total-time-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/calculate-total-time-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/hashtag-line-color-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/hashtag-line-color-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/hotkey-search-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/hotkey-search-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/swap-hashtags-on-hotkey-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/swap-hashtags-on-hotkey-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/paint-hashtag-line-color.gif
Binary file not shown.
Binary file removed img/settings.png
Binary file not shown.
6 changes: 0 additions & 6 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 351983a

Please sign in to comment.