Skip to content

Commit b4b5c32

Browse files
committed
Refactor imports and formatting across multiple files for consistency
- Updated import statements to use double quotes instead of single quotes in various components (Login, NotFound, Register, ResetPassword, TaskList). - Added missing semicolons and ensured consistent formatting in TaskList component. - Refactored taskReducer and task types to use double quotes for action types. - Adjusted Supabase function for task management to maintain consistent formatting and error handling. - Updated Tailwind CSS configuration for consistent formatting. - Cleaned up Vercel configuration for better readability. - Ensured all files end with a newline for consistency.
1 parent 934eb03 commit b4b5c32

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1298
-1037
lines changed

.junie/guidelines.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# Project Guidelines
22

33
## Project Overview
4+
45
This is a task management application built with React, TypeScript, and Vite. The application allows users to create, view, and manage tasks through a clean and intuitive interface.
56

67
### Key Features
8+
79
- **Dashboard**: Displays task statistics and recent tasks
810
- **Task List**: Shows all tasks with filtering and sorting capabilities
911
- **Task Details**: Provides detailed information about individual tasks
1012
- **Task Creation**: Allows users to create new tasks with various properties
1113

1214
### Technology Stack
15+
1316
- **Frontend Framework**: React with TypeScript
1417
- **Routing**: React Router
1518
- **Styling**: Tailwind CSS
@@ -21,6 +24,7 @@ This is a task management application built with React, TypeScript, and Vite. Th
2124
## Development Guidelines
2225

2326
### Code Structure
27+
2428
- **src/components**: Reusable UI components
2529
- **ui/**: Shared UI components (buttons, cards, etc.)
2630
- **layout/**: Layout components (header, footer, etc.)
@@ -30,6 +34,7 @@ This is a task management application built with React, TypeScript, and Vite. Th
3034
- **src/types**: TypeScript type definitions
3135

3236
### Coding Standards
37+
3338
- Use TypeScript for type safety
3439
- Follow functional component patterns with hooks
3540
- Use named exports for components
@@ -38,34 +43,40 @@ This is a task management application built with React, TypeScript, and Vite. Th
3843
- Implement responsive design using Tailwind CSS
3944

4045
### State Management
46+
4147
- Use React's built-in state management (useState, useContext) for simple state
4248
- Consider using more robust state management for complex state requirements
4349

4450
### Styling Guidelines
51+
4552
- Use Tailwind CSS for styling
4653
- Follow the utility-first approach
4754
- Use the cn utility for conditional class names
4855
- Maintain consistent spacing and layout
4956

5057
### Performance Considerations
58+
5159
- Optimize component rendering with React.memo where appropriate
5260
- Use lazy loading for routes
5361
- Implement proper data fetching strategies
5462

5563
## Workflow
5664

5765
### Development Process
66+
5867
1. Create a new branch for each feature or bug fix
5968
2. Write clean, maintainable code following the guidelines
6069
3. Test thoroughly before submitting a pull request
6170
4. Request code reviews from team members
6271

6372
### Deployment
73+
6474
The application is deployed on Vercel at https://tryjunie.vercel.app/
6575

6676
## Resources
77+
6778
- [React Documentation](https://reactjs.org/docs/getting-started.html)
6879
- [TypeScript Documentation](https://www.typescriptlang.org/docs/)
6980
- [Tailwind CSS Documentation](https://tailwindcss.com/docs)
7081
- [Vite Documentation](https://vitejs.dev/guide/)
71-
- [Radix UI Documentation](https://www.radix-ui.com/docs/primitives/overview/introduction)
82+
- [Radix UI Documentation](https://www.radix-ui.com/docs/primitives/overview/introduction)

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
# タスク管理アプリ
22

33
## 概要
4+
45
このプロジェクトは、React、TypeScript、Viteを使用して構築されたタスク管理アプリケーションです。ユーザーはタスクの作成、表示、管理を行うことができます。
56

67
## デプロイ
8+
79
このアプリケーションは以下のURLでデプロイされています:
810
https://tryjunie.vercel.app/
911

1012
## 機能
13+
1114
- ダッシュボード:タスクの概要と統計情報を表示
1215
- タスク一覧:すべてのタスクを表示
1316
- タスク詳細:個別のタスク情報を表示
1417
- タスク作成:新しいタスクを作成
1518

1619
## 技術スタック
20+
1721
- **フロントエンド**:React、TypeScript
1822
- **ルーティング**:React Router
1923
- **スタイリング**:Tailwind CSS
@@ -24,24 +28,29 @@ https://tryjunie.vercel.app/
2428
## インストール方法
2529

2630
### 前提条件
31+
2732
- Node.js (バージョン14以上)
2833
- npm または yarn
2934

3035
### セットアップ手順
36+
3137
1. リポジトリをクローンする
38+
3239
```bash
3340
git clone [リポジトリのURL]
3441
cd task-management-app
3542
```
3643

3744
2. 依存関係をインストールする
45+
3846
```bash
3947
npm install
4048
# または
4149
yarn install
4250
```
4351

4452
3. 開発サーバーを起動する
53+
4554
```bash
4655
npm run dev
4756
# または
@@ -54,16 +63,19 @@ https://tryjunie.vercel.app/
5463
```
5564

5665
## 使用方法
66+
5767
- **ダッシュボード**:アプリケーションのホーム画面。タスクの統計情報と最近のタスクを表示します。
5868
- **タスク一覧**:すべてのタスクを一覧表示します。
5969
- **タスク作成**:新しいタスクを作成するためのフォームを提供します。
6070
- **タスク詳細**:特定のタスクの詳細情報を表示します。
6171

6272
## 開発コマンド
73+
6374
- `npm run dev`:開発サーバーを起動します
6475
- `npm run build`:プロダクション用にアプリケーションをビルドします
6576
- `npm run lint`:ESLintを使用してコードをリントします
6677
- `npm run preview`:ビルドされたアプリケーションをプレビューします
6778

6879
## ライセンス
80+
6981
このプロジェクトはプライベートであり、特定のライセンスの下で配布されていません。

components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"hooks": "@/hooks"
1919
},
2020
"iconLibrary": "lucide"
21-
}
21+
}

eslint.config.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ export default [
2525
},
2626
rules: {
2727
// specific rules for CJS if any, e.g. disable typescript specific rules if they bleed
28-
"@typescript-eslint/no-var-requires": "off", // Allow require in .cjs files
29-
"@typescript-eslint/no-require-imports": "off", // Allow require in .cjs files
30-
}
28+
"@typescript-eslint/no-var-requires": "off", // Allow require in .cjs files
29+
"@typescript-eslint/no-require-imports": "off", // Allow require in .cjs files
30+
},
3131
},
3232
// Configuration for eslint.config.js itself (ES Module)
3333
{
@@ -40,14 +40,16 @@ export default [
4040
process: "readonly",
4141
},
4242
},
43-
plugins: { // Ensure typescript plugin is available for rules if needed, though less common for eslint.config.js
43+
plugins: {
44+
// Ensure typescript plugin is available for rules if needed, though less common for eslint.config.js
4445
"@typescript-eslint": tseslint.plugin,
4546
},
46-
rules: { // Example: allow console in eslint.config.js
47-
"no-console": "off",
48-
"@typescript-eslint/no-var-requires": "off",
49-
"@typescript-eslint/no-require-imports": "off",
50-
}
47+
rules: {
48+
// Example: allow console in eslint.config.js
49+
"no-console": "off",
50+
"@typescript-eslint/no-var-requires": "off",
51+
"@typescript-eslint/no-require-imports": "off",
52+
},
5153
},
5254
// Configuration for TypeScript and TSX files (main src project)
5355
{
@@ -66,7 +68,7 @@ export default [
6668
},
6769
plugins: {
6870
"@typescript-eslint": tseslint.plugin,
69-
"react": pluginReact,
71+
react: pluginReact,
7072
"react-hooks": eslintPluginReactHooks,
7173
"react-refresh": eslintPluginReactRefresh,
7274
},
@@ -108,7 +110,8 @@ export default [
108110
ecmaFeatures: { jsx: true }, // Assuming JSX might be used, adjust if not
109111
sourceType: "module",
110112
},
111-
globals: { // Adjust globals as needed for mcp project
113+
globals: {
114+
// Adjust globals as needed for mcp project
112115
...globals.node, // Or browser, depending on mcp's environment
113116
},
114117
},

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "mcp",
33
"version": "1.0.0",
44
"main": "index.js",
5-
"type" : "module",
5+
"type": "module",
66
"bin": {
77
"mcp": "./build/index.js"
88
},

mcp/src/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ server.tool(
136136
"Get weather forecast for a location",
137137
{
138138
latitude: z.number().min(-90).max(90).describe("Latitude of the location"),
139-
longitude: z.number().min(-180).max(180).describe("Longitude of the location"),
139+
longitude: z
140+
.number()
141+
.min(-180)
142+
.max(180)
143+
.describe("Longitude of the location"),
140144
},
141145
async ({ latitude, longitude }) => {
142146
// Get grid point data
@@ -224,4 +228,4 @@ async function main() {
224228
main().catch((error) => {
225229
console.error("Fatal error in main():", error);
226230
process.exit(1);
227-
});
231+
});

mcp/tsconfig.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"compilerOptions": {
3-
"target": "ES2022",
4-
"module": "Node16",
5-
"moduleResolution": "Node16",
6-
"outDir": "./build",
7-
"rootDir": "./src",
8-
"strict": true,
9-
"esModuleInterop": true,
10-
"skipLibCheck": true,
11-
"forceConsistentCasingInFileNames": true
12-
},
13-
"include": ["src/**/*"],
14-
"exclude": ["node_modules"]
2+
"compilerOptions": {
3+
"target": "ES2022",
4+
"module": "Node16",
5+
"moduleResolution": "Node16",
6+
"outDir": "./build",
7+
"rootDir": "./src",
8+
"strict": true,
9+
"esModuleInterop": true,
10+
"skipLibCheck": true,
11+
"forceConsistentCasingInFileNames": true
12+
},
13+
"include": ["src/**/*"],
14+
"exclude": ["node_modules"]
1515
}

