Skip to content

fix: EULA always English, expand content, BMS logo, window title#33

Merged
hiranyasemindi merged 7 commits into
masterfrom
fix/eula-content-and-logo
Jun 22, 2026
Merged

fix: EULA always English, expand content, BMS logo, window title#33
hiranyasemindi merged 7 commits into
masterfrom
fix/eula-content-and-logo

Conversation

@iamvirul

@iamvirul iamvirul commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary

Fixes three issues found after Phase 7 merge: the EULA screen was showing in the user's selected language instead of English, the header used a placeholder icon instead of the BMS logo, and the window title bar showed 'bms' on both macOS and Windows.

Type

  • Bug fix
  • Docs

Changes

  • Hardcode all EULA screen strings in English (title, subtitle, buttons, checkbox label, decline dialog) - legal documents must be language-independent regardless of app locale setting
  • Replace placeholder Icons.business_center in the EULA header with SvgPicture.asset('assets/images/bms_logo.svg') at 40x40
  • Expand EULA text from 10 to 15 sections: Definitions, Grant of License, License Tiers, Restrictions, IP Ownership, License Key enforcement, User Data and Privacy, Updates and Support, Warranty Disclaimer, Liability Cap, Indemnification, Termination, Governing Law, Severability, Entire Agreement
  • Remove all horizontal divider lines from EULA body text
  • Set window title to "BMS - Business Management System" on macOS via AppInfo.xcconfig and on Windows via Runner.rc; MaterialApp.title updated to match

Screenshots

Before: EULA header in Tamil, briefcase icon, window title 'bms'
After: EULA always in English with BMS SVG logo, window title 'BMS - Business Management System'

Test plan

  • Hot reloaded and tested manually on macOS
  • EULA displays in English when app language is set to Tamil or Sinhala
  • BMS logo renders correctly in EULA header
  • Window title bar shows correct name on macOS
  • No regressions in related screens

Related issues

Summary by CodeRabbit

Release Notes

  • Bug Fixes

    • Fixed EULA display to render entirely in English regardless of app locale.
    • Updated EULA header with proper logo.
  • New Features

    • Expanded EULA with additional legal clauses (now 10–15 sections).
    • Updated app window titles to "BMS - Business Management System" on macOS and Windows.

iamvirul added 4 commits June 23, 2026 00:59
- Hardcode all EULA UI strings in English (title, buttons, labels,
  dialogs) so the agreement is always displayed in English regardless
  of the selected app language - legal documents must be consistent
- Replace briefcase icon in header with the actual BMS SVG logo
- Expand EULA text from 10 to 15 sections covering: definitions, license
  tiers, restrictions, IP ownership, license key enforcement, data
  privacy, updates, warranty disclaimer, liability cap, indemnification,
  termination, governing law, severability, and entire agreement
- Remove l10n dependency from EulaScreen (no longer uses context.l10n)
@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 71205dd5-c18c-4806-a953-909fa11ca2b3

📥 Commits

Reviewing files that changed from the base of the PR and between 53c959b and 7781dd7.

📒 Files selected for processing (1)
  • macos/Runner/Info.plist

📝 Walkthrough

Walkthrough

The app title is updated to "BMS - Business Management System" in the Flutter MaterialApp, macOS Info.plist, and Windows Runner.rc. The EULA screen removes all localized strings, hardcodes English throughout (expanded to 15 sections), replaces the header icon with an SVG logo badge, and updates all UI labels and dialogs. A changelog entry documents these fixes.

Changes

BMS Title and EULA Updates

