Commit ea34dcfd authored by Hal Abelson's avatar Hal Abelson

Add known issue page. Remove warning message on designer page.

Add link to known issues on deswigner page
Stop generating obfuscated java
parent c4cf5f41
......@@ -358,9 +358,7 @@
<jvmarg line="${XstartOnFirstThread}"/>
<arg line="-war"/>
<arg value="${build.war.dir}"/>
<!-- Additional arguments like:
<arg line="-style detailed -logLevel WARN"/>
-->
<arg value="com.google.appinventor.YaClient"/>
</java>
</target>
......
......@@ -6,7 +6,6 @@ import static com.google.appinventor.client.Ode.MESSAGES;
import com.google.appinventor.client.boxes.MotdBox;
import com.google.appinventor.common.version.AppInventorFeatures;
import com.google.appinventor.shared.rpc.ServerLayout;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.rpc.AsyncCallback;
......@@ -24,20 +23,23 @@ import com.google.gwt.user.client.ui.VerticalPanel;
*/
public class TopPanel extends Composite {
private static final String LEARN_URL = Ode.APP_INVENTOR_DOCS_URL + "/learn/";
private static final String KNOWN_ISSUES_LINK_URL = Ode.APP_INVENTOR_DOCS_URL + "/knownIssues.html";
private static final String LOGO_IMAGE_URL = "/images/logo.png";
private final HTML userEmail = new HTML();
private final VerticalPanel rightPanel; // remember this so we can add MOTD later if needed
private static final String EXTRA_TEXT_IF_NOT_PRODUCTION = "This is an experimental version of "
+ " App Inventor. IT IS FOR TESTING ONLY, NOT FOR GENERAL USE!"
+ " Note: This App Inventor instance is not being hosted on AppEngine."
private static final String EXTRA_TEXT_IF_NOT_PRODUCTION =
" Note: This App Inventor instance is not being hosted on AppEngine."
+ " As a result, it will not correctly save your projects when you log out."
+ " You'll have to download them if you want them saved.";
// TODO(user) Remove the expermental warning label below when ready.
private final Label warning = new Label("This is an experimental version of App Inventor. "
+ "IT IS FOR TESTING ONLY, NOT FOR GENERAL USE! ");
private final Label welcome = new Label("Welcome to the App Inventor beta preview release." +
" Be sure to check the list of known issues.");
//This is an experimental version of App Inventor. "
// + "IT IS FOR TESTING ONLY, NOT FOR GENERAL USE! ");
private HTML divider() {
return new HTML("<span class='linkdivider'>&nbsp;|&nbsp;</span>");
......@@ -52,7 +54,7 @@ public class TopPanel extends Composite {
*
* +-- topPanel ------------------------------+
* |+-- logo --++--middleLinks--++--account--+|
* || || || ||
* || || ||underaccount|
* |+----------++---------------++-----------+|
* +------------------------------------------+
*/
......@@ -66,19 +68,29 @@ public class TopPanel extends Composite {
account.setStyleName("ode-TopPanelAccount");
account.add(userEmail);
account.add(divider());
HorizontalPanel underaccount = new HorizontalPanel();
underaccount.setStyleName("ode-TopPanelAccount");
underaccount.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
if (AppInventorFeatures.sendBugReports()) {
HTML reportBugLink =
new HTML("<a href='" + BugReport.getBugReportLink() + "' target='_blank'>" +
makeSpacesNonBreakable(MESSAGES.reportBugLink()) + "</a>");
account.add(reportBugLink);
account.add(divider());
underaccount.add(reportBugLink);
underaccount.add(divider());
}
HTML knownIssuesLink =
new HTML("<a href='" + KNOWN_ISSUES_LINK_URL + "' target='_blank'>" +
makeSpacesNonBreakable("Known issues") + "</a>");
underaccount.add(knownIssuesLink);
HTML signOutLink =
new HTML("<a href='" + ServerLayout.ODE_LOGOUT_URL + "'>" +
new HTML("<a href='" + "'>" +
makeSpacesNonBreakable(MESSAGES.signOutLink()) + "</a>");
account.add(signOutLink);
rightPanel.add(account);
rightPanel.add(underaccount);
addLogo(topPanel);
HorizontalPanel middleLinks = new HorizontalPanel();
......@@ -120,8 +132,8 @@ public class TopPanel extends Composite {
}
setWarningLabelText();
warning.setStyleName("ode-TopPanelWarningLabel");
middleLinks.add(warning);
welcome.setStyleName("ode-TopPanelLabel");
middleLinks.add(welcome);
topPanel.add(middleLinks);
topPanel.add(rightPanel);
......@@ -144,7 +156,7 @@ public class TopPanel extends Composite {
@Override
public void onSuccess(Boolean isProduction) {
if (!isProduction) {
warning.setText(EXTRA_TEXT_IF_NOT_PRODUCTION);
welcome.setText(welcome.getText() + EXTRA_TEXT_IF_NOT_PRODUCTION);
}
}
};
......
......@@ -220,6 +220,13 @@ body {
font-family: 'Droid Sans', arial, sans-serif;
}
.ode-TopPanelLabel {
color: #888;
font-family: 'Droid Sans', arial, sans-serif;
font-size: 15px;
}
/*
* StatusPanel
*/
......
<html>
<head>
<title>MIT Appinventor Known Issues</title>
<link href="/static/images/appinventor-16.png" rel="SHORTCUT ICON" type="image/ico">
<link href="/static/images/appinventor-16.png" rel="icon" type="image/png">
<link href="/static/css/appinventor.css" rel="stylesheet">
<head/>
<body bgcolor ="white"; leftmargin="50"; rightmargin="50">
<font face="arial,geneva,helvetica">
<div id="aiac">
<div class="main-container">
<div class="header"></div>
<div class="customhr customhr-green"></div>
<!--div id="navigation">
<div id="navigation-links">
<div class="navigation-link-option" id="navigation-link-home">
<a href="/about/">About</a>
</div>
<div class="navigation-link-option navigation-link-active" id="navigation-link-learn">
<a href="/learn/">Learn</a>
</div>
<div class="navigation-link-option" id="navigation-link-forum">
<a href="/forum/">Forum</a>
</div>
</div>
<div class="c1"></div>
</div-->
<div class="customhr customhr-gray"></div>
<div class="content">
<div class="content-body">
<h3>App Inventor Beta Preview Known Issues</h3>
<p>This is a beta preview release of App Inventor. There are known minor bugs and glitches,
and occasional failures in connecting to the phone or in getting projects to build.
This version should be stable enough for personal or educational use,
although it would be a good idea to maintain backup copies of important projects.</>
<p>There are also a couple of specific issues to watch out for. We're
working on these, but we didn't want to hold up this release to wait until they
were fixed.
<p>
<h4>Known Issues List:</h4>
<ul style="disc">
<li>Unable to load large projects: This version of App Inventor cannot load projects as
large as last year's Google version. If you are trying to transfer over a large
project (e.g., large numbers of image or sound files, or very large individual files)
you may see the error "Unable to load project". The problem may be worse on slow
connections.
</li>
<li>Manipulating blocks while switching screens: If you are working with a multiscreen
app and you switch screens, do not move blocks with the mouse or click links in the
Blocks Editor until the new screen is done loading. If you do so, the Blocks editor
can become confused about which screen you are working on, and you can get errors, or even
lose blocks. The same warning applies when you switch between projects. When loading a new
project, use the Blocks editor until the project has finished loading.
</li>
<li>Unstable project loading:
We've gotten reports of projects loading incorrectly, with blocks missing. We're trying
to track this down, but in the meantime be diligent about keeping local backups,
especially for large and important projects.
</li>
</ul>
</div>
</div>
<div class="footer">
<div class="footer-legal">
<!--p><a href="http://creativecommons.org/licenses/by/3.0/" rel="license"><img alt="Creative Commons License" class="c6" src="http://i.creativecommons.org/l/by/3.0/88x31.png"></a><br>
This work is licensed under a <a href="http://creativecommons.org/licenses/by/3.0/" rel="license">Creative Commons Attribution 3.0 Unported License</a> .
</p-->
</div>
</div>
</div>
</div>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment