Skip to content

Commit a431338

Browse files
style(core): apply project-wide formatting with Prettier
1 parent 6b36817 commit a431338

Some content is hidden

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

94 files changed

+4081
-2712
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@ CollabData is a web platform that enables users to manage data analysis projects
88

99
## 🔑 Key Features
1010

11-
* **🔐 User Authentication:** A complete login, registration, and social authentication system using Google and GitHub.
12-
* **📊 Project Dashboard:** A central dashboard to view, search, filter, and manage all analysis projects.
13-
* **✨ New Analysis Creation:** A guided workflow for creating new analysis projects, configuring tools, and uploading datasets.
14-
* **📈 Results Visualization:** Dynamic results dashboards with KPIs, charts, descriptive statistics tables, and AI-generated insights.
15-
* **💻 Interactive Workspace:** An IDE-like workspace for exploring data files.
16-
* **👤 Profile Management:** A settings page for users to update their personal information and manage their account.
17-
* **🤖 AI Integration:** Leverages Genkit to provide intelligent analysis suggestions based on dataset descriptions.
11+
- **🔐 User Authentication:** A complete login, registration, and social authentication system using Google and GitHub.
12+
- **📊 Project Dashboard:** A central dashboard to view, search, filter, and manage all analysis projects.
13+
- **✨ New Analysis Creation:** A guided workflow for creating new analysis projects, configuring tools, and uploading datasets.
14+
- **📈 Results Visualization:** Dynamic results dashboards with KPIs, charts, descriptive statistics tables, and AI-generated insights.
15+
- **💻 Interactive Workspace:** An IDE-like workspace for exploring data files.
16+
- **👤 Profile Management:** A settings page for users to update their personal information and manage their account.
17+
- **🤖 AI Integration:** Leverages Genkit to provide intelligent analysis suggestions based on dataset descriptions.
1818

1919
## 🛠️ Tech Stack
2020

21-
* **Framework:** [Next.js](https://nextjs.org/)
22-
* **UI Library:** [React](https://react.dev/)
23-
* **Language:** [TypeScript](https://www.typescriptlang.org/)
24-
* **Styling:** [Tailwind CSS](https://tailwindcss.com/)
25-
* **UI Components:** [ShadCN UI](https://ui.shadcn.com/)
26-
* **Backend & Auth:** [Firebase](https://firebase.google.com/) (Authentication, Firestore)
27-
* **Generative AI:** [Genkit](https://firebase.google.com/docs/genkit) (Google AI)
21+
- **Framework:** [Next.js](https://nextjs.org/)
22+
- **UI Library:** [React](https://react.dev/)
23+
- **Language:** [TypeScript](https://www.typescriptlang.org/)
24+
- **Styling:** [Tailwind CSS](https://tailwindcss.com/)
25+
- **UI Components:** [ShadCN UI](https://ui.shadcn.com/)
26+
- **Backend & Auth:** [Firebase](https://firebase.google.com/) (Authentication, Firestore)
27+
- **Generative AI:** [Genkit](https://firebase.google.com/docs/genkit) (Google AI)
2828

2929
## 🚀 Getting Started
3030

3131
Follow these steps to get the development environment running.
3232

3333
### Prerequisites
3434

35-
* Node.js (v18 or higher)
36-
* npm
35+
- Node.js (v18 or higher)
36+
- npm
3737

3838
### Installation & Execution
3939

@@ -93,4 +93,4 @@ Here is an overview of the most important files and directories in the project:
9393
├── public/ # Static files
9494
├── package.json # Project dependencies and scripts
9595
└── tailwind.config.ts # Tailwind CSS configuration
96-
```
96+
```

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+
}

docs/backend.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"entities": {},
33
"auth": {
4-
"providers": [
5-
"email-password",
6-
"google.com",
7-
"github.com"
8-
]
4+
"providers": ["email-password", "google.com", "github.com"]
95
}
106
}

docs/blueprint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- Dataset Upload: Users can upload datasets in CSV, XLSX, or JSON formats.
77
- Shared Projects: Users can create and manage shared projects for collaborative analysis.
88
- Dynamic EDA Selection: Users can select EDA functions (descriptive statistics, histograms, boxplots, scatter plots, heatmaps) from the UI to be performed on their datasets.
9-
- AI-Powered Data Insights: The app will provide suggestions for analyses based on dataset content, column datatypes and overall patterns using a tool that determines if each piece of information should be incorporated or not.
9+
- AI-Powered Data Insights: The app will provide suggestions for analyses based on dataset content, column datatypes and overall patterns using a tool that determines if each piece of information should be incorporated or not.
1010
- Results Visualization: Display analysis results using Matplotlib and Seaborn within the application.
1111
- Scalable Architecture: A modular backend architecture designed to scale efficiently using FastAPI and Pandas.
1212

@@ -19,4 +19,4 @@
1919
- Headline font: 'Playfair' (serif) for an elegant title.
2020
- Material Symbols for a modern, consistent design.
2121
- Responsive grid-based layout for optimal viewing on different devices.
22-
- Subtle transitions for interactive elements, like buttons and menu items.
22+
- Subtle transitions for interactive elements, like buttons and menu items.

eslint.config.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,12 @@ export default [
9999
},
100100
},
101101
{
102-
files: ['**/*.config.{js,mjs,ts}', 'tailwind.config.ts', 'prettier.config.js', 'postcss.config.mjs'],
102+
files: [
103+
'**/*.config.{js,mjs,ts}',
104+
'tailwind.config.ts',
105+
'prettier.config.js',
106+
'postcss.config.mjs',
107+
],
103108
languageOptions: {
104109
ecmaVersion: 'latest',
105110
sourceType: 'module',
@@ -142,12 +147,6 @@ export default [
142147
},
143148
},
144149
{
145-
ignores: [
146-
'.next/**',
147-
'node_modules/**',
148-
'dist/**',
149-
'build/**',
150-
'out/**',
151-
],
150+
ignores: ['.next/**', 'node_modules/**', 'dist/**', 'build/**', 'out/**'],
152151
},
153152
];

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {NextConfig} from 'next';
1+
import type { NextConfig } from 'next';
22

33
const nextConfig: NextConfig = {
44
images: {

src/ai/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { config } from 'dotenv';
22
config();
33

4-
import '@/ai/flows/ai-powered-data-insights.ts';
4+
import '@/ai/flows/ai-powered-data-insights.ts';

src/ai/flows/ai-powered-data-insights.ts

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,39 @@
1010
* @function getAIPoweredDataInsights - An async function that wraps the AIPoweredDataInsightsFlow.
1111
*/
1212

13-
import {ai} from '@/ai/genkit';
14-
import {z} from 'genkit';
13+
import { ai } from '@/ai/genkit';
14+
import { z } from 'genkit';
1515

1616
const AIPoweredDataInsightsInputSchema = z.object({
17-
datasetDescription: z.string().describe('A detailed description of the dataset, including column names, datatypes, and a summary of the data.'),
17+
datasetDescription: z
18+
.string()
19+
.describe(
20+
'A detailed description of the dataset, including column names, datatypes, and a summary of the data.'
21+
),
1822
});
19-
export type AIPoweredDataInsightsInput = z.infer<typeof AIPoweredDataInsightsInputSchema>;
23+
export type AIPoweredDataInsightsInput = z.infer<
24+
typeof AIPoweredDataInsightsInputSchema
25+
>;
2026

2127
const AIPoweredDataInsightsOutputSchema = z.object({
22-
analysisSuggestions: z.array(z.string()).describe('A list of suggested EDA analyses relevant to the dataset.'),
28+
analysisSuggestions: z
29+
.array(z.string())
30+
.describe('A list of suggested EDA analyses relevant to the dataset.'),
2331
});
24-
export type AIPoweredDataInsightsOutput = z.infer<typeof AIPoweredDataInsightsOutputSchema>;
32+
export type AIPoweredDataInsightsOutput = z.infer<
33+
typeof AIPoweredDataInsightsOutputSchema
34+
>;
2535

26-
export async function getAIPoweredDataInsights(input: AIPoweredDataInsightsInput): Promise<AIPoweredDataInsightsOutput> {
36+
export async function getAIPoweredDataInsights(
37+
input: AIPoweredDataInsightsInput
38+
): Promise<AIPoweredDataInsightsOutput> {
2739
return AIPoweredDataInsightsFlow(input);
2840
}
2941

3042
const prompt = ai.definePrompt({
3143
name: 'AIPoweredDataInsightsPrompt',
32-
input: {schema: AIPoweredDataInsightsInputSchema},
33-
output: {schema: AIPoweredDataInsightsOutputSchema},
44+
input: { schema: AIPoweredDataInsightsInputSchema },
45+
output: { schema: AIPoweredDataInsightsOutputSchema },
3446
prompt: `You are an AI assistant that provides smart suggestions for Exploratory Data Analysis (EDA).
3547
Based on the following dataset description, suggest a list of relevant EDA analyses that would be useful for understanding the data.
3648
Consider the datatypes, potential relationships between columns, and overall patterns in the data.
@@ -47,8 +59,8 @@ const AIPoweredDataInsightsFlow = ai.defineFlow(
4759
inputSchema: AIPoweredDataInsightsInputSchema,
4860
outputSchema: AIPoweredDataInsightsOutputSchema,
4961
},
50-
async input => {
51-
const {output} = await prompt(input);
62+
async (input) => {
63+
const { output } = await prompt(input);
5264
return output!;
5365
}
5466
);

src/ai/genkit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {genkit} from 'genkit';
2-
import {googleAI} from '@genkit-ai/google-genai';
1+
import { genkit } from 'genkit';
2+
import { googleAI } from '@genkit-ai/google-genai';
33

44
export const ai = genkit({
55
plugins: [googleAI()],

src/app/dashboard/analysis-tools/page.tsx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,29 @@ export default function AnalysisToolsPage() {
55
return (
66
<div className="flex h-screen w-full bg-background-dark">
77
<DashboardSidebar />
8-
<main className="flex-1 flex flex-col h-full overflow-hidden relative">
9-
<header className="flex-none px-8 py-6 border-b border-border-dark/50 bg-background-dark/50 backdrop-blur-sm z-10">
10-
<div className="flex flex-col md:flex-row md:items-center justify-between gap-4">
8+
<main className="relative flex h-full flex-1 flex-col overflow-hidden">
9+
<header className="z-10 flex-none border-b border-border-dark/50 bg-background-dark/50 px-8 py-6 backdrop-blur-sm">
10+
<div className="flex flex-col justify-between gap-4 md:flex-row md:items-center">
1111
<div>
12-
<span className="text-white text-lg font-bold leading-normal">Analysis Tools</span>
12+
<span className="text-lg font-bold leading-normal text-white">
13+
Analysis Tools
14+
</span>
1315
</div>
1416
<div className="flex items-center gap-3">
1517
<UserNav />
1618
</div>
1719
</div>
1820
</header>
1921

20-
<div className="flex-1 overflow-y-auto p-8 custom-scrollbar">
21-
<div className="max-w-[1400px] mx-auto flex flex-col gap-8 items-center justify-center h-full">
22+
<div className="custom-scrollbar flex-1 overflow-y-auto p-8">
23+
<div className="mx-auto flex h-full max-w-[1400px] flex-col items-center justify-center gap-8">
2224
<div className="text-center">
23-
<h1 className="text-2xl font-bold text-white mb-4">Analysis Tools</h1>
24-
<p className="text-text-secondary">This is where you can find and manage your analysis tools.</p>
25+
<h1 className="mb-4 text-2xl font-bold text-white">
26+
Analysis Tools
27+
</h1>
28+
<p className="text-text-secondary">
29+
This is where you can find and manage your analysis tools.
30+
</p>
2531
</div>
2632
</div>
2733
</div>

0 commit comments

Comments
 (0)