Layer / File(s) Summary
App title across Flutter, macOS, and Windows
lib/app.dart, macos/Runner/Info.plist, windows/runner/Runner.rc
Sets the title string to "BMS - Business Management System" in MaterialApp.router, adds CFBundleDisplayName to the macOS plist, and updates FileDescription/ProductName in the Windows resource file.
EULA screen: English hardcoding, expanded text, and logo header
lib/features/eula/presentation/eula_screen.dart, CHANGELOG.md
Removes all context.l10n usage from eula_screen.dart; replaces _eulaText with a 15-section hardcoded English EULA; reworks _Header to render _LogoBadge via SvgPicture.asset; switches the decline confirmation dialog, _ScrollHint, _AgreementCheckbox label, and Accept/Decline button labels to hardcoded English strings. Changelog entry records all EULA and title fixes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 A rabbit hops in, quill in paw,
The EULA now speaks English — no flaw!
The logo shines bright, SVG and true,
"BMS - Business Management System" rings new.
Fifteen clauses laid out with care,
From macOS to Windows, the title's right there! 🌟

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the three main changes: EULA forced to English, EULA content expanded, BMS logo added, and window title updated.
Description check ✅ Passed The description follows the template with Summary, Type, Changes, Screenshots, Test plan, and Related issues sections; all required information is provided.
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.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/eula-content-and-logo

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

@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Preview deployed

URL https://getbms.github.io/bms/pr-33/
Commit 9fa0527
Status Live

Updates automatically on every push.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CHANGELOG.md`:
- Line 12: The CHANGELOG.md entry on line 12 mentions a "Contact clause" as one
of the five new sections added to the EULA, but this clause does not actually
exist in the updated EULA content. Remove the reference to "Contact clauses"
from the changelog entry to ensure the documented changes accurately reflect the
actual EULA sections that were added. Update the text to only list the sections
that are present in the new EULA version.

In `@lib/features/eula/presentation/eula_screen.dart`:
- Around line 378-403: The Row widgets containing Text elements with hardcoded
strings ('You have read the full agreement' and 'Scroll to the bottom to enable
acceptance') will overflow on narrow screen widths instead of wrapping the text.
Wrap each Text widget in a Flexible widget to constrain the text width and allow
it to wrap properly on smaller screens, ensuring the layout adapts correctly
across all device sizes without overflow.
- Around line 96-101: The EULA text in section 7.2 on eula_screen.dart claims
the SQLite database is encrypted, but the actual implementation in
app_database.dart uses standard unencrypted Drift/SQLite with only WAL and
foreign key pragmas enabled (no encryption pragmas like PRAGMA key or sqlcipher
configuration). To resolve this discrepancy, either implement database
encryption in app_database.dart using sqlcipher or native encryption options, or
update the EULA text in eula_screen.dart section 7.2 to accurately state that
data is stored locally but not encrypted at the database level. This legal and
privacy compliance issue must be resolved before release.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5ce31e64-4486-4851-88b4-f13a7fe2d013

📥 Commits

Reviewing files that changed from the base of the PR and between 7e5b70c and 3466cf9.

📒 Files selected for processing (5)
  • CHANGELOG.md
  • lib/app.dart
  • lib/features/eula/presentation/eula_screen.dart
  • macos/Runner/Configs/AppInfo.xcconfig
  • windows/runner/Runner.rc

Comment thread CHANGELOG.md Outdated
Comment thread lib/features/eula/presentation/eula_screen.dart Outdated
Comment thread lib/features/eula/presentation/eula_screen.dart
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 1 file(s) based on 2 unresolved review comments.

Files modified:

  • lib/features/eula/presentation/eula_screen.dart

Commit: 53c959b316c785311fad61d71efde832e3d8eae4

The changes have been pushed to the fix/eula-content-and-logo branch.

Time taken: 2m 4s

Fixed 1 file(s) based on 2 unresolved review comments.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
@coderabbitai coderabbitai Bot temporarily deployed to pr-preview-33 June 22, 2026 19:47 Inactive
…Name

Changing PRODUCT_NAME renamed the bundle from bms.app to
'BMS - Business Management System.app', breaking the CI codesign step.
Keep PRODUCT_NAME = bms so the bundle filename stays bms.app, and set
CFBundleDisplayName in Info.plist so Finder and the Dock show the full
product name.
@hiranyasemindi hiranyasemindi merged commit 37178d4 into master Jun 22, 2026
11 checks passed
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