Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onboarding doc update #422

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion docs/site/config/team.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,20 @@
"name": "Nancy Wu",
"domain": ["iOS"],
"avatar": "https://avatars.githubusercontent.com/u/66387473?v=4"
}
},
{
"name": "Chloe Han",
"domain": ["React", "Core"],
"avatar": "https://avatars.githubusercontent.com/u/15382804?v=4"
},
{
"name": "Sakuntala Niharika Motukuri",
"domain": ["Android"],
"avatar": "https://avatars.githubusercontent.com/u/171299777?v=4"
},
{
"name": "Mrigank Mehta",
"domain": ["React", "Core"],
"avatar": "https://avatars.githubusercontent.com/u/16272231?v=4"
}
]
6 changes: 3 additions & 3 deletions docs/site/pages/content/assets-views.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The `id` of the views are used in the navigation section to reference a specific

## Cross-field validation

The other special property of a `view` vs. an `asset` is the addition of a `validation` property on the view. These contain [`validation` objects](/schema) that are used for validations crossing multiple fields, and are ran on user navigation rather than data change.
The other special property of a `view` vs. an `asset` is the addition of a `validation` property on the view. These contain [`validation` objects](/content/schema) that are used for validations crossing multiple fields, and are ran on user navigation rather than data change.

Example:

Expand Down Expand Up @@ -72,14 +72,14 @@ Any object in the tree (including _assets_) may contain an `applicability` prope

# Switches

Switches are ways of dynamically changing the structure of the view based on data. There are 2 types of switches: `static` and `dynamic`, but their structures are identical. `switches` can appear anywhere you'd find a normal asset, and (similar to [templates](./templates)) are removed from the view before it reaches the UI layer.
Switches are ways of dynamically changing the structure of the view based on data. There are 2 types of switches: `static` and `dynamic`, but their structures are identical. `switches` can appear anywhere you'd find a normal asset, and (similar to [templates](#templates)) are removed from the view before it reaches the UI layer.

## Usage

The switch is simply a list of objects with `case` and `asset` properties:

- `asset` - The asset that will replace the switch if the case is true
- `case` - An [expression](./expression) to evaluate.
- `case` - An [expression](/content/data-expressions) to evaluate.

The switch will run through each _case_ statement until the first case expression evaluates to true. For the _default_ case, simple use a value of `true` at the end of the array.

Expand Down
5 changes: 5 additions & 0 deletions newCONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ From here, you can create a new branch
git checkout -b my-new-feature
```

And when we're ready to commit and push to GitHub, we just run the same command as usual:
```
git push -u origin my-new-feature
```

The -u here is important because it allows any future push-es to this repo to always use origin as the remote that it wants to push to.

When you're ready to submit a Pull Request, there's a great CLI command for that one too:
Expand Down