This interview test is a Next.js app written in TypeScript.
- Use Node.js 22.22.2 or later, 24.15.0 or later, or 26 or later
- Clone the repo
- Install dependencies:
npm i - Make sure the app runs:
npm run dev, then open http://localhost:3000 - Make sure the tests pass:
npm test
Design Reference: Figma File
- Dynamic inputs - The Preview section on the right has static placeholder text. Wire up the app so that anything typed in both the feedback and party inputs updates the preview on the right.
- Product decision - We're a small team, so you may be asked to make recommendations based on a feature we're building. Code from scratch, modify a library, or use a best practice idea is often a decision we're confronted with. You'll be adding an emoji selector to the form on the left. In the Figma File we've added a few ideas, but we'd like to see your thinking around the best way to implement a feature which allows a user to express their emotions after dining somewhere.
- Add emoji selector - Now implement your idea in code and render it on the right in the Preview section.
- Extra credit / show off time - If you have time left, use the list of emoji shortcuts provided in
src/emoji-list.tsto add support for detecting emojis input into thesrc/Form.tsxtextarea and implement a selector component that renders above the textarea for picking the emoji that matches the currently-being-edited token (e.g.,:flag_). This is an opportunity to show off some data structures and algorithms chops, as we'd like you to implement an efficient way to match tokens against the emoji shortcuts. You can use the installednode-emojipackage to convert shortcuts to emojis.
