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

Organisation Landing Page to pull data from API #147

Open
kanwalnainsingh opened this issue Jan 6, 2021 · 4 comments
Open

Organisation Landing Page to pull data from API #147

kanwalnainsingh opened this issue Jan 6, 2021 · 4 comments
Labels
enhancement New feature or request front-end web-ui good first issue Good for newcomers reactjs
Milestone

Comments

@kanwalnainsingh
Copy link
Owner

kanwalnainsingh commented Jan 6, 2021

Current State

At present, when user continue as organization and land here https://www.bookopendesk.com/organisation/
Data rendered in screen for site and floors are hardcoded.

image

Requirement

Change current hardcoding of sites and floor details.
In order to achieve this UI will call api /organisation/{orgId}/sites to retrieve all details for orgId passed. https://www.bookopendesk.com/organisation/{orgId}

Response structure would be like below.

{
"orgId": "string",
"id": "string",
"name": "string",
"location": "string",
"floors": [
{
"floorId": "string",
"name": "string",
"openDesk": "string",
"reservedDesk": "string"
}
]
}

@kanwalnainsingh kanwalnainsingh added enhancement New feature or request front-end web-ui good first issue Good for newcomers reactjs labels Jan 6, 2021
@kanwalnainsingh kanwalnainsingh added this to the HelloOpenDesk milestone Jan 6, 2021
@rajudevolla
Copy link

Hi @kanwalnainsingh I would like to work on this issue. Please assign it to me.

@kanwalnainsingh
Copy link
Owner Author

@rajudevolla you can start this one, I will assign

@rajudevolla
Copy link

@kanwalnainsingh , current information being shown as mutiles sites with each site having no of Floors, total desks, opendesk and location. But the API response having multiple floors for orgID. we just need to change hard coding to binding from API right? In this i think API response should as below.

{
"orgId": "string",
"id": "string",
"name": "string",

"sites": [
{
"siteId": "string",
"name": "string",
"floor":number,
"location":"string",
"openDesk": "string",
"reservedDesk": "string"
}
]
}

Please confirm.

@kanwalnainsingh
Copy link
Owner Author

@rajudevolla you will call organisation service which will below response.

[
{
"orgId": "string",
"companyName": "string",
"city": "string",
"headQuarters": "string",
"sites": [
{
"orgId": "string",
"id": "string",
"name": "string",
"location": "string",
"floors": [
{
"floorId": "string",
"name": "string",
"openDesk": "string",
"reservedDesk": "string"
}
]
}
]
}
]

https://bookopendesk.com/api/organisation-service/swagger-ui/index.html?configUrl=/api/organisation-service/v3/api-docs/swagger-config#/organisation-controller/getOrganisationList

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request front-end web-ui good first issue Good for newcomers reactjs
Projects
None yet
Development

No branches or pull requests

2 participants