# Bug or bad implementation?

**URL:** <https://community.glideapps.com/t/bug-or-bad-implementation/59138>\
**Category:** Ask for Help\
**Created:** [March 14, 2023, 12:32pm UTC](https://community.glideapps.com/t/bug-or-bad-implementation/59138 "2023-03-14T12:32:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlietmail](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/charlietmail/32/55259_2.png) [@charlietmail](https://community.glideapps.com/u/charlietmail)\
**Post date:** [March 14, 2023, 12:32pm UTC](https://community.glideapps.com/t/bug-or-bad-implementation/59138/1 "2023-03-14T12:32:14Z")

</div>

I’ve created a bread recipe app with a welcome screen that has a button to make the additional tabs appear once the user has read the welcome text:

> **[Bread Recipes](https://go.glideapps.com/template/n2G0cvqFx3mkazvLTtOu-template-published?privateTemplateToken=LCIpTuEMjlv1zSBFqU8I)**
>
> Recipes with baker's percentages that you can adjust, and links to helpful articles and videos

When I’m interacting with the welcome screen at this link, the button doesn’t work. When I’m using it in the development environment or the mobile app itself, it does.

It seems to be because the User table isn’t working as I expect it to…in fact, it’s just empty:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/f/ef622ea80647fb7db2f6366da1b143576a2053ac.png)

Is this the expected behaviour of a template link or a bug?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 14, 2023, 1:55pm UTC](https://community.glideapps.com/t/bug-or-bad-implementation/59138/2 "2023-03-14T13:55:51Z")

</div>

Since tab visibility relies on the user profile table, you have to be linked to a row in that table.

If you are not signed in, then there is no user row that the app can attach to.  
Previewing as ‘anyone’ is essentially the same as viewing the app as a non signed in user.

Your template does not have any user rows, so the app can’t attach to any user row, and there is no existing user that can be selected to preview as. Since there are no user rows, you can’t preview as a specific user, so the app is not attached to any user profile row, and thus the button does not have a row to update to control tab visibility.

---

<div class="post-metadata">

**Author:** ![charlietmail](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/charlietmail/32/55259_2.png) [@charlietmail](https://community.glideapps.com/u/charlietmail)\
**Post date:** [March 14, 2023, 2:17pm UTC](https://community.glideapps.com/t/bug-or-bad-implementation/59138/3 "2023-03-14T14:17:24Z")

</div>

Thanks @Jeff_Hager

The template _does_ have a user row:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/7/871684fcfc875644482980ad34008d3c35435744.png)

And because I’m logged in, at the template link I can see as the user:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/2/825b087ab48225264b317b2e874225b714a02710.jpeg)

But the button still doesn’t work because there still isn’t a data row **unless** I go to the data view, toggle between see as Anyone and see as the user. Then the user row appears.

Definitely hard to understand the behaviour and seems to me like a bug but perhaps still it is working as expected…

That said, I guess it still doesn’t matter as for someone not logged in, there would be no user row.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 14, 2023, 2:59pm UTC](https://community.glideapps.com/t/bug-or-bad-implementation/59138/4 "2023-03-14T14:59:27Z")

</div>

Hmm. Even if I manually type your test email, I still don’t see any user rows and can’t choose from any users. For me it’s empty no matter what.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/b/ab0cb8fac25510be9ce14a542cf6fcd4150144b7.png)

I’ve honestly never used templates, so I’m not sure how they are supposed to work. I thought you could have some test users and the template would allow you to preview as different users. That’s always been my impression, but I’ve never worked with them enough to say for sure.

> [@charlietmail](#):
>
> **unless** I go to the data view, toggle between see as Anyone and see as the user. Then the user row appears.

This is expected. The way your app is designed (due to tab visibility), you are requiring users to be signed in to use the app, so it’s reasonable that you have to preview the app as one of those existing users for your button to function.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 14, 2023, 3:02pm UTC](https://community.glideapps.com/t/bug-or-bad-implementation/59138/5 "2023-03-14T15:02:05Z")

</div>

If the user table was working how I thought it should, you should see all users. Typically on the first screen of a template, you would place some instructions telling the user viewing your template that they should change the user. Sometimes you may have users with different roles and different views, so it can be useful to preview as different users so you can see how the app looks for different users.

---

<div class="post-metadata">

**Author:** ![charlietmail](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/charlietmail/32/55259_2.png) [@charlietmail](https://community.glideapps.com/u/charlietmail)\
**Post date:** [March 14, 2023, 3:25pm UTC](https://community.glideapps.com/t/bug-or-bad-implementation/59138/6 "2023-03-14T15:25:17Z")

</div>

Thanks @Jeff_Hager, I appreciate the help you’re giving

Do you have any idea how to configure access so that someone can see the available user?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/9/3953849ca4f141fd69c8d019e66f0633202a8b4d.png)

Otherwise I have no idea how to provide access to a version of the app that someone can preview…

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 14, 2023, 3:39pm UTC](https://community.glideapps.com/t/bug-or-bad-implementation/59138/8 "2023-03-14T15:39:02Z")

</div>

I don’t know if it would help, but I would try changing Users access to Anyone. Right now, you have it set up so signed in users are private users and they would have to be whitelisted by you before they could sign in. Only [peter@pan.com](mailto:peter@pan.com) is the only user currently works too sign in. Maybe that’s what you ultimately want, but not very useful for a template.

Maybe the fact that user’s are currently considered as private is the reason why you are having issues previewing as different users in the template.

---

<div class="post-metadata">

**Author:** ![charlietmail](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/charlietmail/32/55259_2.png) [@charlietmail](https://community.glideapps.com/u/charlietmail)\
**Post date:** [March 14, 2023, 3:52pm UTC](https://community.glideapps.com/t/bug-or-bad-implementation/59138/9 "2023-03-14T15:52:18Z")

</div>

Thanks @Jeff_Hager

That doesn’t seem to work so I’ve simply removed the visibility logic so that the “anyone” user can see the rest of the app content.

> **[Bread Recipes](https://go.glideapps.com/template/n2G0cvqFx3mkazvLTtOu-template-published/dl/54886d?privateTemplateToken=LCIpTuEMjlv1zSBFqU8I)**
>
> Recipes with baker's percentages that you can adjust, and links to helpful articles and videos
