From 0bc3f278e5a76b0c8a0f61d5cf4c99b68ce57565 Mon Sep 17 00:00:00 2001 From: Chloe Han Date: Fri, 12 Jul 2024 09:36:28 -0400 Subject: [PATCH 1/3] doc update --- docs/site/pages/content/assets-views.mdx | 6 +++--- newCONTRIBUTORS.md | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/site/pages/content/assets-views.mdx b/docs/site/pages/content/assets-views.mdx index 364ed2743..7087b5e5d 100644 --- a/docs/site/pages/content/assets-views.mdx +++ b/docs/site/pages/content/assets-views.mdx @@ -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: @@ -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. diff --git a/newCONTRIBUTORS.md b/newCONTRIBUTORS.md index f45edd414..be36394fe 100644 --- a/newCONTRIBUTORS.md +++ b/newCONTRIBUTORS.md @@ -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: From 19f8804e18b8d646c039c164946747c5e0ea95e5 Mon Sep 17 00:00:00 2001 From: Chloe Han Date: Fri, 12 Jul 2024 10:07:42 -0400 Subject: [PATCH 2/3] add new team member --- docs/site/config/team.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/site/config/team.json b/docs/site/config/team.json index e1405bf9a..0a1529e53 100644 --- a/docs/site/config/team.json +++ b/docs/site/config/team.json @@ -48,5 +48,10 @@ "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" } ] From 9c5fa2e81a23fbca99abf313dcbd81a311a6fb92 Mon Sep 17 00:00:00 2001 From: Chloe Han Date: Fri, 12 Jul 2024 12:35:37 -0400 Subject: [PATCH 3/3] add new team members --- docs/site/config/team.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/site/config/team.json b/docs/site/config/team.json index 0a1529e53..5806963e4 100644 --- a/docs/site/config/team.json +++ b/docs/site/config/team.json @@ -53,5 +53,15 @@ "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" + } ]