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

Homework #1

Merged
merged 28 commits into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
aff6050
feat: install shadcn/ui library and its ui components
WFZ1 Jun 16, 2024
ab21b85
feat: create minimal viable product
WFZ1 Jun 17, 2024
d9ebac8
feat: add styles for mobile view
WFZ1 Jun 17, 2024
cc03a30
refactor: remove unused files
WFZ1 Jun 18, 2024
241b900
fix: correct eslint errors
WFZ1 Jun 18, 2024
cd8ad0f
feat: add manifest file with required params for pwa
WFZ1 Jun 19, 2024
830e5dc
feat: add maskable icon
WFZ1 Jun 19, 2024
866e8c4
fix: change start_url to '/' in manifest file
WFZ1 Jun 19, 2024
e5f2d3f
feat: add screenshots
WFZ1 Jun 19, 2024
10b79c6
feat: configure pwa with vite-plugin-pwa
WFZ1 Jun 20, 2024
8814f95
feat: setup db and get tasks from it
WFZ1 Jun 21, 2024
9bc4252
feat: implement adding task to db
WFZ1 Jun 21, 2024
3656eb5
feat: implement getting task from db
WFZ1 Jun 21, 2024
93aec11
feat: implement updating task from db
WFZ1 Jun 21, 2024
657f321
feat: implement completing task with db
WFZ1 Jun 21, 2024
bc8dffc
fix: add missed isCompleted field for task creating
WFZ1 Jun 21, 2024
d0edeed
feat: implement deleting task from db
WFZ1 Jun 21, 2024
5d139f0
feat: configure offline persistence
WFZ1 Jun 22, 2024
53d17ab
feat: init firebase hosting
WFZ1 Jun 22, 2024
095f73c
fix: change start_url to '/' in manifest file
WFZ1 Jun 22, 2024
85373e9
refactor: add firebase cache folder to gitignore file
pavlo-skumenko Aug 12, 2024
e15465a
refactor: move sorting variables to enum
pavlo-skumenko Aug 12, 2024
78ab825
refactor: use constants for table.getRowModel().rows
pavlo-skumenko Aug 12, 2024
b262f89
fix: apply changes to tasks table in offline mode
pavlo-skumenko Aug 15, 2024
02012af
fix: navigate to tasks page after task creation in offline mode
pavlo-skumenko Aug 16, 2024
e8da273
fix: navigate to tasks page after task updating in offline mode
pavlo-skumenko Aug 17, 2024
18680fd
refactor: remove redundant getTask function
pavlo-skumenko Aug 17, 2024
973f4d3
refactor: handle all onSnapshot functions in hook
pavlo-skumenko Aug 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VITE_FIREBASE_API_KEY=AIzaSyBfu96ankaid6ji2TcfdmR-w78lsJVJoUM
VITE_FIREBASE_AUTH_DOMAIN=task-management-27b61.firebaseapp.com
VITE_FIREBASE_PROJECT_ID=task-management-27b61
VITE_FIREBASE_STORAGE_BUCKET=task-management-27b61.appspot.com
VITE_FIREBASE_MESSAGING_SENDER_ID=986408804495
VITE_FIREBASE_APP_ID=1:986408804495:web:de8a6e50638d71dbc550fa
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "task-management-27b61"
}
}
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_TASK_MANAGEMENT_27B61 }}
channelId: live
projectId: task-management-27b61
21 changes: 21 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
on: pull_request
permissions:
checks: write
contents: read
pull-requests: write
jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_TASK_MANAGEMENT_27B61 }}
projectId: task-management-27b61
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ dist-ssr
*.njsproj
*.sln
*.sw?
.firebase/*
17 changes: 17 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/index.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Loading