Uploaded September 2026 | Updated November 2026, 1 day ago
This is one of the biggest features I have added to Tsugi in months.
The long-term goal is to make Tsugi courses fully authorable in the browser — not something where I have to edit JSON, PHP files, or GitHub repositories behind the scenes.
This session takes a major step toward that goal.
I build teacher-configurable course navigation.
Instead of having a fixed menu generated from buildmenu.php, each course can now have its own navigation configuration managed from:
Settings → Navigation
The instructor can choose which tools appear in the course navigation, where they appear, and how the course interface is organized.
The important part is that I do not begin by telling Cursor to write code.
For a feature this large, I wanted to get the design right first.
So for roughly the first 45 minutes, Cursor and I iteratively build a design document. I describe what I want, Cursor asks questions, I clarify the edge cases, and together we work through the decision tree before I finally say: write the code.
Some of the design decisions include:
every course gets its own navigation
Home and Settings are always present
instructors can place tools in the upper-left, upper-right, or avatar menu
some tools can be hidden entirely
widgets such as notifications can be positioned separately
instructor-only navigation items are supported
instructors can reorder the navigation
course navigation is stored as JSON in the course manifest
an “Exit Course” link takes the user back to the global site
a Courses widget makes it easy to move between courses
The goal is a compact interface that gives as much screen space as possible to the actual course content instead of filling the display with permanent left and right navigation bars. I borrow ideas I like from Canvas, Sakai, and Coursera — and deliberately avoid some things I do not like about those systems.
Once the design settles down, Cursor turns it into a working first version surprisingly quickly.
And then the fun starts.
I test the navigation editor, move Lessons into the top bar, put Announcements and Quizzes into the avatar menu, add notification widgets, add instructor-only controls, build an Exit Course option, and even add a dynamic Courses widget that only fetches its JSON when the menu is opened.
Along the way we also fix an architectural problem that had been bothering me: course context should come from the URL, not from whichever course happens to be left in the session.
That means a URL like:
/courses/42/...
defines the course context, while unprefixed URLs go back to the global course.
That removes an ugly “last session wins” behavior and makes the navigation much more deterministic.
By the end of the session, the smoke tests are working, I can navigate into a course, navigate back out, switch between course and global tools, and the new course navigation is functioning well enough to move into a branch and pull request for CodeRabbit review.
This took about two hours.
The first part was mostly design.
The second part was implementation, testing, and a long series of small refinements.
And by the end, I no longer have to keep hand-typing course URLs while developing these course-scoped features. More importantly, my brain is now free to move on to the next level: improving the course home page, notifications, usability, and eventually making Tsugi into a system where an instructor can build an entire standards-based online course in the browser.
This is exactly the kind of feature I have been building toward for months.
And it is a good example of the way I increasingly like to work with AI:
Design first.
Talk through the ambiguous parts.
Write the design down.
Then let the AI move fast.
If you enjoy these long-form Coding with AI sessions, like, share, subscribe, and leave a comment.
Cheers.
This is one of the biggest features I have added to Tsugi in months.
The long-term goal is to make Tsugi courses fully authorable in the browser — not something where I have to edit JSON, PHP files, or GitHub repositories behind the scenes.
This session takes a major step toward that goal.
I build teacher-configurable course navigation.
Instead of having a fixed menu generated from buildmenu.php, each course can now have its own navigation configuration managed from:
Settings → Navigation
The instructor can choose which tools appear in the course navigation, where they appear, and how the course interface is organized.
The important part is that I do not begin by telling Cursor to write code.
For a feature this large, I wanted to get the design right first.
So for roughly the first 45 minutes, Cursor and I iteratively build a design document. I describe what I want, Cursor asks questions, I clarify the edge cases, and together we work through the decision tree before I finally say: write the code.
Some of the design decisions include:
every course gets its own navigation
Home and Settings are always present
instructors can place tools in the upper-left, upper-right, or avatar menu
some tools can be hidden entirely
widgets such as notifications can be positioned separately
instructor-only navigation items are supported
instructors can reorder the navigation
course navigation is stored as JSON in the course manifest
an “Exit Course” link takes the user back to the global site
a Courses widget makes it easy to move between courses
The goal is a compact interface that gives as much screen space as possible to the actual course content instead of filling the display with permanent left and right navigation bars. I borrow ideas I like from Canvas, Sakai, and Coursera — and deliberately avoid some things I do not like about those systems.
Once the design settles down, Cursor turns it into a working first version surprisingly quickly.
And then the fun starts.
I test the navigation editor, move Lessons into the top bar, put Announcements and Quizzes into the avatar menu, add notification widgets, add instructor-only controls, build an Exit Course option, and even add a dynamic Courses widget that only fetches its JSON when the menu is opened.
Along the way we also fix an architectural problem that had been bothering me: course context should come from the URL, not from whichever course happens to be left in the session.
That means a URL like:
/courses/42/...
defines the course context, while unprefixed URLs go back to the global course.
That removes an ugly “last session wins” behavior and makes the navigation much more deterministic.
By the end of the session, the smoke tests are working, I can navigate into a course, navigate back out, switch between course and global tools, and the new course navigation is functioning well enough to move into a branch and pull request for CodeRabbit review.
This took about two hours.
The first part was mostly design.
The second part was implementation, testing, and a long series of small refinements.
And by the end, I no longer have to keep hand-typing course URLs while developing these course-scoped features. More importantly, my brain is now free to move on to the next level: improving the course home page, notifications, usability, and eventually making Tsugi into a system where an instructor can build an entire standards-based online course in the browser.
This is exactly the kind of feature I have been building toward for months.
And it is a good example of the way I increasingly like to work with AI:
Design first.
Talk through the ambiguous parts.
Write the design down.
Then let the AI move fast.
If you enjoy these long-form Coding with AI sessions, like, share, subscribe, and leave a comment.
Cheers.










