Skip to content

Added ClubPage UI and routing functionality#13

Merged
shadil-rayyan merged 22 commits intoCodeCompasss:clubfrom
Ruba466:club
Jun 27, 2025
Merged

Added ClubPage UI and routing functionality#13
shadil-rayyan merged 22 commits intoCodeCompasss:clubfrom
Ruba466:club

Conversation

@Ruba466
Copy link
Copy Markdown
Contributor

@Ruba466 Ruba466 commented Jun 26, 2025

  • Club card layout using ClubCard component
  • Static club data integration
  • Styling and buttons in ClubList
    Please review and let me know if any improvements are needed.

@shadil-rayyan shadil-rayyan requested a review from Copilot June 26, 2025 18:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements ClubPage UI and routing functionality along with multiple related updates and improvements across the Firebase integration, common UI components (e.g. topNavbar, bottomNavbar, quick actions), and several new pages such as lost & found, timetable, and login. Key changes include:

  • New ClubPage and ClubList components with static club data integration and improved routing.
  • Updates to Firebase configuration and authentication modules.
  • Refinements and typo corrections in various pages and components for overall UI/UX consistency.

Reviewed Changes

Copilot reviewed 39 out of 44 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
src/lib/firebase/auth.ts Updated auth logic and comments for email filtering.
src/components/home/TimeTable.tsx Hardcoded day limits in next/prev functions affecting maintainability.
src/components/club/ClubData.ts Inconsistent slug for a club entry.
src/components/club/ClubCard.tsx Potential Tailwind typo affecting the image border styling.
src/app/studymaterial/page.tsx Text contains multiple spelling errors.
src/app/lost/page.tsx Text includes typographical errors in comments/documentation.
src/app/login/newUser/page.tsx Spelling mistakes in the new user instructions.
src/app/hostel/page.tsx Informal text with typos in the hostel page description.
src/app/expanse/page.tsx Typos and spelling mistakes in the expense tracker description.
src/app/complaint/page.tsx Numerous typos in the complaint page copy.
src/app/club/[slug]/page.tsx Unnecessary asynchronous destructuring of params.
src/app/attendence/page.tsx Spelling errors in the attendance page description.
src/app/admin/page.tsx Spelling errors in the admin page description.
Comments suppressed due to low confidence (1)

src/components/club/ClubData.ts:44

  • The club entry for 'Mulearn' uses the slug 'uuu', which seems inconsistent; consider using a more descriptive and consistent slug.
    slug: "uuu",

Comment thread src/lib/firebase/auth.ts
throw new Error('Google sign-in failed');
}

// Restrict login to only emails from "gecskp.ac.in"
Copy link

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The comment restricting login emails appears twice with similar wording; consider removing the redundant comment for clarity.

Suggested change
// Restrict login to only emails from "gecskp.ac.in"

Copilot uses AI. Check for mistakes.
Comment on lines +8 to +12
setCurrentDay((prev) => (prev === 4 ? 0 : prev + 1));
};

const prevDay = () => {
setCurrentDay((prev) => (prev === 0 ? 4 : prev - 1));
Copy link

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a hardcoded value (4) for day limits may lead to maintenance issues; consider using timetableData.length - 1 instead.

Suggested change
setCurrentDay((prev) => (prev === 4 ? 0 : prev + 1));
};
const prevDay = () => {
setCurrentDay((prev) => (prev === 0 ? 4 : prev - 1));
setCurrentDay((prev) => (prev === timetableData.length - 1 ? 0 : prev + 1));
};
const prevDay = () => {
setCurrentDay((prev) => (prev === 0 ? timetableData.length - 1 : prev - 1));

Copilot uses AI. Check for mistakes.
return (
<Link href={`/club/${club.slug}`}>
<div className="bg-white rounded-3xl border-2 border-black hover:bg-gray-200 transition h-[300px] flex flex-col">
<img src={club.image} alt={club.name} className="w-full h-40 object-cover rounded-t-3xl border-b border-bottom-width-2px;" />
Copy link

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The class 'border-bottom-width-2px;' does not follow Tailwind CSS conventions; consider replacing it with 'border-b-2' or the appropriate Tailwind class.

Suggested change
<img src={club.image} alt={club.name} className="w-full h-40 object-cover rounded-t-3xl border-b border-bottom-width-2px;" />
<img src={club.image} alt={club.name} className="w-full h-40 object-cover rounded-t-3xl border-b border-b-2" />

Copilot uses AI. Check for mistakes.
Comment on lines +5 to +13
in this page we need folder like strucutre basically you will dynamic slect the folder basically if there cse mech
then slect cse the website should autoamtically all the folder inside the cse folder like taht
then
-2019 and 2024 schema
-deptmarntent
-sem
-subject
-notebook,textbook,question paper,notes,syllabus,previous year question paper,lab manual,lab record,lab experiment
-module wise or quesiton year wise questions
Copy link

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are several typos in this line (e.g., 'strucutre', 'slect', 'cse mech'); please correct these spelling mistakes for clear documentation.

Suggested change
in this page we need folder like strucutre basically you will dynamic slect the folder basically if there cse mech
then slect cse the website should autoamtically all the folder inside the cse folder like taht
then
-2019 and 2024 schema
-deptmarntent
-sem
-subject
-notebook,textbook,question paper,notes,syllabus,previous year question paper,lab manual,lab record,lab experiment
-module wise or quesiton year wise questions
In this page, we need a folder-like structure. Basically, you will dynamically select the folder. For example, if there are folders for CSE or Mechanical,
then select CSE. The website should automatically display all the folders inside the CSE folder, like that.
Then:
- 2019 and 2024 schema
- department
- semester
- subject
- notebook, textbook, question paper, notes, syllabus, previous year question paper, lab manual, lab record, lab experiment
- module-wise or question-year-wise questions

Copilot uses AI. Check for mistakes.
Comment thread src/app/lost/page.tsx
@@ -1,6 +1,10 @@
//in this we show lost and found items, with a toggle to switch between lost and found items, and a floating button to add new items.
// only implement lost not found items temperoilaily
Copy link

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are spelling errors such as 'temperoilaily' in the comments; please fix these typos to improve clarity.

Suggested change
// only implement lost not found items temperoilaily
// only implement lost not found items temporarily

Copilot uses AI. Check for mistakes.
Comment thread src/app/expanse/page.tsx
Comment on lines +5 to +7
in this we are adding a expanse tracker remeber it is fro mobile user are mainly
so it should be easy to use
mainly it is for studnet to know how much they spent in a month year
Copy link

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are several spelling errors (e.g., 'expanse', 'remeber', 'fro mobile user are mainly'); please correct these errors to ensure the text is clear and professional.

Suggested change
in this we are adding a expanse tracker remeber it is fro mobile user are mainly
so it should be easy to use
mainly it is for studnet to know how much they spent in a month year
In this, we are adding an expense tracker. Remember, it is for mobile users mainly,
so it should be easy to use.
Mainly, it is for students to know how much they spent in a month or year.

Copilot uses AI. Check for mistakes.
In this dynamic page, when you click any bus button, the UI/UX for all bus locations remains the same.
We use a dynamic page system so that clicking on, for example, the "Bus 1" button redirects here,
but the displayed content updates to show the respective bus's location.
the most importnetn thing is it need to be annoynmous but the suer who posted it should be able to delete or obivoulsy admin need to able to dlete it as well
Copy link

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line contains multiple typos (such as 'importnetn', 'annoynmous', 'suer', 'obivoulsy', 'dlete'); please correct them for clear communication.

Suggested change
the most importnetn thing is it need to be annoynmous but the suer who posted it should be able to delete or obivoulsy admin need to able to dlete it as well
the most important thing is it needs to be anonymous, but the user who posted it should be able to delete it, or obviously, the admin needs to be able to delete it as well

Copilot uses AI. Check for mistakes.
Comment thread src/app/club/[slug]/page.tsx
Comment on lines +5 to +6
basically this is a page where the user can see their attendance not puttin green if they were present
but rather it is made ot so they can see how many classes they have missed
Copy link

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are spelling issues in this line (e.g., 'puttin', 'ot'); please revise the text to clearly convey the intended functionality.

Suggested change
basically this is a page where the user can see their attendance not puttin green if they were present
but rather it is made ot so they can see how many classes they have missed
basically this is a page where the user can see their attendance not putting green if they were present
but rather it is made out so they can see how many classes they have missed

Copilot uses AI. Check for mistakes.
Comment thread src/app/admin/page.tsx
In this dynamic page, when you click any bus button, the UI/UX for all bus locations remains the same.
We use a dynamic page system so that clicking on, for example, the "Bus 1" button redirects here,
but the displayed content updates to show the respective bus's location.
admin lost where they can edit delete as well
Copy link

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text 'admin lost where they can edit delete as well' contains typos and is unclear; please correct the wording for clarity.

Suggested change
admin lost where they can edit delete as well
Admin page: Manage, edit, and delete items.

Copilot uses AI. Check for mistakes.
@shadil-rayyan shadil-rayyan merged commit 29d7fd1 into CodeCompasss:club Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants