MarineB210 / calculator-cucumber-2024

This repository is used for teaching purposes at the University of Mons. It contains Java code for computing arithmetic expressions. The code uses design patterns and is accompanied with JavaDoc, unit tests and BDD scenarios. We have also paid particular attention to code quality.
2 stars 1 forks source link

Improvements and refactoring of user interface and mode functionality #21

Closed RomeoXXIV closed 6 months ago

RomeoXXIV commented 6 months ago

In this pull request, several key changes have been made to improve user interface interaction and mode management in our application. Here's a summary of the changes made:

  1. Tests and expression: Tests have been modified to align with the new methods for deleting and retrieving expressions. This includes adjustments to ensure that the interface behaves as expected after these changes.

  2. User interface: The retrieve button has been removed, but functionality persists when the corresponding field is clicked. In addition, a problem where fields held focus, preventing the use of keyboard shortcuts, has been resolved. The size of the expression field has been corrected to adapt dynamically when changing mode.

  3. Zoom and navigation: The ability to delete the last button has been added, and cross-platform zoom has been corrected. In addition, the ability to zoom via keyboard keys on multiple platforms has been added, improving the application's accessibility.

  4. Controllers and main view: the MainViewController has been reorganized and the code cleaned up for greater clarity. The creation of a Java interface for components associated with different modes now clearly separates the main view of the component from the standard mode.

  5. Mode and architecture: Mode switching has been completed with the preparation of a complex controller for testing mode changes and the addition of the first keylistener tests. The architecture has been improved, and some files have been renamed for greater consistency.

  6. User interface - additions: Test extension buttons have been added to the complex view, and btnExtensions has been added to CSS for better visual integration.

github-actions[bot] commented 6 months ago

Test Coverage Summary