Giter Club home page Giter Club logo

buzztest's Introduction

Hey Buzz, welcome to your OpenTable assignment.

The goal of this exercise is to test a bit your UIKit abilities, so your task is do our job, and build the upcoming reservation view, also known as "dining mode" internally. There are 2 aspects to this:

  • first, the "dining mode banner". That's an apple music-like banner, that inserts itself above the tab bar, and can be interactively pulled
  • second, the dining mode itself. This is a "card" oriented view of your upcoming reservation.

Dining mode banner

The requirement for this one is pretty simple:

  • a banner should be displayed above the tab bar
  • tapping the banner expands the upcoming reservation view controller full screen
  • the banner can also be dragged interactively, and the upcoming reservation is visible in the dragged view (e.g. exactly what Apple Music does)
  • whichever tab is selected, the banner should be visible. If a controller gets presented modally, the banner should NOT be visible (matching the implicit real life analogy that modals slide "over" the main view)
  • technically, we'd want the viewcontrollers in the tab bar to see their content inset/frame updated so their content isn't hidden by the dining mode bar. This is out of scope (and to be honnest, a fairly hard problem we don't fully address ourselves).
  • if you can't make it interactive, and would rather implement the dining mode below, that's cool, just try and document what kind of problems you ran into, and what options you have to solve them. A non perfect solution is better than nothing though, since you're working in a limited time, it's interesting to see where you ended up with the feature.

Here's a sample GIF from our current app: http://opentable.d.pr/aZ8Q/tdvdDsZ2

Dining mode

This is a typical "mix and match" content driven screen, laying out "cards" vertically, where not all of the content is always available:

  • First card lists the restaurant name, the reservation time, the party size, and includes a picture of the restaurant
  • Second card lists the restaurant address, and a map view with the restaurant's address
  • Third card is the "best dishes" feature: an optional list of 1 to 3 dishes, along with a review snippet, where mentions of the dish are bolded out. Some ground rules about dishes:
    • A dish has at least one photo, and exactly one snippet
    • A snippet holds the full review, a range which indicates which part should be displayed, and a list of highlight ranges. All the ranges are relative to the full review (e.g. a highlight with at 197, 8 means "8 characters starting from the 197th character in the full review", regardless of which range of the review should be displayed)
    • if the restaurant has no dishes, the card should not be shown
    • if the restaurant has more than 3 dishes, only the first 3 should be shown
    • each dish is guaranteed to have at least one picture, and one review snippet
    • for each displayed snippet, we want to display: the photo, the dish name and the snippet along with its highlight. You're free to pick whatever method for the highlight (bold, color, underline etc.)
    • If you feel like it and have enough time, tapping anywhere in the card expands the card full screen. If you don't have time for it, that's ok, but I'd love it if you could explain an approach to implement this kind of transition, and the problems you'd face in the process.

Here's a sample GIF from our current app: http://opentable.d.pr/tgCj/5ohCOmky

General Instructions:

  • this isn't a visual design exercise, so you don't have to worry about that piece. Subtle use of background colors helps a lot with debugging and differentiating the views, so feel free to use that technique freely. I've included GIFs from our own app, as a reference, you don't have to follow that visual design
  • You'll find some code under Vendor/ โ€“ I've put basic domain objects in there, a reference JSON file, and assembler code to build up the domain object from the JSON object.
  • I do realize there's a lot in this exercise. If you can't wrap it all up, explain why you prioritized something over something else, and if you have a rough plan on how to implement the remaining
  • It's friday, and I just put this thing together. I hope the assembler code is bug free, if it isn't, ping me at [github handle] @ the company, I'll do my best to answer
  • Xcode is force feeding swift 3 on me. So Swift 3 it is (unless you feel like updating the Assembler class to swift 2.3 :p)
  • I've included a binary distro of AFNetworking for the image download part, feel free to use it. Or you can stick with raw NSURLSessions if you're more comfortable with that.

buzztest's People

Contributors

olarivain avatar

Watchers

Mac Alnakari avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.