Skip to content

Comments

Hide unrelated note editor content for image occlusion notetypes#19271

Merged
david-allison merged 2 commits intoankidroid:mainfrom
lukstbit:feat_hideFieldsForImageOcclusion
Oct 17, 2025
Merged

Hide unrelated note editor content for image occlusion notetypes#19271
david-allison merged 2 commits intoankidroid:mainfrom
lukstbit:feat_hideFieldsForImageOcclusion

Conversation

@lukstbit
Copy link
Member

@lukstbit lukstbit commented Sep 25, 2025

Purpose / Description

Hides the fields and tags button in NoteEditorFragment when the notetype is set to image occlusion. The desktop app doesn't show the fields for this type of notetype and the backend page handles the tags.

Before/after for image occlusion:

Screenshot_20250925_134013Screenshot_20250925_132608

Fixes

How Has This Been Tested?

Ran the tests, checked the behavior.

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

Copy link
Member

@BrayanDSO BrayanDSO left a comment

Choose a reason for hiding this comment

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

While testing, I wasn't able to edit those fields on the desktop version.

IIRC, that was possible in the past. Otherwise, doesn't make much sense to keep them there.

Some people, including myself, want to add comments in the back field of their notes.

@BrayanDSO BrayanDSO added the Needs Author Reply Waiting for a reply from the original author label Oct 9, 2025
Showing the fields is not needed because we handle the image occlusion
with a backend page, desktop app also doesn't show the fields for image
occlusion and it's confusing for the users.
The backend page handles the tags for occlusion notetypes.
@lukstbit lukstbit force-pushed the feat_hideFieldsForImageOcclusion branch from 32bec8a to 672a62e Compare October 12, 2025 10:36
@lukstbit
Copy link
Member Author

I removed the mentioned code section.

I'm not sure if this was the target of the 'Needs author reply'. The fields we present to the user for image occlusion types are useless.

@BrayanDSO BrayanDSO removed the Needs Author Reply Waiting for a reply from the original author label Oct 12, 2025
@BrayanDSO BrayanDSO added Needs Second Approval Has one approval, one more approval to merge and removed Needs Review labels Oct 12, 2025
@david-allison david-allison added this pull request to the merge queue Oct 17, 2025
Merged via the queue into ankidroid:main with commit 780e489 Oct 17, 2025
10 checks passed
@github-actions github-actions bot added this to the 2.23 release milestone Oct 17, 2025
@github-actions github-actions bot removed the Needs Second Approval Has one approval, one more approval to merge label Oct 17, 2025
@lukstbit lukstbit deleted the feat_hideFieldsForImageOcclusion branch October 17, 2025 03:35
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.

[BUG]: Texts input in field of "Image Occlusion" note type in "Add" screen are not cleared after the card is added, and they are not saved

3 participants