{"id":16172025,"url":"https://github.com/savanesoff/oregan-js-evaluation","last_synced_at":"2026-07-27T11:31:10.196Z","repository":{"id":219626244,"uuid":"749498467","full_name":"savanesoff/oregan-js-evaluation","owner":"savanesoff","description":"React JS Input Field implementation example built with vite/vitest","archived":false,"fork":false,"pushed_at":"2024-04-03T19:18:36.000Z","size":780,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-17T07:38:53.645Z","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/savanesoff.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":"2024-01-28T18:49:39.000Z","updated_at":"2024-06-12T17:54:52.000Z","dependencies_parsed_at":"2024-11-02T15:03:56.477Z","dependency_job_id":"5b54880f-0485-40a1-9f53-fd67f93a4954","html_url":"https://github.com/savanesoff/oregan-js-evaluation","commit_stats":null,"previous_names":["savanesoff/oregan-js-evaluation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/savanesoff/oregan-js-evaluation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savanesoff%2Foregan-js-evaluation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savanesoff%2Foregan-js-evaluation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savanesoff%2Foregan-js-evaluation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savanesoff%2Foregan-js-evaluation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/savanesoff","download_url":"https://codeload.github.com/savanesoff/oregan-js-evaluation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/savanesoff%2Foregan-js-evaluation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35950362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-27T02:00:06.776Z","response_time":101,"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":[],"created_at":"2024-10-10T03:44:40.434Z","updated_at":"2026-07-27T11:31:10.172Z","avatar_url":"https://github.com/savanesoff.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oregan.net React - JS Evaluation\n\nThis is an example of Input field HTML tag implementation without using Native Input tag.\n\n## See Demo\n\n[Input Element](https://savanesoff.github.io/oregan-js-evaluation/)\n\nUsing following screen as an example\n[![Validator](https://raw.githubusercontent.com/savanesoff/oregan-js-evaluation/main/public/oregan_screen.png)](https://savanesoff.github.io/oregan-js-evaluation)\n\n### RE: Design Considerations\n\nSome example design considerations based on the UX design for the Login page are as follows:\n\n\u003e a cursor/caret shown when the UI Input component is focussed.\n\nCursor is shown for focused Input only\n\n\u003e ability to show/hide the characters,i.e. for entering a password - where the hide replaces the chars with a '\\*'.\n\nDone\n\n\u003e When 'hide' is enabled show the real character for a set period before changing to be a `*`, the char to ‘hide’ the password characters can be hard coded to `*`.\n\nWhile entering a character it's shown for set period of time (default 500ms) then hidden by `*`\n\n\u003e The show/hide control is a separate component, whose value will be passed into the UI Input component to control.\n\nI've implemented both as a separate and built in component\n\n\u003e Make a suggestion on whether the cursor shall flash\n\nWhile text is being navigated or edited the cursor should stop flashing displaying solid caret (implemented)\n\nMy suggestions:\n\n- Enable start/end adornments as per [MUI](https://mui.com/material-ui/react-text-field/) and other standards.\n- Enable Input type `number`\n- Enable Label support (implemented)\n- Enable Input type `readonly` (implemented)\n\n\u003e Q1 Can you provide additional design considerations for the UI Input component based on the Login Page Design provided?\n\n\u003e Q2 Q2 Can you implement a React UI Input Component, written in Javascript, which covers the design considerations provided to you, plus the additional design considerations from Q1.\n\n- I would consider not to separate `Show/Hide` button from the Input component implementation (implemented)\n- It might be great to have Input `Label` indicating field label (implemented)\n\n\u003e **NOTE**\n\u003e Onscreen keyboard wasn't used for this example\n\n## How to run\n\nUse `npm` or `pnpm` (preferred) and run install:\n\n```bash\npnpm install\n```\n\nThe run dev command to run a local copy:\n\n```bash\npnpm dev\n```\n\nTo run tests:\n\n```bash\npnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavanesoff%2Foregan-js-evaluation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsavanesoff%2Foregan-js-evaluation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsavanesoff%2Foregan-js-evaluation/lists"}