Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 Add Team API with Slack Integration
📋 Overview
This PR introduces a new Team API v2 that provides team member data for both web and mobile applications, replacing the previous hardcoded approach with a unified API-driven solution. The implementation includes full Slack integration alongside existing LinkedIn and Twitter social links.
✨ Features Added
🔧 New API Endpoint
GET /api/v2/team- Returns complete team member information💬 Slack Integration
bxl-slackicon🎯 Web Integration
🏗️ Technical Changes
📁 Files Added
Sources/App/Features/Team/Models/TeamResponse.swift- API response modelsSources/App/Features/Team/Controllers/TeamAPIController.swift- Team API controller📝 Files Modified
Sources/App/routes.swift- Added Team API v2 route registrationSources/App/Features/Home/HomeRouteController.swift- Updated to use Team APISources/App/Context/HomeContext.swift- Added slack field to TeamMember modelResources/Views/Team/_team.leaf- Added Slack icon display🗑️ Files Removed
Sources/App/Features/Home/TeamMembers.swift- Replaced by API approach📱 API Response Structure
{ "teamMembers": [ { "name": "Adam Rush", "role": "Founder and Host", "twitter": "https://twitter.com/Adam9Rush", "linkedin": "https://www.linkedin.com/in/swiftlyrush/", "slack": "https://swiftleedsworkspace.slack.com/archives/D05RK6AAV29", "imageURL": "/img/team/rush.jpg" } ] }🎨 UI Changes
Team Page Updates
Icon Implementation
📝 Mobile App Migration
Replace existing hardcoded team JSON with API call to:
The response structure includes all existing fields plus the new
slackfield.