Skip to content

feat: pick type and language from dropdowns when creating a page - #572

Merged
TrueBrain merged 4 commits into
mainfrom
feat/page-name-picker
Nov 21, 2026
Merged

TrueBrain merged 4 commits into
mainfrom
feat/page-name-picker

Conversation

@TrueBrain

Copy link
Copy Markdown
Owner

Fixes #44.

When creating a page, the single page-name box is replaced by a Type dropdown (Page, Template, Category, File), a Language dropdown (the wiki's existing languages), and a Name box. The server joins them into the page name. Editing or renaming an existing page still uses the single box.

New languages still can't be created from the wiki; the dropdown only lists existing ones, matching the existing validation.

Tests: the create-form tests now use the new fields. Tests for a missing or unknown language inject a fake option, so the server-side check is still covered. One new test creates a page in another language via the dropdown. black, flake8 and all 100 e2e tests pass locally. Checked by hand in Chromium at desktop and phone width.

🤖 Generated with Claude Code

TrueBrain and others added 3 commits November 21, 2026 14:30
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.22222% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 83.72%. Comparing base (576b68e) to head (d53eb5d).

Files with missing lines Patch % Lines
truewiki/page_picker.py 96.87% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #572      +/-   ##
==========================================
+ Coverage   83.59%   83.72%   +0.12%     
==========================================
  Files          52       53       +1     
  Lines        2804     2838      +34     
  Branches      424      429       +5     
==========================================
+ Hits         2344     2376      +32     
  Misses        350      350              
- Partials      110      112       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TrueBrain
TrueBrain merged commit 7bbbe6c into main Nov 21, 2026
15 checks passed
@TrueBrain
TrueBrain deleted the feat/page-name-picker branch November 21, 2026 13:37
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.

Make selecting language and/or namespace easier when creating a page

1 participant