-
Notifications
You must be signed in to change notification settings - Fork 78
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
Lf 4375 spotlight animals add animals beta spotlight #3544
Lf 4375 spotlight animals add animals beta spotlight #3544
Conversation
…automatically adding left margin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 🎉 left one minor comment but not a blocker.
My only thought is that the location for this spotlight means that the user won't see it unless they navigate to the Animals section, and by that point they have already noticed it so there's less impact to having a spotlight. It seems to me it'd be more useful to have it on the "Animals" text in the menu?
import { ReactComponent as SendIcon } from '../../../assets/images/send-icon.svg'; | ||
import styles from './styles.module.scss'; | ||
|
||
export default function AnimalsBetaSpotlight({ children, setFeedbackSurveyOpen }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we'll likely be needing similar "beta" spotlights for upcoming features, I could see value in having a BetaSpotlight
reusable component with only the more specific parameters as props, and then having that component be a child of this one. Not a blocker for merge though, can be done when we have an upcoming beta feature!
@antsgar did you have any thoughts on the failure at 599-600px Duncan mentioned because it has me totally stumped! Or is it safe to say we don't care if one particular screen width is non-functional? Edit: actually it might be even more niche than that. It was definitely reproducible for me but only with window resize, which seems like nothing we have to worry about. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also had the same initial thought as Anto regarding the spotlight requiring Animal Inventory to be clicked (it's almost too late at that point to be spotlighting) but I guess if it targets the menu, there wouldn't be anything to highlight in mobile view? Well, I guess until the menu is opened for the first time? 🤔
@Duncan-Brain I like your idea about a provider for those props! For the next iteration / beta feature!
@@ -2066,7 +2068,7 @@ | |||
"BADGE": { | |||
"BETA": { | |||
"TITLE": "Beta", | |||
"CONTENT": "Get a sneak peek at our new animal management feature—now in beta! Your feedback is crucial as we refine this feature. Please share any bugs or suggestions you encounter. We appreciate your help in improving liteFarm! You can learn more about beta <a>here</a>" | |||
"ANIMALS_CONTENT": "Get a sneak peek at our new animal management feature—now in beta! Your feedback is crucial as we refine this feature. Please share any bugs or suggestions you encounter. We appreciate your help in improving liteFarm! You can learn more about beta <a>here</a>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, it's a little too late but I think we'll want to avoid this in the future -- renaming strings that right now are only in CrowdIn -- because CrowdIn UX is not good for it.
I think the original translation was preserved (only and a bit cryptically) in the TM & ML suggestion, but its lost the authorship metadata and there appears to be no way to search for it 🫤
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeahhh, I knew it as I was doing it but figured we will need to be able to change key names. This one is particularly long I should have checked first. But was maybe hoping they hadn't got to it in the couple days badge was in for.
In the designs it seems to be shown on inventory, I think one of the nice thing about the placement is that it isn't obtrusive unless you navigate to animals. Until then it is a curiosity you can find out about when you click the menu. For the 600px thing -- yeah I tried to describe its a very weird thing that only happens essentially when you navigate directly to the inventory screen bypassing the menu animation on all other screens. If you see the menu animation anywhere else, it shouldn't happen. |
Description
Adds animals beta spotlight
Notes:
MISSING
anymore!animationend
event but its messy for not much value.Screen.Recording.2024-11-22.at.11.36.20.AM.mov
Jira link:LF-4375
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: