Skip to content

Conversation

anonfaded
Copy link
Contributor

@anonfaded anonfaded commented Jul 14, 2025

Description

  • Now the cursor will auto move ahead of the slash command when we select a slash command from the list.
  • Added some styling to the command so it looks better and doesn't mix with other text in input field.
  • Added battery optimization permission and management system to ensure app runs reliably in background.

Screenshots

image image image

Closes: #119

Checklist

…iability

Add battery optimization permission and management system to ensure app runs reliably in background:
- Add REQUEST_IGNORE_BATTERY_OPTIMIZATIONS permission
- Create BatteryOptimizationManager to handle battery optimization checks and requests
- Add battery optimization UI screens and flow in onboarding
- Integrate battery optimization checks into MainActivity flow
…nd styling

- Change message input from String to TextFieldValue for better cursor control
- Add SlashCommandVisualTransformation to style slash commands with colored backgrounds
- Maintain cursor position when selecting command suggestions
@anonfaded anonfaded changed the title Fix: wrong cursor location and add styling to the slash command in input field Fix: wrong cursor location, added battery optimization disabling screen and styling to the slash command in input field Jul 14, 2025
@callebtc
Copy link
Collaborator

hey thank you, this is a great PR. I've tested it and would love to merge it. we've just merged #129 that refactored the onboarding state. would you mind bringing your PR up to speed with it?

@anonfaded
Copy link
Contributor Author

hey thank you, this is a great PR. I've tested it and would love to merge it. we've just merged #129 that refactored the onboarding state. would you mind bringing your PR up to speed with it?

Yeah no problem, i will update my PR today

@anonfaded
Copy link
Contributor Author

hi @callebtc,
i have resolved the conflicts and also replaced the battery related hardcoded texts with strings.

@callebtc callebtc merged commit 04a774a into permissionlesstech:main Jul 19, 2025
1 check passed
@callebtc
Copy link
Collaborator

Very nice PR, hope we'll see more of your contributions!

@anonfaded
Copy link
Contributor Author

Very nice PR, hope we'll see more of your contributions!

Thank you! :)

@hector6872
Copy link
Contributor

@anonfaded we should anchor the buttons at the bottom and make the permission rationale scrollable to support smaller screens

https://x.com/franz_fk19/status/1946542465843920965?t=v04pMbXolxcHoREj1L-7ug&s=19

@anonfaded
Copy link
Contributor Author

@anonfaded we should anchor the buttons at the bottom and make the permission rationale scrollable to support smaller screens

https://x.com/franz_fk19/status/1946542465843920965?t=v04pMbXolxcHoREj1L-7ug&s=19

Yeah i already did that and opened the PR:) you can check the latest PR, it has screenshots

@hector6872
Copy link
Contributor

About 50 minutes ago. That was fast! 💪

Sorry for not double-checking before sending.

@anonfaded
Copy link
Contributor Author

About 50 minutes ago. That was fast! 💪

Sorry for not double-checking before sending.

yeah i faced the issue myself after trying the latest version so i instantly fixed that

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.

[BUG] Cursor is not placed ahead of slash command
3 participants