Skip to content

MAIT-76: Modify About tab to show only mAItion version#44

Closed
acikabubo wants to merge 2 commits intomainfrom
MAIT-76-modify-the-about-tab
Closed

MAIT-76: Modify About tab to show only mAItion version#44
acikabubo wants to merge 2 commits intomainfrom
MAIT-76-modify-the-about-tab

Conversation

@acikabubo
Copy link
Copy Markdown
Contributor

Summary

  • Adds patches/about.patch which injects a MutationObserver script into build/index.html
  • The script strips all content from the About tab except the mAItion version block, and removes any buttons/links within it
  • Patch applies cleanly via the existing patch -p0 mechanism in entrypoint.sh

Test plan

  • Verify only "mAItion Version" with version string is shown

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 27, 2026

Warning

Rate limit exceeded

@acikabubo has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 49 minutes and 38 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6d55e461-5c90-4ec5-945f-bb6fedcbad91

📥 Commits

Reviewing files that changed from the base of the PR and between 7c390de and ecfb1e7.

📒 Files selected for processing (1)
  • patches/about.patch
📝 Walkthrough

Walkthrough

Adds an inline client-side script to build/index.html that uses a MutationObserver to monitor DOM mutations, identifies a specific panel element containing "mAItion Version", and modifies it by removing subsequent children and deleting <a> and <button> elements.

Changes

Cohort / File(s) Summary
DOM Mutation Script
patches/about.patch (affects build/index.html)
Introduces an inline MutationObserver that targets elements with .space-y-3.overflow-y-scroll class, locates a panel by text matching "mAItion Version", and removes its child <a> and <button> elements along with subsequent sibling children.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: modifying the About tab to display only the mAItion version, which aligns with the changeset.
Description check ✅ Passed The description is directly related to the changeset, providing details about the patch file, its mechanism, and test plan.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@patches/about.patch`:
- Around line 8-23: The stripAbout() routine currently hardcodes 'mAItion
Version' and leaves an always-on MutationObserver (_o) that rescans on every DOM
change; update stripAbout() to locate the About panel by a stable signal (prefer
using window.__WEBUI_NAME__ or matching a version regex like /\d+\.\d+\.\d+/ on
the panel text or a sibling label instead of the literal string), mark processed
panels with a data attribute (e.g. panel.dataset.aboutStripped = '1') to avoid
re-processing, call _o.disconnect() (or stop observing) after successfully
stripping the panel to avoid expensive global subtree observation, emit
console.warn if no candidate panel is found on the first run so regressions are
visible, and add a failsafe CSS rule that hides buttons inside
[data-about-stripped] to reduce FOUC until mutation handling runs.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f4446667-4481-4767-b9fb-a4765f3abcdb

📥 Commits

Reviewing files that changed from the base of the PR and between aaa9093 and 7c390de.

📒 Files selected for processing (1)
  • patches/about.patch

Comment thread patches/about.patch
@vedmaka vedmaka closed this May 6, 2026
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