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

Data tab applab instructions #15381

Merged
merged 5 commits into from
May 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/i18n/common/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
"currentVersion": "Current Version",
"dataLimitAlert": "The app has been reading or writing to the database too frequently, which may result in unexpected failures.  Please let the app owner know if you keep experiencing issues.",
"dataMode": "Data",
"dataTabExplanation": "Your app can store data (like high scores and survey results) that gets saved even after you reset your app. Before you run your app, use this tab to plan out your key/value pairs or your data tables. You can enter, edit, and delete data directly from this tab or by using the data blocks within your app.",
"dataTableCaption": "Create data tables to store rows of data with multiple columns for different fields.",
"dataTableNamePlaceholder": "Table name",
"dataWorkspaceHeader": "Data Browser",
"debugConsoleHeader": "Debug Console",
Expand Down Expand Up @@ -248,6 +250,7 @@
"joinTextTooltip": "Create a piece of text by joining together multiple items.",
"jump": "jump",
"keepPlaying": "Keep playing",
"keyValueCaption": "Use key/value pairs to store a list of unique keys that map to values.",
"keyValuePairLink": "Key/value pairs",
"lastEdited": "Last Edited",
"learnMore": "Learn more",
Expand Down
6 changes: 6 additions & 0 deletions apps/src/storage/dataBrowser/DataOverview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ const DataOverview = React.createClass({

render() {
const visible = (DataView.OVERVIEW === this.props.view);

return (
<div id="dataOverview" style={{display: visible ? 'block' : 'none'}}>
<h4>Data</h4>

<h5>{msg.dataTabExplanation()}</h5>
<br/>
<p>{msg.keyValueCaption()}</p>
<table style={styles.table}>
<tbody>
<tr style={dataStyles.row}>
Expand All @@ -74,6 +78,8 @@ const DataOverview = React.createClass({
</tbody>
</table>

<br/>
<p>{msg.dataTableCaption()}</p>
<table style={styles.table}>
<colgroup>
<col width={tableWidth - buttonColumnWidth}/>
Expand Down