Skip to content

ADFA-149 | Capitalize words in UI elements - #36

Closed
jatezzz wants to merge 18 commits into
stagefrom
fix/ADFA-149
Closed

jatezzz wants to merge 18 commits into
stagefrom
fix/ADFA-149

Conversation

@jatezzz

@jatezzz jatezzz commented Mar 19, 2025

Copy link
Copy Markdown
Contributor

Description

Improved UI readability by capitalizing words in task names, file names, and diagnostic messages. Updated string resources in strings.xml for English, Spanish, and French, and added a capitalizeWords utility in AndroidUtils for consistent capitalization. CoGoTooltips hash also updated.

Details

photo_5105299721085365890_y
photo_5105299721085365889_y
photo_5105299721085365888_y
photo_5105299721085365886_y
photo_5105299721085365885_y
photo_5105299721085365887_y

Ticket

ADFA-149

Observation

jatezzz added 18 commits March 6, 2025 12:00
Added default messages and buttons for tooltips if they are missing from the database.
If the tooltip is not present in the database, default tooltip will be shown.
The database function `getTooltip` now returns a nullable result.
Added default messages and buttons for tooltips if they are missing from the database.
If the tooltip is not present in the database, default tooltip will be shown.
The database function `getTooltip` now returns a nullable result.
- Changed the webview padding to margin for better spacing.
- Added margins to buttons for better layout.
- Changed the "More" button text color to white.
- Adjusted the layout and spacing of elements in the `ide_tooltip_window.xml`.
- Removed extra blank lines in `TooltipUtils.kt`.
Refactor: Enhance IDETooltip functionality and UI

-   **Tooltip Display:** Replaced the old `Button` based display with a more versatile `WebView`.
-   **Layout Adjustments:** Modified the `ide_tooltip_window.xml` layout to accommodate the `WebView` and remove the unused buttons.
-   **"See More" Feature:** Added a dynamic "See More" text for expanding tooltips.
-   **Interactive Links:** Added interactive link support in the `TooltipUtils.showIDETooltip` method.
-   **Link Display** Implement `TextView` with hyperlinks when the tooltip is short, improving the flow of information.
-   **Background color** Set background in `layout_spinner.xml` and `widget.kt` to color white
-   **Removed**  `showEditorTooltip` method, this method was obsolete and replaced by `showIDETooltip`.
Add sidebar tooltip and improve menu filling

Add tooltips to each item in the sidebar rail.
Improve logic when filling the sidebar menu.
Remove the long click listener from the terminal action.
Add a default tooltip for bottom sheet tabs and implement long-click tooltip display

- Added a default tooltip string for bottom sheet tabs in `strings.xml`.
- Implemented the display of tooltips on long-click events for bottom sheet tabs, including specific tooltips for "App Logs" and "IDE Logs".
- Added `TooltipUtils` to handle tooltip display and web page navigation.
- Fixed a potential null pointer in `EditorSidebarActions` when getting a `railView`.
Added tooltips to the symbol items in the SymbolInputAdapter.
- Implemented long click listener to show description on long click
- Added a description field in the Symbol model.
- Added a description for every plain text symbol.
- Enabled TooltipCompat to show a tooltip when the mouse hover the item.
- Updated strings for improved in-app guidance:
  - Changed `msg_drawer_for_files` and `msg_swipe_for_output` to provide clearer instructions for accessing file drawer and build output.
  - Added `msg_long_press_help` for long press help.
- Modified `BaseEditorActivity` to add a clickable span for long press help.
- Simplified find menu and renamed it to "Find".
- Updated the tooltip UI to be always visible.
- Refactored `EditorActivityActions` to remove duplicate long click functionality.
- Changed the text of the title in the `content_editor` to "Project Options"
- Updated the project close confirmation dialog to include options for saving files and closing without saving.
- Changed the confirmation message in multiple languages to reflect the potential loss of unsaved changes and the interruption of build tasks.
- Modified the dialog buttons to "Cancel", "Close without saving files", and "Save files and close project".
- Updated the project close confirmation dialog to include options for saving files and closing without saving.
- Changed the confirmation message in multiple languages to reflect the potential loss of unsaved changes and the interruption of build tasks.
- Modified the dialog buttons to "Cancel", "Close without saving files", and "Save files and close project".
Add dialog options for saving or discarding changes when closing a project

Added dialog options to save files before closing a project, or to close without saving, or to cancel.
Fix a typo in setup in progress message
- Capitalized words in various UI elements such as task names, file names, and diagnostic messages for better readability.
- Updated string resources in `strings.xml`, `strings.xml` (es-rES), and `strings.xml` (fr-rFR) to capitalize words in titles and labels.
- Introduced a new `capitalizeWords` utility function in `AndroidUtils` to handle the capitalization logic consistently.
- Updated the CoGoTooltips hash.
- Corrected the `Snackbar` action text from "yes" to "no" when launching an app.
- Ensured proper registration of actions in `EditorActivityActions` by removing unnecessary whitespace.
- Corrected indentation of `initialize` method in `EditorBottomSheet` for code clarity.
@jatezzz jatezzz closed this Mar 19, 2025
@jatezzz
jatezzz deleted the fix/ADFA-149 branch March 31, 2025 21:24
davidschachterADFA added a commit that referenced this pull request Nov 21, 2026
Upstream merged #36 and released it in 1.4.4, so the patch goes and
upstream/ is the plain release. Its sources are 1.4.3 with the patch
applied, byte for byte, except SQLITE_JS_VERSION ("1.4.4").

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
davidschachterADFA added a commit that referenced this pull request Nov 21, 2026
* ADFA-7200: Patch sqlite-js 1.4.3 with upstream #36

CodeRabbit found three defects in sqlite-js 1.4.3. Upstream pull request
#36 fixes them, but it has had no review since 2026-11-17, so the AAR
carries it as patches/0001 until a release has it:

- an error while building a call's arguments or a toArray() row is no
  longer ignored, so a function can't run with fewer arguments;
- text that SQLite runs out of memory converting gives "out of memory"
  instead of a crash in strlen;
- js_create_scalar() and its siblings report an error when the function
  can't be stored, instead of success.

vendor.sh regenerated upstream/src/sqlitejs.c, and vendor.sh --check
passes. test.sh passes, with #36's new Conversion errors and Store
errors tests. Without the source change both fail, and with only the
out-of-memory check removed the test program crashes in Conversion
errors.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

* ADFA-7200: Move to sqlite-js 1.4.4, which released upstream #36

Upstream merged #36 and released it in 1.4.4, so the patch goes and
upstream/ is the plain release. Its sources are 1.4.3 with the patch
applied, byte for byte, except SQLITE_JS_VERSION ("1.4.4").

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

1 participant