Skip to content

Nt/1217 wire up meet the team#1251

Open
Tornio2 wants to merge 2 commits intomainfrom
nt/1217-wire-up-meet-the-team
Open

Nt/1217 wire up meet the team#1251
Tornio2 wants to merge 2 commits intomainfrom
nt/1217-wire-up-meet-the-team

Conversation

@Tornio2
Copy link
Contributor

@Tornio2 Tornio2 commented Feb 18, 2026

Meet the team page wired up with the backend

I added minimal backend changes (safe defaults with .get()) to handle existing database records that were missing the departments field. Without these changes, the GET endpoint returns 500 errors. The frontend is fully functional with these fixes.

Closes #1217

Copy link
Collaborator

@georginikolov7 georginikolov7 left a comment

Choose a reason for hiding this comment

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

Great Job! Just a couple of minor things I did not tell you in advance.

"avatar_url": doc["avatar_url"],
"departments": doc["departments"],
"social_links": doc["social_links"],
"departments": doc.get("departments", []),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Great change!

created_at: string;
updated_at: string;
name: string;
member_type: 'member' | 'admin';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Fuck me totally forgot to tell you that member_type should not be sent in the request, nor visible in the form. It is for the BE to distinguish admins and non admins. Role changing will have a different interface

// TypeScript interface for the backend response
export interface BackendHubMember {
id: string;
created_at: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unless you use these somewhere you can drop created at and updated at

.min(2, { message: 'Name must be at least 2 characters' })
.max(50, { message: 'Name must be less than 50 characters' }),
// TypeScript interface for the backend response
export interface BackendHubMember {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Also because this will also be used on the main page's meet the team section, you can rename the interfaced to just HubMember and move it to /web/src/types

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.

Wire up Admin Meet The Team Page with BE

2 participants

Comments