Skip to content

Commit

Permalink
schemas: Add missing display_default properties for Auspice config v2
Browse files Browse the repository at this point in the history
Resolves <#911> which noted
"language".  In confirming that, I cross-referenced Auspice's view
settings doc¹ and code² which revealed "sidebar" and "panels" too.
Clarifies the purpose of the two different "panels" keys.

¹ https://docs.nextstrain.org/projects/auspice/en/stable/advanced-functionality/view-settings.html#dataset-json-configurable-defaults
² https://github.com/nextstrain/auspice/blob/ce8380f7/src/actions/recomputeReduxState.js#L699-L718
  • Loading branch information
tsibley committed May 6, 2022
1 parent 8014186 commit eed47a8
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion augur/data/schema-auspice-config-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,25 @@
},
"transmission_lines": {
"type": "boolean"
},
"language": {
"type": "string",
"minLength": 1,
"description": "A BCP 47 language tag specifying the default language in which to display Auspice's interface (if supported)"
},
"sidebar": {
"type": "string",
"enum": ["open", "closed"]
},
"panels": {
"type": "array",
"description": "The panels to display by default.",
"$comment": "optional, but if present must not be empty",
"minItems": 1,
"items": {
"type": "string",
"enum": ["tree", "map", "frequencies", "entropy"]
}
}
}
},
Expand All @@ -197,7 +216,7 @@
},
"panels": {
"type": "array",
"description": "Which panels should auspice display",
"description": "The panels available for display.",
"$comment": "optional",
"minItems": 1,
"items": {
Expand Down

0 comments on commit eed47a8

Please sign in to comment.