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

New default Link behavior setting #2634

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

gnunicorn
Copy link
Contributor

Minor UX improvement allowing the user to configure what should happen if a link is clicked: by default it opens with the system behavior but you can also ask it to just put it into the clipboard now.

what-to-do-wth-links.mp4

@gnunicorn gnunicorn added flutter smooth UX minor UI/UX problems and tasks labels Feb 18, 2025
Copy link
Contributor

Hey there 👋,
and thanks for the contribution. But it seems like you forgot to

  • 📰 Add a markdown file in .changes/ explaining what changed

Copy link

codecov bot commented Feb 18, 2025

Codecov Report

Attention: Patch coverage is 1.42857% with 69 lines in your changes missing coverage. Please review.

Project coverage is 33.21%. Comparing base (e3eee03) to head (b21c84f).

Files with missing lines Patch % Lines
...eatures/settings/pages/behavior_settings_page.dart 2.85% 34 Missing ⚠️
app/lib/common/actions/open_link.dart 0.00% 12 Missing ⚠️
...eatures/settings/providers/settings_providers.dart 0.00% 6 Missing ⚠️
...p/lib/features/settings/widgets/settings_menu.dart 0.00% 6 Missing ⚠️
...dgets/news_post_editor/selected_action_button.dart 0.00% 3 Missing ⚠️
...ws/widgets/news_item_slide/news_slide_actions.dart 0.00% 2 Missing ⚠️
...pp/lib/router/shell_routers/home_shell_router.dart 0.00% 2 Missing ⚠️
app/lib/common/widgets/render_html.dart 0.00% 1 Missing ⚠️
...tachments/widgets/msg_content_attachment_item.dart 0.00% 1 Missing ⚠️
app/lib/features/chat/utils.dart 0.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2634      +/-   ##
==========================================
- Coverage   33.23%   33.21%   -0.02%     
==========================================
  Files         742      742              
  Lines       48154    48182      +28     
==========================================
+ Hits        16003    16005       +2     
- Misses      32151    32177      +26     
Flag Coverage Δ
integration-test 43.42% <ø> (+0.01%) ⬆️
unittest 23.91% <1.42%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@kumarpalsinh25 kumarpalsinh25 left a comment

Choose a reason for hiding this comment

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

Overall looks good.

Added one minor remarked which need to be answer before merge.

Comment on lines -10 to -14
if (url == null || !url.hasAuthority) {
_log.info('Opening internally: $url');
// not a valid URL, try local routing
await context.push(target);
return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

What is !url.hasAuthority which is removed in new code?

And internal url opening code also removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flutter smooth UX minor UI/UX problems and tasks
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

2 participants