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

Internal: renaming Visual Refresh experiment name to snake_case #3955

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs-components/DocsVisualRefreshTypographyStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { useDangerouslyInGestaltExperiment } from 'gestalt';

export default function DocsVisualRefreshTypographyStyle() {
const isInExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

return isInExperiment ? (
Expand Down
4 changes: 2 additions & 2 deletions docs/docs-components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ function Header() {
const searchAnchorRef = useRef<null | HTMLButtonElement | HTMLAnchorElement>(null);

const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});
const { setExperiments } = useAppContext();

Expand Down
2 changes: 1 addition & 1 deletion docs/docs-components/contexts/DocsExperimentProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useAppContext } from '../appContext';
* */

const enabledExperiments = {
Tokens: ['web_gestalt_visualRefresh', 'web_gestalt_visualRefresh'],
Tokens: ['web_gestalt_visualrefresh', 'web_gestalt_visualrefresh'],
} as const;

type ExperimentKey = keyof typeof enabledExperiments;
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatar/ideasExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Avatar, Flex, Text, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const src = isInVRExperiment
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatar/mainExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Avatar, Flex, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

return isInVRExperiment ? (
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatar/nameExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Avatar, Flex, Text, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const name = isInVRExperiment ? 'Ayesha Rashad' : 'Shanice Byles';
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatar/noEmojiExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Avatar, Flex, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

return (
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatar/noImageSourceExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Avatar, Flex, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

return (
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatar/overExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Avatar, Box, Flex, Mask, Text, useDangerouslyInGestaltExperiment } from

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const src = isInVRExperiment
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatar/personExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Avatar, Flex, Text, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const firstName = isInVRExperiment ? 'Sora' : 'Keerthi';
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatar/shapeExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Flex, Image, Mask, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const alt = isInVRExperiment ? 'Ayesha Avatar' : 'Keerthi Avatar';
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatar/sizingExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Avatar, Flex, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const name = isInVRExperiment ? 'Fatima' : 'Keerthi';
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatar/verifiedExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Avatar, Flex, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const name = isInVRExperiment ? 'Sora' : 'Shanice';
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatarGroup/accessibility.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default function Example() {
const [open, setOpen] = useState(false);
const anchorRef = useRef<null | HTMLAnchorElement | HTMLDivElement>(null);
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const collaborators = [
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatarGroup/ideas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { AvatarGroup, Flex, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const collaborators = [
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatarGroup/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { AvatarGroup, Box, Flex, useDangerouslyInGestaltExperiment } from 'gesta

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const collaborators = [
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatarGroup/noEmoji.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { AvatarGroup, Flex, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const collaborators = [
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatarGroup/noImageSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { AvatarGroup, Flex, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const accessibilityLabel = isInVRExperiment
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatarGroup/person.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { AvatarGroup, Flex, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const accessibilityLabel = isInVRExperiment
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatarGroup/roleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default function Example() {
const [open, setOpen] = useState(false);
const anchorRef = useRef<null | HTMLDivElement | HTMLAnchorElement>(null);
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const collaborators = [
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/avatarGroup/roleLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { AvatarGroup, Flex, useDangerouslyInGestaltExperiment } from 'gestalt';

export default function Example() {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const collaborators = [
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/visual-test/Icon-list-vr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import icons from '../../../packages/gestalt/src/icons-vr-theme/index';
export default function Snapshot() {
return (
<ExperimentProvider
value={{ 'web_gestalt_visualRefresh': { anyEnabled: true, group: 'enabled' } }}
value={{ 'web_gestalt_visualrefresh': { anyEnabled: true, group: 'enabled' } }}
>
<ColorSchemeProvider colorScheme="light">
<Box color="default" height={2000} width={2000}>
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/web/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import verifiedExample from '../../examples/avatar/verifiedExample';

export default function AvatarPage({ generatedDocGen }: { generatedDocGen: DocGen }) {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

return (
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/web/avatargroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import sizing from '../../examples/avatarGroup/sizing';

export default function AvatarGroupPage({ generatedDocGen }: { generatedDocGen: DocGen }) {
const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});
const [avatarsize, setAvatarsize] = useState<'md' | 'xs' | 'sm'>('md');

Expand Down
4 changes: 2 additions & 2 deletions docs/pages/web/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const PREVIEW_HEIGHT = 300;

export default function DocsPage({ generatedDocGen }: DocType) {
const isInExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

return (
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/web/buttontoggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const PREVIEW_HEIGHT = 300;

export default function DocsPage({ generatedDocGen }: DocType) {
const isInExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

return (
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/web/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ import textOnly from '../../examples/toast/textOnly';

export default function DocsPage({ generatedDocGen }: { generatedDocGen: DocGen }) {
const isInExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});
return (
<Page title={generatedDocGen?.displayName}>
Expand Down
4 changes: 2 additions & 2 deletions packages/gestalt-datepicker/src/DateField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ function DateField({
};

const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

useEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions packages/gestalt-datepicker/src/DatePicker/DateInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ const DateInputWithForwardRef = forwardRef<HTMLInputElement, Props>(function Dat
const { openCalendar } = useDefaultLabel('DatePicker');

const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

if (isInVRExperiment) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const InternalDatePickerWithForwardRef = forwardRef<HTMLInputElement, InternalPr
const { nextMonth, previousMonth } = useDefaultLabel('DatePicker');

const isInVRExperiment = useDangerouslyInGestaltExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});
// This state is only used if the component is uncontrolled or value === undefined. If uncontrolled, DatePicker manages the selected Date value internally
const [uncontrolledValue, setUncontrolledValue] = useState<Date | null | undefined>(null);
Expand Down
8 changes: 4 additions & 4 deletions packages/gestalt/src/Avatar/Foundation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ function ResponsiveFitSizeBox({
outline,
}: ResponsiveFitSizeBoxProps) {
const isInVRExperiment = useInExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const { colorSchemeName } = useColorScheme();
Expand Down Expand Up @@ -115,8 +115,8 @@ export default function AvatarFoundation({
content = 'text',
}: AvatarFoundationProps) {
const isInVRExperiment = useInExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});
const { colorSchemeName } = useColorScheme();
const isDarkMode = colorSchemeName === 'darkMode';
Expand Down
4 changes: 2 additions & 2 deletions packages/gestalt/src/Avatar/InternalAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ type Props = {

function InternalAvatar(props: Props) {
const isInVRExperiment = useInExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});
const {
accessibilityLabel,
Expand Down
4 changes: 2 additions & 2 deletions packages/gestalt/src/AvatarGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ const AvatarGroupWithForwardRef = forwardRef<UnionRefs, Props>(function AvatarGr
ref,
) {
const isInVRExperiment = useInExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const {
Expand Down
4 changes: 2 additions & 2 deletions packages/gestalt/src/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export default function Badge({
tooltip,
}: Props) {
const isInVRExperiment = useInExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});
const dataTestIdIcon = dataTestId && `${dataTestId}-icon`;
const dataTestIdText = dataTestId && `${dataTestId}-text`;
Expand Down
4 changes: 2 additions & 2 deletions packages/gestalt/src/BannerCallout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ export default function BannerCallout({
} = useDefaultLabelContext('BannerCallout');

const isInVRExperiment = useInExperiment({
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
webExperimentName: 'web_gestalt_visualrefresh',
mwebExperimentName: 'web_gestalt_visualrefresh',
});

const getDefaultIconAccessibilityLabel = () => {
Expand Down
Loading
Loading