{"id":22903567,"url":"https://github.com/ll782/pickle-stock-levels","last_synced_at":"2026-06-30T09:31:13.817Z","repository":{"id":266479666,"uuid":"593357288","full_name":"LL782/pickle-stock-levels","owner":"LL782","description":"Full stack developer coding assessment","archived":false,"fork":false,"pushed_at":"2023-04-05T16:47:19.000Z","size":494,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T14:44:30.944Z","etag":null,"topics":["software-craftsmanship","svg","tdd"],"latest_commit_sha":null,"homepage":"https://pickle-stock-levels.vercel.app/","language":"TypeScript","has_issues":false,"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/LL782.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":"2023-01-25T20:17:40.000Z","updated_at":"2023-04-05T16:41:35.000Z","dependencies_parsed_at":"2024-12-07T21:00:47.287Z","dependency_job_id":null,"html_url":"https://github.com/LL782/pickle-stock-levels","commit_stats":null,"previous_names":["ll782/pickle-stock-levels"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LL782/pickle-stock-levels","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LL782%2Fpickle-stock-levels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LL782%2Fpickle-stock-levels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LL782%2Fpickle-stock-levels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LL782%2Fpickle-stock-levels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LL782","download_url":"https://codeload.github.com/LL782/pickle-stock-levels/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LL782%2Fpickle-stock-levels/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34961543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["software-craftsmanship","svg","tdd"],"created_at":"2024-12-14T02:37:52.560Z","updated_at":"2026-06-30T09:31:13.796Z","avatar_url":"https://github.com/LL782.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## A coding assessment\nI wrote this over the course of a weekend as a coding exercise. All feedback is welcome.\n\nIt's a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app)\n\nVisit: [pickle-stock-levels.vercel.app](https://pickle-stock-levels.vercel.app/)\n\n### Interesting points include:\n\n- Genuine TDD - 99% of iterations were test driven\n- Micro commits - try reading it commit by commit from start to finish\n- Homemade SVGs - I wrote my own graph renderer and kept the markup pretty clean\n\n## Getting Started\n\n### Install dependencies and run dev server\n\n```bash\nnpm i\nnpm run dev\n\n# or\nyarn\nyarn dev\n\n# or\npnpm i\npnpm dev\n```\n\n### Explore the app\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser and you'll be redirected to the pickle eample\n\n#### Example routes:\n\n- Pickle example [/stock-level/pickle](http://localhost:3000/stock-level/pickle)\n- Non-pickle example [/stock-level/cheese](http://localhost:3000/stock-level/cheese)\n- Simple example [/stock-level/example](http://localhost:3000/stock-level/example)\n- API example [/api/v1/stock/pickle](http://localhost:3000/api/v1/stock/pickle)\n\n## Issues\n\n### Future considerations\n\n- Add simple e2e tests for happy path and 404\n- Prefer returning simple date strings from API and formatting dates in UI\n- Add visual regression test to main page (i.e. using [backstopJS](https://github.com/garris/BackstopJS))\n- Show item select on homepage and 404 pages\n- Return `allItems` from a separate API call e.g. `/api/v1/stock `\n  and remove `allItems` from `/api/v1/stock/[item]`\n- Consider breaking down `useChartVariables` into multiple hooks\n- Consider better coupling between `allItems` and `expectedItems` to avoid mismatches\n- Consider test coverage gaps (or just add tests if any bugs appear)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fll782%2Fpickle-stock-levels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fll782%2Fpickle-stock-levels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fll782%2Fpickle-stock-levels/lists"}