Skip to content

Commit

Permalink
Feature/settings page (#20)
Browse files Browse the repository at this point in the history
* refactor: remove view transition from note expanding

* refactor: remove view transition from note expanding

* refactor: change all try catch to use abstraction

* refactor: change to use specific endpoint to clear all trash

* feat: add settings pages

* chore: update dependencies

* feat: implement settings page

* feat: implement user context menu

* refactor: place nav drawer closer to notes ui

* feat: implement account page layout

* feat: implement user data form

* feat: implement change password form

* fix: input error state

* feat: add second language

* chore: fix github actions

* chore: fix github actions

* fix: typescript errors

* chore: increase eslint warning limit

* refactor: rename segmented button component

* feat: implement segmented button animation

* refactor: change note pad color

* fix: dark mode selected note color

* fix: nav items colors

* fix: to dismiss old toast on new one

* fix: end of list message

* fix: empty list message alignment

* fix: eslint error

* feat: chnage app title & add favicon

* refactor: rename folder

* feat: add tooltips

* fix: bug fixes

* feat: implement expanded note bookmark

* refactor: remove unused code

* feat: implement transition for dark mode

* feat: add search query to query string

* feat: add options to expanded note

* refactor: remove unnecessary menu item

* refactor: get rid of outlet context

* feat: implement user avatar frame

* refactor: adjust user avatar

* refactor: adjust notes animation

* feat: implement image upload

* feat: implement image upload

* refactor: increase drag n drop area

* feat: add drag and drop helper

* fix: state without icon

* fix: arrow to not be draggable

* fix: to remove empty query string

* refactor: remove unnecessary props

* fix: unnecessary api call

* fix: trash icon color

* fix: search label menu input to work properly

* feat: implement labels note visual search

* feat: implement labels menu text highlighting

* feat: implement to clear search input

* chore: update dependencies

* refactor: change dark theme colors

* feat: implement to be able to edit labels

* fix: settings back button height

* fix: dialogs behavior

* fix: minor issues

* fix: search z-index issue

* feat: implement search

* feat: implement add label button

* fix: note list fetching

* feat: add undo snackbar for data deletion

* fix: import cycle error

* feat: add rename label snackbar

* feat: improve search with keyboard

* fix: spelling

---------

Co-authored-by: Bohdan Shcherbyna <bshcherbyna@investorlift.com>
  • Loading branch information
Quiddlee and Bohdan Shcherbyna authored Sep 2, 2024
1 parent d99563c commit 1e1fefb
Show file tree
Hide file tree
Showing 86 changed files with 3,185 additions and 1,167 deletions.
2 changes: 1 addition & 1 deletion .github/actions/ci-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ runs:
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
Expand Down
35 changes: 22 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,38 @@ on:
- main

env:
NODE_VERSION: 21.x
NODE_VERSION: 20.x

jobs:
ci:
name: CI
linting:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 8
- name: Lint Application
run: cd client && npm i -g pnpm@latest && pnpm i && pnpm lint

- name: Setup Continuous integration
uses: ./.github/actions/ci-setup
type-check:
name: Types
runs-on: ubuntu-latest

- name: Lint Application
run: cd client && pnpm lint
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check Application Types
run: cd client && pnpm type-check
run: cd client && npm i -g pnpm@latest && pnpm i && pnpm type-check

prettify:
name: Prettier
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check Application Types
run: cd client && pnpm prettier:fix
run: cd client && npm i -g pnpm@latest && pnpm i && pnpm prettier:fix
2 changes: 1 addition & 1 deletion client/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

cd client && pnpm precommit
pnpm precommit
6 changes: 2 additions & 4 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⚛️</text></svg>" />
<link rel="icon" href="/src/assets/verified.png" type="image/png" />

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand All @@ -13,7 +11,7 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS + TW</title>
<title>Be-Better TODO App | Achieve More Every Day</title>
</head>
<body>
<div id="root"></div>
Expand Down
57 changes: 30 additions & 27 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,53 @@
"dev": "vite --host",
"build": "tsc && vite build",
"prettier:fix": "prettier --write \"src/**/*.{ts,tsx,css}\"",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:fix": "eslint . --fix --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 100",
"lint:fix": "eslint . --fix --ext ts,tsx --report-unused-disable-directives --max-warnings 100",
"preview": "vite preview",
"type-check": "tsc --noEmit",
"precommit": "cd client && pnpm lint-staged && pnpm type-check",
"prepare": "husky"
"prepare": "cd .. && husky"
},
"dependencies": {
"@hookform/resolvers": "^3.9.0",
"@lit/react": "^1.0.5",
"@material/web": "^1.5.1",
"@reduxjs/toolkit": "^2.2.6",
"@material/web": "^2.1.0",
"@reduxjs/toolkit": "^2.2.7",
"@tippyjs/react": "^4.2.6",
"clsx": "^2.1.1",
"date-fns": "^3.6.0",
"framer-motion": "^11.3.2",
"i18next": "^23.11.5",
"framer-motion": "^11.3.30",
"i18next": "^23.14.0",
"i18next-browser-languagedetector": "^8.0.0",
"js-cookie": "^3.0.5",
"overlayscrollbars": "^2.9.2",
"overlayscrollbars": "^2.10.0",
"overlayscrollbars-react": "^0.5.6",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.52.1",
"react-i18next": "^14.1.2",
"react-dropzone": "^14.2.3",
"react-hook-form": "^7.53.0",
"react-i18next": "^15.0.1",
"react-redux": "^9.1.2",
"react-router-dom": "^6.24.1",
"react-router-dom": "^6.26.1",
"react-toastify": "^10.0.5",
"tailwind-merge": "^2.4.0",
"tailwind-merge": "^2.5.2",
"tinycolor2": "^1.6.0",
"use-debounce": "^10.0.1",
"tippy.js": "^6.3.7",
"use-debounce": "^10.0.3",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/dom-view-transitions": "^1.0.4",
"@types/dom-view-transitions": "^1.0.5",
"@types/js-cookie": "^3.0.6",
"@types/node": "^20.14.10",
"@types/react": "^18.3.3",
"@types/node": "^22.5.0",
"@types/react": "^18.3.4",
"@types/react-dom": "^18.3.0",
"@types/react-redux": "^7.1.33",
"@types/tinycolor2": "^1.4.6",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.19",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-base": "^15.0.0",
Expand All @@ -59,18 +62,18 @@
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.8",
"eslint-plugin-react-refresh": "^0.4.11",
"eslint-plugin-simple-import-sort": "^12.1.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"postcss": "^8.4.39",
"husky": "^9.1.5",
"lint-staged": "^15.2.9",
"postcss": "^8.4.41",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.4",
"typescript": "^5.5.3",
"vite": "^5.3.3"
"prettier-plugin-tailwindcss": "^0.6.6",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4",
"vite": "^5.4.2"
}
}
Loading

0 comments on commit 1e1fefb

Please sign in to comment.