Skip to content

Fix bold and italic button placements for text view - #58

Merged
gturc-dev merged 3 commits into
masterfrom
fix/No-ticket-bold-italic-text-view-placements
Sep 24, 2026
Merged

gturc-dev merged 3 commits into
masterfrom
fix/No-ticket-bold-italic-text-view-placements

Conversation

@gturc-dev

@gturc-dev gturc-dev commented Apr 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Fix bold and italic button placements for text view across editor view controllers (Consequence, Decision, Markdown, Metadata, and Rule editors)
  • Follow-up per PR discussion with @amiantos: moved the checkmark "Done" button out of each text field/view's keyboard accessory toolbar and into navigationItem.rightBarButtonItem, shown only while the keyboard is up (matching Notes.app's context-sensitive placement). The button still just dismisses the keyboard — it does not act as an explicit save/cancel control, per @amiantos's note that "the checkmark just closes the keyboard, it's not necessarily a save button."
  • Fixed a bug surfaced while making that change: MetadataEditorViewController.doneAction() only ever resigned aboutTextView, so the nav-bar checkmark would fail to dismiss the keyboard if any of the other four fields (title/author/website/license) were focused instead. Now uses view.endEditing(true) to dismiss whichever field is active.

Screenshots

Test plan

  • Open an existing game in the editor
  • Verify bold and italic buttons appear in the correct positions in the Markdown editor
  • Verify bold and italic buttons appear correctly in Consequence, Decision, Metadata, and Rule editors
  • Tap into a text field/view in each of the 5 editors and confirm the checkmark appears in the top-right nav bar (not above the keyboard) and disappears once the keyboard is dismissed
  • In the Metadata editor specifically, confirm the checkmark correctly dismisses the keyboard regardless of which of the 5 fields (title/author/website/license/about) is focused

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gturc-dev
gturc-dev requested a review from amiantos April 17, 2026 23:58
@amiantos

Copy link
Copy Markdown
Owner

We discussed moving the complete button up into the navigation bar, like in the notes app, didn't we?

Simulator Screenshot - iPhone 17 Pro - 2026-04-20 at 13 53 08

Another option could be this hovering bar like Safari does in web forms, but that's a lot less ideal than the Notes context-sensitive button in the top right.

Screenshot 2026-04-20 at 1 54 35 PM Base64 Decode and Encode - Online

@gturc-dev

Copy link
Copy Markdown
Collaborator Author

@amiantos If we want to have the editor accept changes as final with checkmark and back button cancels the changes, then we can move it to the navigation bar.

@amiantos

Copy link
Copy Markdown
Owner

@amiantos If we want to have the editor accept changes as final with checkmark and back button cancels the changes, then we can move it to the navigation bar.

In Notes.app the checkmark just closes the keyboard, it's not necessarily a save button, it just collapses the keyboard so you can see the full note content. I'd think we can do that here, too?

Geraldine and others added 2 commits July 23, 2026 20:02
…eedback)

Per PR discussion, move the checkmark "Done" button out of each text
field/view's input accessory toolbar and into navigationItem.rightBarButtonItem,
shown only while the keyboard is up (via keyboardWillShow/Hide), matching
Notes.app's context-sensitive placement. The button still just dismisses
the keyboard rather than acting as an explicit save/cancel control.

Affects Consequence, Decision, Markdown, Metadata, and Rule editors.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@gturc-dev

gturc-dev commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator Author
markdown-editor-screenshot

@amiantos I made some changes for this. Here is the screenshot of the new checkmark placement. The only thing is it is following the app's primary color convention and it appears grey. It might appear disabled to some users, but let me know if this change is fine. We could also revisit the color palette soon to update the UI for this app.

@amiantos amiantos left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if this merges cleanly, go for it! I'll see the changes when QAing other PRs

@gturc-dev
gturc-dev merged commit 6761b04 into master Sep 24, 2026
@gturc-dev
gturc-dev deleted the fix/No-ticket-bold-italic-text-view-placements branch September 24, 2026 02:41
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