Skip to content

fix: hide feedback icon when logged out - #36

Merged
bastislack merged 1 commit into
devfrom
fix/feedback-icon-logged-in
Jul 16, 2026
Merged

fix: hide feedback icon when logged out#36
bastislack merged 1 commit into
devfrom
fix/feedback-icon-logged-in

Conversation

@bastislack

Copy link
Copy Markdown
Collaborator

Problem

The feedback IconButton (Icons.feedback_outlined) in the home screen app bar was rendered for all users, including logged-out ones. The /feedback flow is only meaningful for authenticated users.

Fix

Wrap the feedback IconButton in an if (AuthService.isLoggedIn) guard so it is only shown to logged-in users, matching the conditional pattern already used by the admin action directly below it.

Only lib/screens/home_screen.dart is changed. dart analyze reports no issues.

The feedback IconButton in the home screen app bar was shown to all
users, including logged-out ones. Wrap it in an AuthService.isLoggedIn
guard so it only appears for authenticated users, matching the pattern
used by the admin action below it.
@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for lively-torte-533cc3 ready!

Name Link
🔨 Latest commit 0a29d41
🔍 Latest deploy log https://app.netlify.com/projects/lively-torte-533cc3/deploys/6a5882ee12403b00082cf83f
😎 Deploy Preview https://deploy-preview-36--lively-torte-533cc3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@bastislack
bastislack merged commit 55cc55e into dev Jul 16, 2026
4 checks passed
@bastislack
bastislack deleted the fix/feedback-icon-logged-in branch July 16, 2026 07:48
Jmangles pushed a commit that referenced this pull request Jul 16, 2026
* Add reusable local Supabase dev stack (#31)

Use declarative schemas for future migrations

* chore: Remove delete grant (#32)

* fix: Mirror actual prod state of tricks in local db (#35)

* feat: Port consistency slider from old Highline Freestyle app (#28)

* feat: Port consistency slider from old Highline Freestyle app

* fix: Make sure first and last label in consistency slider have enough padding from the edges of the screen

* fix: Use declarative schema

* chore: Add delete-trick grant (#34)

* Allow users to provide feedback (#29)

* feat (Draft): Allow users to provide feedback

* feat: Allow users to provide feedback

* Quick user switch in local-db mode

* Add multiple attachments + download them

* chore: Remove stale draft feedback SQL superseded by migration

* fix: hide feedback icon when logged out (#36)

* feat: Long press trick-card to change consistency (#37)
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