Refactor icon display logic for Windows and remove unnecessary text from menus#7
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the icon display logic to provide cleaner Windows interface while preserving Linux emoji functionality. The changes remove complex Windows emoji detection and simplify the user experience by eliminating promotional text.
- Simplified Windows icon logic by removing emoji detection and bracket-style icons
- Removed "Made with <3" promotional text from all menu displays
- Fixed inconsistent exit icon usage in main function
Comments suppressed due to low confidence (1)
crow-bank-app/main.cpp:370
- [nitpick] The success message format "[SUCCESS]" is inconsistent with the existing "[OK]" format that was replaced. Consider using "[OK]" to maintain consistency with the existing codebase pattern.
return "[SUCCESS]";
| { // Exit | ||
| clearScreen(); | ||
| cout << "\n� Thank you for exploring SecureBank!\n"; | ||
| cout << "\n" << getIcon("exit") << " Thank you for exploring SecureBank!\n"; |
There was a problem hiding this comment.
This line will display an empty string on Windows since getIcon("exit") returns "" for Windows, resulting in inconsistent formatting. The original hardcoded symbol may have been intentional to ensure consistent display across platforms.
Suggested change
| cout << "\n" << getIcon("exit") << " Thank you for exploring SecureBank!\n"; | |
| { | |
| std::string exitIcon = getIcon("exit"); | |
| if (exitIcon.empty()) exitIcon = ">>"; | |
| cout << "\n" << exitIcon << " Thank you for exploring SecureBank!\n"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[BANK],[REG], etc.) from Windows interfaceResult
Cleaner, more professional Windows interface while maintaining Linux visual appeal.
Testing: ✅ Both platforms built and verified successfully