ever-co / ever-teams

Ever® Teams™ - Open Work and Project Management Platform - https://ever.team
https://ever.team
GNU Affero General Public License v3.0
282 stars 47 forks source link

Settings | Personal - add Positions v.2 #878

Open KostyaEver opened 1 year ago

KostyaEver commented 1 year ago

Update Personal user Settings

As a user, I want to set and update my position from predefined options so that my role is accurately reflected in the platform

Description

The Position field enhancement allows users to specify their role within the organization through a standardized dropdown menu in the user settings. This feature supports organizational clarity, improves user categorization, and enables role-based analytics and workflows.

Flow

Acceptance Criteria:

Additional Information

Screenshot at May 19 11-39-25

Technical

Currently, we don't have API to for this feature. We have to build/develop the API

Anishali2 commented 5 months ago

@rahul-rocket Do we have the API for this?

evereq commented 5 months ago

@Anishali2 you can check it yourself, e.g. in Gauzy UI you can see we do have "Position" dropdown and using Chrome Dev Tool you can see what request / response we have to API etc

image

Anishali2 commented 5 months ago

Ok Sir I'll check

Anishali2 commented 5 months ago

@evereq @rahul-rocket API Details

method: GET URL: https://api.gauzy.co/api/organization-positions params: data: {"findInput":{"tenantId":"b545069e-48c8-44a2-bcb4-5699fd2013be","organizationId":"6c247b8d-5853-404a-b774-57d01620d9cf"}} headers: Authorization: Breaer ${token}

response:

{
    "items": [
        {
            "deletedAt": null,
            "id": "d55387c3-f50c-48d3-9c04-0aad2b2cf50c",
            "createdAt": "2023-10-10T10:03:48.517Z",
            "updatedAt": "2023-10-10T10:03:48.517Z",
            "isActive": true,
            "isArchived": false,
            "tenantId": "b545069e-48c8-44a2-bcb4-5699fd2013be",
            "organizationId": "6c247b8d-5853-404a-b774-57d01620d9cf",
            "name": "Software Engineer"
        }
    ],
    "total": 1
}