Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move stop memory button to bottom center #959

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

mdmohsin7
Copy link
Collaborator

@mdmohsin7 mdmohsin7 commented Oct 2, 2024

ScreenRecording_10-02-2024.20-58-03_1.1.mp4

Summary by Entelligence.AI

  • Style: Updated the ConfirmationDialog widget in the application. The font size for the description and action buttons has been increased to 14 for better readability and user experience.

Copy link

github-actions bot commented Oct 2, 2024

Image description Entelligence.AI

Walkthrough

This change introduces a minor UI enhancement to the ConfirmationDialog class in the application. The update involves setting a font size of 14 for the description and action buttons, improving readability and overall user experience.

Changes

File Summary
app/lib/widgets/confirmation_dialog.dart Added a font size of 14 to the text style for the description and action buttons in the ConfirmationDialog class

🎉🤖

With a tweak so small, yet profound,

In our dialog's depth, clarity is found.

A font size change, subtle but true,

Enhances the view for me and you.

So here's to the code, ever so bright,

Making our app a delightful sight! 🎉🤖


Uplevel your code reviews with Entelligence.AI Pro

Entelligence.AI Pro

If you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, Entelligence.AI Pro is free for open source projects.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Image description Entelligence.AI

Commits Files that changed from the base of the PR and between 032844b and ff17c29 commits.
Files selected (2)
  • app/lib/pages/memory_capturing/page.dart (1)
  • app/lib/widgets/confirmation_dialog.dart (2)
Files not summarized due to errors (1)
  • app/lib/pages/memory_capturing/page.dart (diff tokens exceeds limit)
Review comments generated (11)
  • Review: 4
  • LGTM: 7

Tips

Chat with Image description Entelligence.AI Bot (@Entelligence.AI)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @Entelligence.AI in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @Entelligence.AI: ignore anywhere in the PR description to pause further reviews from the bot.

@@ -81,6 +81,7 @@ class ConfirmationDialog extends StatelessWidget {
Text(
description,
textAlign: TextAlign.center,
style: const TextStyle(fontSize: 14),
Copy link

Choose a reason for hiding this comment

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

Image description Entelligence.AI

The change made here is setting the font size of the description text to 14. This seems fine as it's a UI/UX decision and doesn't seem to introduce any issues.

-               style: const TextStyle(fontSize: 14),
+               style: const TextStyle(fontSize: 14),

Comment on lines +107 to +111
child: Text(cancelText ?? "Cancel", style: const TextStyle(color: Colors.white, fontSize: 14)),
),
CupertinoDialogAction(
onPressed: onConfirm,
child: Text(confirmText ?? "Confirm", style: const TextStyle(color: Colors.white)),
child: Text(confirmText ?? "Confirm", style: const TextStyle(color: Colors.white, fontSize: 14)),
Copy link

Choose a reason for hiding this comment

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

Image description Entelligence.AI

The changes made here are setting the font size of the cancel and confirm button texts to 14. This is also a UI/UX decision and doesn't seem to introduce any issues.

-             child: Text(cancelText ?? "Cancel", style: const TextStyle(color: Colors.white, fontSize: 14)),
-            ),
-            CupertinoDialogAction(
-              onPressed: onConfirm,
-             child: Text(confirmText ?? "Confirm", style: const TextStyle(color: Colors.white, fontSize: 14)),
+             child: Text(cancelText ?? "Cancel", style: const TextStyle(color: Colors.white, fontSize: 14)),
+            ),
+            CupertinoDialogAction(
+              onPressed: onConfirm,
+             child: Text(confirmText ?? "Confirm", style: const TextStyle(color: Colors.white, fontSize: 14)),

Comment on lines +57 to +62
// Memory source
var memorySource = MemorySource.friend;
// var captureProvider = context.read<CaptureProvider>();
// if (captureProvider.isGlasses) {
// memorySource = MemorySource.openglass;
// }
Copy link

Choose a reason for hiding this comment

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

Image description Entelligence.AI

The commented out code should be removed if it's not being used. Commented out code can lead to confusion for other developers.

- // var captureProvider = context.read<CaptureProvider>();
- // if (captureProvider.isGlasses) {
- //   memorySource = MemorySource.openglass;
- // }

Comment on lines +246 to +249
String transcriptElapsedTime(String timepstamp) {
timepstamp = timepstamp.split(' - ')[1];
return timepstamp;
}
Copy link

Choose a reason for hiding this comment

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

Image description Entelligence.AI

The function transcriptElapsedTime is not used anywhere in the new code. If it's not being used elsewhere in the codebase, it should be removed to avoid confusion.

- String transcriptElapsedTime(String timepstamp) {
-   timepstamp = timepstamp.split(' - ')[1];
-   return timepstamp;
- }

@josancamon19 josancamon19 merged commit e1619fd into main Oct 2, 2024
1 check passed
@josancamon19 josancamon19 deleted the stop-recording branch October 2, 2024 20:51
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