postcss.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ module.exports = {
33
tailwindcss: {},
44
autoprefixer: {},
55
},
6-
}
6+
};

src/App.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { Routes, Route } from 'react-router-dom'
2-
import { Toaster } from '@/components/ui/toaster'
3-
import Layout from '@/components/Layout'
4-
import AuthLayout from '@/components/AuthLayout'
5-
import RequireAuth from '@/components/RequireAuth'
6-
import Login from '@/pages/Login'
7-
import Register from '@/pages/Register'
8-
import ForgotPassword from '@/pages/ForgotPassword'
9-
import ResetPassword from '@/pages/ResetPassword'
10-
import NotFound from '@/pages/NotFound'
11-
import TaskList from './pages/TaskList/TaskList'
12-
import IntegrationKeys from './pages/IntegrationKeys'
1+
import { Routes, Route } from "react-router-dom";
2+
import { Toaster } from "@/components/ui/toaster";
3+
import Layout from "@/components/Layout";
4+
import AuthLayout from "@/components/AuthLayout";
5+
import RequireAuth from "@/components/RequireAuth";
6+
import Login from "@/pages/Login";
7+
import Register from "@/pages/Register";
8+
import ForgotPassword from "@/pages/ForgotPassword";
9+
import ResetPassword from "@/pages/ResetPassword";
10+
import NotFound from "@/pages/NotFound";
11+
import TaskList from "./pages/TaskList/TaskList";
12+
import IntegrationKeys from "./pages/IntegrationKeys";
1313

1414
function App() {
1515
return (
@@ -46,7 +46,7 @@ function App() {
4646
</Routes>
4747
<Toaster />
4848
</>
49-
)
49+
);
5050
}
5151

52-
export default App
52+
export default App;

0 commit comments

Comments
 (0)