{"id":22218226,"url":"https://github.com/hellogustav/coding-task","last_synced_at":"2025-09-09T23:24:38.020Z","repository":{"id":146642464,"uuid":"302670874","full_name":"hellogustav/coding-task","owner":"hellogustav","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-10T13:23:56.000Z","size":719,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-25T07:17:32.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellogustav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-09T14:48:43.000Z","updated_at":"2020-10-10T16:03:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cdde87b-d366-4f7a-98b7-7a16e781334a","html_url":"https://github.com/hellogustav/coding-task","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hellogustav/coding-task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellogustav%2Fcoding-task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellogustav%2Fcoding-task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellogustav%2Fcoding-task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellogustav%2Fcoding-task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellogustav","download_url":"https://codeload.github.com/hellogustav/coding-task/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellogustav%2Fcoding-task/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266231762,"owners_count":23896472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T22:19:40.090Z","updated_at":"2025-07-21T03:02:51.876Z","avatar_url":"https://github.com/hellogustav.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Task Description\n\nIn Gustav, whenever a job is created, it can be shared with vendors who can then supply candidates for the job.\nThere are multiple scopes that can be selected for job sharing:\n- global - the job becomes a part of global marketplace and is visible to every vendor\n- internal - job is not visible outside of the company that it belongs to\n- all vendors\n- individual vendor companies\n- vendor circles - these are used to group vendor partners; sharing job with a circle makes it visible to every vendor who belongs to it\n- combination of vendors and circles\n\nYour task is to buld a React component that will allow the user to define the sharing settings for a job.\nPlease focus on building the functionality. Tests are not required and the designs don't need to be pixel-perfect.\n\nYou will need to use the following API endpoints to fetch the data:\n- https://mock.hellogustav.com/vendors - returns a list of all available vendors; every vendor has a name and id\n- https://mock.hellogustav.com/circles - returns a list of circles; the circle has id, name and a list of vendor ids that belong to it\n\nThe changes should be submitted to the following endpoint:\n- https://mock.hellogustav.com/jobs using POST request;\n  The request body should be a JSON in following format:\n  ```js\n  {\n    global: false,\n    internal: false,\n    vendors: [\"uwqqN4qMJ4RAx6WLyEBGAe\", \"NeZNQJxeMkCHCpiPK2XpDA\"],\n    circles: [\"PadPa7JHRILRDMxYfGexZp\"]\n  }\n  ```\n\nYou can use following components:\n- `Icon`, which accepts two props:\n  - `color` (string)\n  - `icon` (one of the following: ['globe', 'vendors', 'cicle', 'internal', 'clock', 'warning'])\n- `Logo`, which accepts two props:\n  - `name` (string) - the name of a company\n  - `size` (one of the following: ['large', 'small'])\n- `InfoBox`, which requires you to pass:\n  - `text` (string)\n  - `icon` (one of the following: ['globe', 'vendors', 'cicle', 'internal', 'clock', 'warning'])\n- `Toggle`, for selecting the sharing scope (example of its usage can be found in the `App` component)\n\nSelecting `Global` or `Internal` scope should set appropriate flag to `true` and both lists (`vendors` and `circles`) should be empty.\n\nOne the `Select vendors` tab, the logic should be as follows:\n- left columns displays the \"All vendor partners\" item and a list of circles below it\n- selecting \"All vendor partners\" loads a list of all vendors (from the /vendors endpoint) in the middle column\n  - ticking the checkbox next to a vendor's name adds them to a list of individual vendors\n- selecting a circle on in the left column loads a list of vendors who belong to that circle into the middle column\n  - ticking the checkbox next to a vendor's name adds them to a list of individual vendors\n  - clicking on the \"Select entire circle\" adds its id to the `circles` list\n- right columns shows the summary\n\n\n\nThis project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `yarn start`\n\nRuns the app in the development mode.\u003cbr /\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr /\u003e\nYou will also see any lint errors in the console.\n\n### `yarn test`\n\nLaunches the test runner in the interactive watch mode.\u003cbr /\u003e\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `yarn build`\n\nBuilds the app for production to the `build` folder.\u003cbr /\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr /\u003e\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `yarn eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n### Code Splitting\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting\n\n### Analyzing the Bundle Size\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size\n\n### Making a Progressive Web App\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app\n\n### Advanced Configuration\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration\n\n### Deployment\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/deployment\n\n### `yarn build` fails to minify\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellogustav%2Fcoding-task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellogustav%2Fcoding-task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellogustav%2Fcoding-task/lists"}