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

Add show solution button to Codelab UI #1819

Merged
merged 2 commits into from
Apr 15, 2021
Merged

Add show solution button to Codelab UI #1819

merged 2 commits into from
Apr 15, 2021

Conversation

johnpryan
Copy link
Contributor

This adds a "show solution" button for each step if the step contains a solution - we show a dialog to confirm since it wipes out the user's code for that current step.

We currently don't save the users code at each step, but we probably should if we have time.

@johnpryan johnpryan merged commit dd51266 into dart-lang:codelabs Apr 15, 2021
johnpryan added a commit that referenced this pull request Apr 20, 2021
* Codelab UI - initial setup (#1807)

* initial setup

* setup YAML parsing

* format

* load codelab files

* move logic into CodelabUi class, start stubbing out code

* Set up right panels

* Add CodeMirror editor

* Add CodelabState

* fix HTML

* Add step buttons

* remove print

* Load code and update when the step changes

* Add run button and console panel

* add flutter_codelab

* Ignore /example/codelabs directory in analysis and builders

* Add tabs to console panel

* Get flutter compilation working

* add TODO

* exclude codelabs in dart_source_cleanup build step

* remove whitespace

* Add Github codelab fetcher (#1811)

* Add GithubCodelabFetcher

* make gh_ref and gh_path optional query parameters

* Add show solution button to Codelab UI (#1819)

* add codelabs.html to allowed files in main.py

* Add show solution button

* Run 'dart format --fix .'

* remove unused top-level variable

* remove lib/codelabs/src/meta.g.dart

* Revert "remove lib/codelabs/src/meta.g.dart"

This reverts commit 3353d19.

* add --delete-conflicting-outputs to grind build task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants