Repository navigation
feat(learn): complete the essentials track - #413
Merged
Merged
Conversation
Contributor
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Learn hub lists four Essentials lessons, but only the first is currently executable. Complete the track so users can practice editing, command discovery, and saving without leaving the editor or touching their project files.
:learn essentials [1-4],:learn next,:learn restart, and:learn quit; preserve the existing Guided/Quick tours and explicit tutorial aliases.This PR covers Essentials only. The remaining curriculum will follow separately.
How to Test
:vsplit. Run:learn, select Essentials, and press Enter.i, type a few characters, press Esc, thenu. The coach should reach 4/4 only after the original practice text is restored. Run:learn next.$,x,u, then Ctrl-r. The first line should end with one semicolon and the coach should reach 4/4. Run:learn next.:commands, select Toggle line wrapping, press F1, then Esc. Wrapping should turn off without changing text or producing a practice-refusal warning. Run:learn next.:wtwice, making another edit between saves. The dirty marker should clear after each save and the coach should report Essentials complete.:learn quit. The original unsaved text, split layout, and wrap setting should return. Reopen:learn; the hub should remember completion.:learn essentials 4, attempt:w <a-new-path-outside-the-practice-directory>and:w! <that-path>. Neither should create or rename an outside file.:learn restartshould provide a fresh practice file; quitting should remove its disposable directory.:tutorialand:tutorial quickstill start the existing tours. During an unfinished Essentials lesson,:learn nextshould keep the current checkpoint.Targeted coverage: the
learnlibrary tests andlearn_red_tests intests/editing.rscover progression, real picker/key handling, early exit, wrap restoration, save confinement/cleanup, and command-palette history isolation.Validation
cargo fmt --all -- --checkandgit diff --checkpassed on the committed worktree.cargo clippy --all-targets --all-features -- -D warningspassed. The full all-targets/all-features run passed 3,880 tests (3 ignored) across 25 completed standard-harness targets; the RPC target also passed. The detach target aborted with a test-thread stack overflow; all 4 detach tests passed in a scoped rerun withRUST_MIN_STACK=16777216. The same overflow reproduces on unchanged main (494305c8) with identical validation dependencies.The production lock could not be validated locally: the configured security registry lacks
zip 9.0.4andWasmtime 48.0.6. The registry was not bypassed. Only the validation snapshot useszip 9.0.2, Wasmtime/Pulley48.0.5, Cranelift0.135.5, andchacha20 0.10.1. This PR leavesCargo.tomlandCargo.lockunchanged; CI must validate the production dependency set.Known follow-ups
Existing Learn lifecycle behavior can leave breadcrumb headers absent after exit and show a practice-refusal notice during resize. Both trace to unchanged code on main. Compact hub outline truncation and the save lesson's long temporary path remain UI polish follow-ups.