Skip to content

Instantly share code, notes, and snippets.

@laser
Created August 23, 2017 20:58
Show Gist options
  • Save laser/864421a2ac37958221f0d5e7abbb90da to your computer and use it in GitHub Desktop.
Save laser/864421a2ac37958221f0d5e7abbb90da to your computer and use it in GitHub Desktop.
OMC-18372: user (non-)editable design elements

Dynamic Samples A

GIVEN

  • a video design D with elements:

    • E1: symbol=view_1.text_1,type=text,userEditable=false,defaultText=null
    • E2: symbol=view_1.text_2,type=text,userEditable=true,elementLevelDefaultText="Eighty",accountPlanLevelDefaultText="Sixty"
    • E3: symbol=view_1.text_3,type=text,userEditable=true,defaultText=null
    • E3: symbol=view_1.text_4,type=text,userEditable=false,elementLevelDefaultText="Twenty"
  • configuration bundle-provided, symbol-level values:

    • view_1.text_1="Alpha"
    • view_1.text_2="Beta"
    • view_1.text_3="Kappa"
    • view_1.text_4="Delta"

WHEN

  • the user renders a dynamic sample for D

THEN

  • they see text=??? in the view_1.text_1 slot
  • they see text=??? in the view_1.text_2 slot
  • they see text=??? in the view_1.text_3 slot
  • they see text=??? in the view_1.text_4 slot

WHAT THE SYSTEM DOES TODAY

  • they see text="Alpha" in the view_1.text_1 slot
  • they see text="Sixty" in the view_1.text_2 slot
  • they see text="Kappa" in the view_1.text_3 slot
  • they see text="Twenty" in the view_1.text_4 slot

Dynamic Samples B

GIVEN

  • a video design D with elements:

    • E1: symbol=view_1.photo_1,type=image,userEditable=false,defaultImage=null
    • E2: symbol=view_1.photo_2,type=image,userEditable=true,defaultImage=null
    • E3: symbol=view_1.photo_3,type=image,userEditable=false,defaultImage=BAR.jpg
    • E4: symbol=view_1.photo_4,type=image,userEditable=true,defaultImage=FOO.jpg
  • configuration bundle-provided, symbol-level values:

    • view_1.photo_1=cat.jpg
    • view_1.photo_2=dog.jpg
    • view_1.photo_3=emu.jpg
    • view_1.photo_4=bat.jpg

WHEN

  • the user renders a dynamic sample for D

THEN

  • they see image=??? in the view_1.photo_1 slot
  • they see image=??? in the view_1.photo_2 slot
  • they see image=??? in the view_1.photo_3 slot
  • they see image=??? in the view_1.photo_4 slot

WHAT THE SYSTEM DOES TODAY

  • they see image=cat.jpg in the view_1.photo_1 slot
  • they see image=dog.jpg in the view_1.photo_2 slot
  • they see image=BAR.jpg in the view_1.photo_3 slot
  • they see image=FOO.jpg in the view_1.photo_4 slot

Dynamic Layouts A

GIVEN

  • a video design D with elements:

    • E1: symbol=view_1.text_1,type=text,userEditable=false,defaultText=null
    • E2: symbol=view_1.text_2,type=text,userEditable=true,elementLevelDefaultText="Eighty",accountPlanLevelDefaultText="Sixty"
    • E3: symbol=view_1.text_3,type=text,userEditable=true,defaultText=null
    • E3: symbol=view_1.text_4,type=text,userEditable=false,elementLevelDefaultText="Twenty"
  • layout labels:

    • view_1.text_1="View 1 Text 1"
    • view_1.text_2="View 1 Text 2"
    • view_1.text_3="View 1 Text 3"
    • view_1.text_4="View 1 Text 4"

WHEN

  • the user renders a dynamic layout for D

THEN

  • they see label=??? in the view_1.text_1 slot
  • they see label=??? in the view_1.text_2 slot
  • they see label=??? in the view_1.text_3 slot
  • they see label=??? in the view_1.text_4 slot

WHAT THE SYSTEM DOES TODAY

  • view_1.text_1 label="View 1 Text 1"
  • view_1.text_2 label="View 1 Text 2"
  • view_1.text_3 label="View 1 Text 3"
  • view_1.text_4 label="View 1 Text 4"

Dynamic Layouts B

GIVEN

  • a video design D with elements:

    • E1: symbol=view_1.photo_1,type=image,userEditable=false,defaultImage=null
    • E2: symbol=view_1.photo_2,type=image,userEditable=true,defaultImage=null
    • E3: symbol=view_1.photo_3,type=image,userEditable=false,defaultImage=BAR.jpg
    • E4: symbol=view_1.photo_4,type=image,userEditable=true,defaultImage=FOO.jpg
  • configuration bundle-provided, symbol-level values:

    • view_1.photo_1=cat.jpg
    • view_1.photo_2=dog.jpg
    • view_1.photo_3=emu.jpg
    • view_1.photo_4=bat.jpg
  • layout labels:

    • view_1.photo_1="View 1 Photo 1"
    • view_1.photo_2="View 1 Photo 2"
    • view_1.photo_3="View 1 Photo 3"
    • view_1.photo_4="View 1 Photo 4"

WHEN

  • the user renders a dynamic sample for D

THEN

  • they see image=???, label=??? in the view_1.photo_1 slot
  • they see image=???, label=??? in the view_1.photo_2 slot
  • they see image=???, label=??? in the view_1.photo_3 slot
  • they see image=???, label=??? in the view_1.photo_4 slot

WHAT THE SYSTEM DOES TODAY

  • they see label="View 1 Photo 1", image=cat.jpg in the view_1.photo_1 slot
  • they see label="View 1 Photo 2", image=dog.jpg in the view_1.photo_2 slot
  • they see label="View 1 Photo 3", image=BAR.jpg in the view_1.photo_3 slot
  • they see label="View 1 Photo 4", image=FOO.jpg in the view_1.photo_4 slot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment