Skip to content
Open

Bugs #182

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
94cc866
animations~
kevwu27 May 30, 2024
039372e
more small changes to animations
kevwu27 May 30, 2024
943c71e
text changes
kevwu27 Oct 3, 2024
71037cd
adding minor option
shreyaNagunuri Oct 3, 2024
1f1fefb
got rid of some warnings
kevwu27 Oct 3, 2024
5cdb318
Merge branch 'Will-Hsu:main' into feature/shreyaNagunuri/UpdateMinorO…
shreyaNagunuri Oct 3, 2024
233359c
fixed event card, rewards hover
kevwu27 Oct 9, 2024
01b47d6
Merge pull request #4 from CSES-UCSD/feature/shreyaNagunuri/UpdateMin…
CSES-UCSD Oct 10, 2024
3b03715
Merge branch 'main' into feature/Kevin-Wu/FE-HomeAndAboutAnimation
CSES-UCSD Oct 15, 2024
87044b6
Merge pull request #5 from CSES-UCSD/feature/Kevin-Wu/FE-HomeAndAbout…
CSES-UCSD Oct 15, 2024
9c90b02
adding board photos and remove innovate org
shreyaNagunuri Oct 31, 2024
6a02b3c
Merge pull request #7 from CSES-UCSD/feature/Kevin-Wu/EventCardUI
CSES-UCSD Oct 31, 2024
bd4011b
updating board photos
shreyaNagunuri Oct 31, 2024
60ef08b
Added csesucsd.com to cors list
SithuSoe04 Oct 31, 2024
dd26449
fixed alignment issues on login page
kevwu27 Nov 12, 2024
ce8e331
slight mobile/ipad fix
kevwu27 Nov 12, 2024
ef7b780
Update README.md
CSES-UCSD Nov 13, 2024
259fd1e
Update README.md
CSES-UCSD Nov 13, 2024
4c2cb61
Updated Mailchimp API Key
SithuSoe04 Nov 13, 2024
d3a1b09
Merge pull request #13 from CSES-UCSD/bug/backend/mailchimp
CSES-UCSD Nov 13, 2024
36bc8a1
Merge pull request #9 from CSES-UCSD/feature/shreyaNagunuri/UpdateBoa…
CSES-UCSD Nov 13, 2024
3a2419e
Merge pull request #12 from CSES-UCSD/feature/KevinWu/FE/LoginAlignme…
CSES-UCSD Nov 13, 2024
4ae3ede
mobile formatting for the about page
ganeshkumar321 Nov 14, 2024
5c69696
Update README.md
SithuSoe04 Nov 19, 2024
1f9fce3
updated set up guide
Nov 20, 2024
b6fb499
Merge remote-tracking branch 'origin/main' into feature/ganeshkumar32…
ganeshkumar321 Nov 20, 2024
ac332c3
Merge remote-tracking branch 'origin/main' into feature/ganeshkumar32…
ganeshkumar321 Nov 27, 2024
cb1b4c8
Merge pull request #14 from CSES-UCSD/feature/ganeshkumar321/FE-mobil…
ganeshkumar321 Nov 27, 2024
dd1292a
Revert "Feature/ganeshkumar321/fe mobile formatting"
nikhilitis Nov 27, 2024
1b4df65
Merge pull request #15 from CSES-UCSD/revert-14-feature/ganeshkumar32…
nikhilitis Nov 27, 2024
121c0d4
fixed small syntax errors (semicolons and single-quotes)
Nov 27, 2024
f8aba1d
fixed some frontend mobile issues
ganeshkumar321 Nov 28, 2024
9c852c8
Merge pull request #16 from CSES-UCSD/bug/nikhilitis/BE-CodeCleanup
SithuSoe04 Dec 4, 2024
438fde2
Added Template Website for the Communities
lucashlaing Dec 8, 2024
db10a91
got rid of tabs for the teams, adjusted the page buttons to be closer…
lucashlaing Jan 13, 2025
6bf0cf1
Merge pull request #17 from CSES-UCSD/feature/ganeshkumar321/FE-mobil…
nikhilitis Jan 15, 2025
0169a29
Corrected Rahul's title
SithuSoe04 Jan 21, 2025
c897cf0
Merge pull request #19 from CSES-UCSD/feature/SithuSoe04/FE-TeamUpdate
nikhilitis Jan 22, 2025
15cc599
added extra details on how many points behind
lucashlaing Jan 29, 2025
3513e72
Fixed minor margin issues
SithuSoe04 Jan 29, 2025
3564df7
Temporarily added Shruti and Himansi as admins
SithuSoe04 Jan 29, 2025
017ed22
Merge pull request #21 from CSES-UCSD/feature/SithuSoe04/FE-AuthConte…
nikhilitis Jan 29, 2025
9f2ae89
Merge pull request #20 from CSES-UCSD/feature/SithuSoe04/FE-AboutUpdate
nikhilitis Jan 29, 2025
89ab64e
fixed button alignment for meet the team
lucashlaing Jan 30, 2025
3237153
Merge pull request #18 from CSES-UCSD/feature/lucashlaing-OscarKhaing…
SithuSoe04 Jan 30, 2025
d2ae77b
fixed variable names
lucashlaing Feb 4, 2025
1f800d6
buttonchange
shrutisenthilram Feb 18, 2025
9758cd3
added inital descriptions for opensource and website
lucashlaing Feb 18, 2025
7fee98f
minor spell checks across site; no logic fix yet
OscarKhaing Feb 19, 2025
6a7096e
fixed logic bug in TypeWriter.tsx
OscarKhaing Feb 19, 2025
f58a7b1
finished meet the team and slightly edited projects grid structure
lucashlaing Feb 25, 2025
e7f01ce
Merge pull request #25 from CSES-UCSD/bug/shrutisenthilram/FE-Opportu…
nikhilitis Feb 26, 2025
4b7b20d
Merge pull request #27 from CSES-UCSD/bug/OscarKhaing/spelling-check-…
nikhilitis Feb 26, 2025
8846af7
Merge branch 'main' of https://github.com/CSES-UCSD/cses_webdev into …
lucashlaing Feb 26, 2025
6c99d3e
added in opensource team images
lucashlaing Feb 26, 2025
015cc58
Merge branch 'main' of https://github.com/CSES-UCSD/cses_webdev into …
lucashlaing Feb 26, 2025
f147fa5
Merge pull request #22 from CSES-UCSD/feature/lucashlaing/FE-UpdateLe…
SithuSoe04 Feb 26, 2025
710a33c
fixed logo and missing people on opensource page
lucashlaing Mar 4, 2025
b7f12d7
added in about images
lucashlaing Mar 9, 2025
35da5dd
added in eacc and modifed meet the team buttons
lucashlaing Apr 10, 2025
3a1a15a
changed eacc to E/Eacc
lucashlaing Apr 10, 2025
b09932c
Merge pull request #28 from CSES-UCSD/feature/lucashlaing/OpensourceW…
SithuSoe04 Apr 10, 2025
104066c
added in missing member
lucashlaing Apr 16, 2025
01b55b1
Merge pull request #29 from CSES-UCSD/feature/lucashlaing/OpensourceW…
SithuSoe04 Apr 17, 2025
011cb26
Initiatives Page
gavinlin24 Aug 15, 2025
70874e6
made changes to about page to match the figma design
himansig7 Aug 18, 2025
5a6958d
Mobile Responsiveness
gavinlin24 Aug 19, 2025
f345a2a
added most of the pages for the about page
himansig7 Aug 24, 2025
6b430a8
Header and Footer done
mk7652 Aug 25, 2025
5486e40
Fixed footer mobile issue
mk7652 Aug 25, 2025
cd3c757
Fixed footer mobile issue
mk7652 Aug 25, 2025
b5af8c0
New Events Page
gavinlin24 Aug 25, 2025
d6fc836
Merge branch 'main' into feature/gavinlin24/FE-Initiatives
gavinlin24 Aug 25, 2025
081b0c6
Event styling + display order
gavinlin24 Aug 28, 2025
1e87d60
Add files via upload
mwmaddox Sep 8, 2025
cce474f
Add files via upload
mwmaddox Sep 8, 2025
1eb4a87
Update App.tsx
mwmaddox Sep 8, 2025
fcdd8d0
Merge pull request #30 from CSES-UCSD/feature/gavinlin24/FE-Initiatives
SithuSoe04 Sep 8, 2025
b7482a5
Made header sticky
mk7652 Sep 8, 2025
9665a22
Merge pull request #31 from CSES-UCSD/feature/mk7652/header-footer
SithuSoe04 Sep 8, 2025
03426f3
Update About.tsx
himansig7 Sep 11, 2025
e3a9d1f
finished stylistic updates to match figma
himansig7 Sep 11, 2025
e4ed907
homepage
shrutisenthilram Sep 11, 2025
e84facd
Upcoming Events
gavinlin24 Sep 13, 2025
3803204
Update Sponsorships.css
mwmaddox Sep 15, 2025
9661ee3
Update Sponsorships.tsx
mwmaddox Sep 15, 2025
4586073
Refactored code
SithuSoe04 Sep 16, 2025
ae434a8
fixed header and footer images
lucashlaing Sep 17, 2025
b73dd99
Merge pull request #36 from CSES-UCSD/bugfix/lucas/header_footer
CSES-UCSD Sep 17, 2025
172aa47
Merge branch 'main' of https://github.com/CSES-UCSD/cses_webdev into …
lucashlaing Sep 17, 2025
1598527
Added Event Type
gavinlin24 Sep 19, 2025
abc1062
Update frontend filtering
gavinlin24 Sep 19, 2025
0504d7c
Fix carousel arrow display
gavinlin24 Sep 19, 2025
14a7ca1
Finalized about page
SithuSoe04 Sep 20, 2025
8bbbb94
Merge pull request #37 from CSES-UCSD/feature/SithuSoe04/modified-abo…
CSES-UCSD Sep 20, 2025
a1dea40
Merge pull request #33 from mwmaddox/feature/mwmaddox/Sponsorships
SithuSoe04 Sep 20, 2025
2b9b868
fixed home page and some navbar + footer
lucashlaing Sep 20, 2025
49aa80b
Updated member list
SithuSoe04 Sep 20, 2025
e5c8544
Merge branch 'main' of https://github.com/CSES-UCSD/cses_webdev into …
lucashlaing Sep 20, 2025
64cbc1b
Merge pull request #38 from CSES-UCSD/feature/SithuSoe04/modified-abo…
CSES-UCSD Sep 20, 2025
89d075f
Merge pull request #35 from CSES-UCSD/feature/shrutisenthilram/FE-hom…
lucashlaing Sep 20, 2025
b60c292
fixed bug
lucashlaing Sep 20, 2025
7d2e243
Merge pull request #39 from CSES-UCSD/bugfix/lucas/packagelockerror
CSES-UCSD Sep 20, 2025
9d1fb0b
Fixed sponsorship styling
SithuSoe04 Sep 20, 2025
250e936
Merge pull request #40 from CSES-UCSD/feature/SithuSoe04/FE-Sponsorsh…
CSES-UCSD Sep 20, 2025
75f06c8
Added some pictures
SithuSoe04 Sep 20, 2025
e315f8a
Merge pull request #41 from CSES-UCSD/feature/SithuSoe04/modified-abo…
CSES-UCSD Sep 20, 2025
22a7006
fixed buttons on home apge
lucashlaing Sep 20, 2025
3f995ed
made pranav president
lucashlaing Sep 20, 2025
9a12754
Merge pull request #42 from CSES-UCSD/bugfix/lucas/buttons
CSES-UCSD Sep 20, 2025
9302eeb
Removed membership page
SithuSoe04 Sep 20, 2025
37167e3
made events buttons responsive to scroll
lucashlaing Sep 20, 2025
c9e044d
Merge pull request #43 from CSES-UCSD/feature/SithuSoe04/modified-abo…
CSES-UCSD Sep 20, 2025
7e26eb5
Merge pull request #44 from CSES-UCSD/bugfix/lucas/buttons
CSES-UCSD Sep 20, 2025
20d4dae
added sponsorship package
lucashlaing Sep 20, 2025
7ed9bf3
Merge pull request #45 from CSES-UCSD/bugfix/lucas/sponsorship
CSES-UCSD Sep 20, 2025
7ccee14
New Events Page
gavinlin24 Aug 25, 2025
6d1c65c
Event styling + display order
gavinlin24 Aug 28, 2025
53bacf8
Upcoming Events
gavinlin24 Sep 13, 2025
af4f4a2
Added Event Type
gavinlin24 Sep 19, 2025
bbdae4d
Update frontend filtering
gavinlin24 Sep 19, 2025
d22f8a3
Fix carousel arrow display
gavinlin24 Sep 19, 2025
95aedd4
Merge branch 'feature/gavinlin24/BE-Events' of https://github.com/CSE…
gavinlin24 Sep 20, 2025
2a9b294
fix past events filter
gavinlin24 Sep 20, 2025
4484e05
Past Events Carousel + Event Card Styling
gavinlin24 Sep 25, 2025
078badb
Updated member list
SithuSoe04 Sep 20, 2025
9124342
fixed bug
lucashlaing Sep 20, 2025
24a89f7
Fixed sponsorship styling
SithuSoe04 Sep 20, 2025
45b7731
Added some pictures
SithuSoe04 Sep 20, 2025
40fb204
fixed buttons on home apge
lucashlaing Sep 20, 2025
220f6be
made pranav president
lucashlaing Sep 20, 2025
8869863
Removed membership page
SithuSoe04 Sep 20, 2025
51da7f7
made events buttons responsive to scroll
lucashlaing Sep 20, 2025
84ead98
added sponsorship package
lucashlaing Sep 20, 2025
417a0d9
updatedwhereweare
shrutisenthilram Sep 25, 2025
669525f
removed some info
SithuSoe04 Sep 29, 2025
19f6def
Merge pull request #47 from CSES-UCSD/feature/shrutisenthilram/FE-Whe…
SithuSoe04 Sep 29, 2025
0eb69c5
FIx Events Display
gavinlin24 Sep 29, 2025
0e1166e
Fix Card Alignment
gavinlin24 Sep 30, 2025
323c599
Merge pull request #46 from CSES-UCSD/feature/gavinlin24/BE-Events
SithuSoe04 Sep 30, 2025
0e8b6b8
added 2 events
lucashlaing Sep 30, 2025
71eafdf
comment out login
lucashlaing Sep 30, 2025
b93af31
Merge pull request #48 from CSES-UCSD/fix/lucas/add_events
CSES-UCSD Sep 30, 2025
c26a7db
Updated font size
SithuSoe04 Oct 1, 2025
a282699
Updated font size
SithuSoe04 Oct 1, 2025
debc27e
Merge pull request #49 from CSES-UCSD/feature/gavinlin24/BE-Events
CSES-UCSD Oct 1, 2025
cca4096
Modified event type to optional
SithuSoe04 Oct 2, 2025
e1a07aa
Merge pull request #50 from CSES-UCSD/feature/gavinlin24/BE-Events
CSES-UCSD Oct 2, 2025
24a4c2f
Modified node version to be used in render
SithuSoe04 Oct 2, 2025
ffdfba4
Merge pull request #52 from CSES-UCSD/feature/gavinlin24/BE-Events
CSES-UCSD Oct 2, 2025
2cc015e
added in all sponsors
lucashlaing Oct 7, 2025
38f063c
Merge pull request #53 from CSES-UCSD/fix/lucas/fix_sponsors
CSES-UCSD Oct 7, 2025
4f29b26
fixed logos and added applications
lucashlaing Oct 10, 2025
85287bc
Merge pull request #54 from CSES-UCSD/fix/lucas/add_apps
CSES-UCSD Oct 10, 2025
6fa97c1
done
mk7652 Oct 10, 2025
f9fce65
fixed google logo
lucashlaing Oct 19, 2025
6a49d0e
Merge pull request #56 from CSES-UCSD/small_fixes
CSES-UCSD Oct 19, 2025
bb91cdc
added images and links
lucashlaing Oct 31, 2025
2b923f4
Merge branch 'main' into mk7652/Open_Source_Community_Page
CSES-UCSD Oct 31, 2025
33b5082
Merge pull request #55 from CSES-UCSD/mk7652/Open_Source_Community_Page
CSES-UCSD Oct 31, 2025
2e469e7
fixed bugs
lucashlaing Oct 31, 2025
f627796
yes
lucashlaing Oct 31, 2025
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
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@
2. Clone the repository on the `main` branch and open the project in VSCode.
3. Install VSCode extensions Eslint and Prettier (for linting and formatting).

## FrontEnd

3. Go to the `project/frontend` directory.
4. Run `npm install` to install all the node packages.
5. Run `npm start` to run the React App and check if you can see the rendered site at http://localhost:3000/
## Add .env files
4. Ask Nikhil or Sithu for the contents of these files, which you will add to your local repository.

## BackEnd

6. Go to the `project/backend` directory.
7. Run `npm install` to install all the node packages.
8. Run `npm start` to start the backend server and check there is no error in the terminal.
9. Make a copy of the `.env.example` file and rename it `.env`.
5. Go to the `project/backend` directory.
6. Run `npm install` to install all the node packages.
7. Run `npm start` to start the backend server and check there is no error in the terminal.

## FrontEnd

8. Go to the `project/frontend` directory.
9. Run `npm install` to install all the node packages.
10. Run `npm start` to run the React App and check if you can see the rendered site at http://localhost:3000/

## Development

Expand Down
2 changes: 1 addition & 1 deletion backend/controllers/emailSubscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const apikey = process.env.MAILCHIMP_API_KEY;

mailchimp.setConfig({
apiKey: apikey,
server: "us13",
server: "us12",
});

// Audience ID: 968cfc7373
Expand Down
7 changes: 7 additions & 0 deletions backend/controllers/eventController.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const eventList = asyncHandler(async (req, res) => {
instagram_link,
code,
qrCode,
event_type,
} = event;
return {
_id,
Expand All @@ -68,6 +69,7 @@ export const eventList = asyncHandler(async (req, res) => {
instagram_link,
code,
qrCode,
event_type,
};
});

Expand Down Expand Up @@ -134,6 +136,11 @@ export const eventCreate = [

throw new Error('Instagram link must be a valid URL.');
}),
body('event_type')
.optional()
.customSanitizer((val) => val.trim())
.isIn(['General', 'Dev', 'Open Source', 'Innovate'])
.withMessage('Event type must be one of: General, Dev, Open Source, Innovate'),

asyncHandler(async (req, res) => {
// Extract the validation errors from a request.
Expand Down
26 changes: 26 additions & 0 deletions backend/controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,31 @@ export const getUserRank = asyncHandler(async (req, res) => {
}
});

// Gets the points of the User right above current User (more points)
// (i.e return 600 if B=600pts and A=500pts)
export const getBeforeUserPoints = asyncHandler(async (req, res) => {
const { email } = req.params;
try {
// Find all users sorted by points
const allUsers = await User.find()
.sort({ points: -1 })
.select('name email profilePicture points')
.exec();
// Get the index of the current user in the sorted list
const currentUserIndex = allUsers.findIndex(user => user.email === email);
var beforeUserIndex = currentUserIndex - 1;
while(allUsers[currentUserIndex].points == allUsers[beforeUserIndex].points){
beforeUserIndex--;
}
const beforeUsersPoints = allUsers[beforeUserIndex].points;

res.status(200).json(beforeUsersPoints);
} catch (error) {
console.error('Error fetching user ranks: ', error);
res.status(500).json({ message: 'Server error' });
}
});


// POST request for creating new event entries for a user.
export const userEventsUpdate = asyncHandler(async (req, res) => {
Expand Down Expand Up @@ -320,6 +345,7 @@ export default {
userEventsUpdate,
getTopMembers,
getUserRank,
getBeforeUserPoints,
redeemSmall,
redeemMedium,
redeemLarge,
Expand Down
5 changes: 3 additions & 2 deletions backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import dotenv from 'dotenv';
import connectDB from './database/connect-db.js';
// import testDatabaseConnection from './database/db-test.js';
import connectMailchimp from './mailchimp/connect-mailchimp.js';
import { addContacts, getContacts } from './mailchimp/contacts.js';
// import { addContacts, getContacts } from './mailchimp/contacts.js';

// import routes
import eventRoutes from './routes/event.js';
Expand All @@ -20,6 +20,7 @@ dotenv.config();

app.use(bodyParser.json({ limit: '30mb', extended: true }));
app.use(bodyParser.urlencoded({ limit: '30mb', extended: true }));

app.use(cors());

const PORT = process.env.PORT || 5000;
Expand All @@ -41,7 +42,7 @@ app.use(`${baseApi}`, eventRoutes);
app.use(`${baseApi}/subscribers`, subscriptionRoutes);
app.use(`${baseApi}/users`, userRoutes);

var server = app.listen(PORT, function () {
var server = app.listen(PORT, '0.0.0.0', function () {
var port = server.address().port;
console.log('Example app listening at http://localhost:%s', port);
});
2 changes: 1 addition & 1 deletion backend/mailchimp/connect-mailchimp.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const apikey = process.env.MAILCHIMP_API_KEY;

mailchimp.setConfig({
apiKey: apikey,
server: "us13",
server: 'us12',
});

async function connectMailchimp() {
Expand Down
6 changes: 3 additions & 3 deletions backend/mailchimp/contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const apikey = process.env.MAILCHIMP_API_KEY;

mailchimp.setConfig({
apiKey: apikey,
server: "us13",
server: 'us12',
});

// Audience ID: 968cfc7373
Expand All @@ -19,7 +19,7 @@ const addContacts = async () => {
json: (data) => console.log(data)
})
});
console.log(data)
console.log(data);
for (const email of data) {
const response = await mailchimp.lists.addListMember('968cfc7373', {
email_address: email,
Expand All @@ -36,6 +36,6 @@ const addContacts = async () => {
const getContacts = async() => {
const response = await mailchimp.lists.getListMembersInfo('968cfc7373');
console.log(response);
}
};

export { addContacts, getContacts };
6 changes: 6 additions & 0 deletions backend/models/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ const eventSchema = new Schema({
instagram_link: String,
code: { type: String },
qrCode: { type: String },
event_type: {
type: String,
enum: ["General", "Dev", "Open Source", "Innovate"],
required: false,
default: "General",
},
});

// Export model
Expand Down
Loading