cscov/StarWarsBnb

Sample State

Closed this issue · 5 comments

Sample State

  • State shape is flat!
  • State's keys are camelCased
  • All keys within the values in the state are accessible in the schema (Ex: if you create a img_url key in the state, make sure your database also has a column that contains an img_url)
  • Correctly formatted
    • Sample state is rendered with 3 back ticks before and after. This will display the state as a code block instead of a giant line of text
    • Top level slices
      • entities
      • session
      • errors (here or in ui)
      • ui (if needed)
    • Should NOT have nested slices, aka comments inside of posts
      • Some info from other tables is ok, for instance:
        • the author username and imageurl for a post. basically any info that the user can't change
        • like count and a boolean on whether the user likes the post instead of a likes slice

Comments:

Initial Proposal for this page has been reviewed. Please add the sample state!

cscov commented

first draft is ready for review

cscov commented

updated after our chat yesterday

Thanks Carolyn!

Update some formatting and we are good to go. Also in the spots, there are some keys that aren't aligned.
screen shot 2018-04-06 at 9 21 05 am

cscov commented

updated, thanks!