Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: team-dashboard #14

Merged
merged 6 commits into from
Jan 11, 2025
Merged

feat: team-dashboard #14

merged 6 commits into from
Jan 11, 2025

Conversation

mroihn
Copy link
Contributor

@mroihn mroihn commented Dec 9, 2024

GET : api/team

[
    {
        "id": "team1",
        "competitionId": "competition1",
        "name": "Team One",
        "joinCode": "joinCode1",
        "paymentProofMediaId": "media1",
        "isVerified": true,
        "verificationError": null,
        "createdAt": "2024-12-13T22:44:03.175Z",
        "updatedAt": null,
        "competition": {
            "id": "competition1",
            "title": "Competition One",
            "description": "Description for competition one",
            "maxParticipants": 100,
            "maxTeamMember": 5,
            "guidebookUrl": "http://example.com/guidebook1"
        }
    },
    {
        "id": "team2",
        "competitionId": "competition2",
        "name": "Team Two",
        "joinCode": "joinCode2",
        "paymentProofMediaId": "media2",
        "isVerified": false,
        "verificationError": "Payment proof missing",
        "createdAt": "2024-12-13T22:44:03.175Z",
        "updatedAt": null,
        "competition": {
            "id": "competition2",
            "title": "Competition Two",
            "description": "Description for competition two",
            "maxParticipants": 50,
            "maxTeamMember": 4,
            "guidebookUrl": "http://example.com/guidebook2"
        }
    }
]

GET : api/team/{teamId}

{
    "id": "team1",
    "competitionId": "competition1",
    "name": "Team One",
    "joinCode": "joinCode1",
    "paymentProofMediaId": "media1",
    "isVerified": true,
    "verificationError": null,
    "createdAt": "2024-12-13T22:44:03.175Z",
    "updatedAt": null,
    "teamMembers": [
        {
            "userId": "id1",
            "teamId": "team1",
            "role": "leader",
            "nisnMediaId": "media1",
            "kartuMediaId": "media2",
            "posterMediaId": "media3",
            "twibbonMediaId": "media4",
            "isVerified": true,
            "verificationError": null,
            "user": {
                "id": "id1",
                "email": "[email protected]",
                "fullName": "User One",
                "birthDate": "2000-01-01",
                "education": "s1",
                "entrySource": "Social Media",
                "instance": "Instance1",
                "phoneNumber": "1234567890",
                "idLine": "user1line",
                "idDiscord": "user1discord",
                "idInstagram": "user1insta",
                "consent": true,
                "createdAt": "2024-12-13T22:39:24.426Z",
                "updatedAt": null
            },
            "nisn": {
                "id": "media1",
                "creatorId": "id1",
                "name": "NISN Media 1",
                "bucket": "competition-registration",
                "type": "image",
                "url": "http://example.com/nisn1.jpg",
                "createdAt": "2024-12-01T03:00:00.000Z"
            },
            "kartu": {
                "id": "media2",
                "creatorId": "id2",
                "name": "Kartu Media 2",
                "bucket": "competition-registration",
                "type": "pdf",
                "url": "http://example.com/kartu2.pdf",
                "createdAt": "2024-12-01T04:00:00.000Z"
            },
            "poster": {
                "id": "media3",
                "creatorId": "id3",
                "name": "Poster Media 3",
                "bucket": "competition-registration",
                "type": "image",
                "url": "http://example.com/poster3.jpg",
                "createdAt": "2024-12-01T05:00:00.000Z"
            },
            "twibbon": {
                "id": "media4",
                "creatorId": "id4",
                "name": "Twibbon Media 4",
                "bucket": "competition-registration",
                "type": "image",
                "url": "http://example.com/twibbon4.jpg",
                "createdAt": "2024-12-01T06:00:00.000Z"
            }
        },
        {
            "userId": "id2",
            "teamId": "team1",
            "role": "member",
            "nisnMediaId": "media1",
            "kartuMediaId": "media2",
            "posterMediaId": "media3",
            "twibbonMediaId": "media4",
            "isVerified": false,
            "verificationError": "Invalid Kartu",
            "user": {
                "id": "id2",
                "email": "[email protected]",
                "fullName": "User Two",
                "birthDate": "1995-05-15",
                "education": "s2",
                "entrySource": "Referral",
                "instance": "Instance2",
                "phoneNumber": "0987654321",
                "idLine": "user2line",
                "idDiscord": "user2discord",
                "idInstagram": "user2insta",
                "consent": false,
                "createdAt": "2024-12-13T22:39:24.426Z",
                "updatedAt": null
            },
            "nisn": {
                "id": "media1",
                "creatorId": "id1",
                "name": "NISN Media 1",
                "bucket": "competition-registration",
                "type": "image",
                "url": "http://example.com/nisn1.jpg",
                "createdAt": "2024-12-01T03:00:00.000Z"
            },
            "kartu": {
                "id": "media2",
                "creatorId": "id2",
                "name": "Kartu Media 2",
                "bucket": "competition-registration",
                "type": "pdf",
                "url": "http://example.com/kartu2.pdf",
                "createdAt": "2024-12-01T04:00:00.000Z"
            },
            "poster": {
                "id": "media3",
                "creatorId": "id3",
                "name": "Poster Media 3",
                "bucket": "competition-registration",
                "type": "image",
                "url": "http://example.com/poster3.jpg",
                "createdAt": "2024-12-01T05:00:00.000Z"
            },
            "twibbon": {
                "id": "media4",
                "creatorId": "id4",
                "name": "Twibbon Media 4",
                "bucket": "competition-registration",
                "type": "image",
                "url": "http://example.com/twibbon4.jpg",
                "createdAt": "2024-12-01T06:00:00.000Z"
            }
        }
    ],
    "competition": {
        "id": "competition1",
        "title": "Competition One",
        "description": "Description for competition one",
        "maxParticipants": 100,
        "maxTeamMember": 5,
        "guidebookUrl": "http://example.com/guidebook1"
    }
}

@mroihn mroihn requested a review from fawwazabrials December 9, 2024 19:09
Copy link
Collaborator

@ValentinoTriadi ValentinoTriadi left a comment

Choose a reason for hiding this comment

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

@fawwazabrials fawwazabrials merged commit 23307a4 into develop Jan 11, 2025
1 check passed
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.

3 participants