Skip to content

Instantly share code, notes, and snippets.

@ardiansyaherwin
Last active January 7, 2023 06:53
Show Gist options
  • Save ardiansyaherwin/3ed593c0bd17bd1b7c9a2efa4148e0f3 to your computer and use it in GitHub Desktop.
Save ardiansyaherwin/3ed593c0bd17bd1b7c9a2efa4148e0f3 to your computer and use it in GitHub Desktop.
Campaign Flow

Campaign Flow

UML source:

@startuml
CampaignList -> CreateCampaignModal : on click Buat Campaign Baru
CreateCampaignModal -> InfoCampaign : on click Mulai button
InfoCampaign -> InfluencerAndRewards : on click Selanjutnya
InfluencerAndRewards -> InfoCampaign : on click Kembali
InfluencerAndRewards -> PeriodeAndTask : on click Selanjutnya
PeriodeAndTask -> InfluencerAndRewards : on click Kembali
PeriodeAndTask -> CampaignList : on click Proses Pesanan
@enduml

Campaign Types

There are couple of campaign types, which are based on user role, as follows:

  1. Brand User
    1. Product Review (paid version)
    2. Giveaway (paid version)
    3. Survey (paid version)
    4. Custom Campaign
  2. Admin User
    1. Product Review
    2. Giveaway
    3. Survey
    4. Product review - e-commerce
    5. Self development
    6. Service review
    7. Referral
    8. Affiliate
    9. Event attendance

Campaign Fields

Currently, the shown fields upon campaign creation are still based on selected campaign types. Further development should be able to handle campaign fields display, based on the configured fields from API response.

Ref: Template Campaign Product

Below is the list of fields shown to users on campaign creation based on its types and is divided into several sections as follows:

  1. Info Campaign
    1. Nama campaign
      1. input: text
      2. required: yes
      3. editable: yes
      4. validation:
        1. min length: 3 characters
    2. Jenis campaign
      1. input: dropdown (pre-populated from the initial popup)
      2. required: yes
      3. editable: no
    3. Brand
      1. input: text (pre-populated from users assigned brand)
      2. required: yes
      3. editable: no
    4. Kategori
      1. input: dropdown
      2. required: yes
      3. editable: yes
    5. Cover campaign
      1. input: file
      2. required: yes
      3. editable: yes
      4. validation:
        1. max size: 2 mb
        2. minimum dimension: 656 x 224px
  2. Detail campaign
    1. Jumlah influencer yang dibutuhkan
      1. input: button controlled text (multiples of 10)
      2. required: yes
      3. editable: yes
      4. validation*:*
        1. min value*: 30*
          1. Product review - e-commerce: 20
          2. Affiliate: 30
    2. Tentang campaign
      1. input: textarea
      2. required: yes
      3. editable: yes
      4. validation*:*
        1. min length: 150 characters
        2. max length: 1000 characters
    3. Informasi tambahan
      1. input: textarea
      2. required: no
      3. editable: yes
      4. validation*:*
        1. max length: 1000 characters (including spaces)
  3. Kriteria Influencer
    1. Jenis kelamin
      1. input: dropdown
      2. required: yes
      3. editable: yes
    2. Umur
      1. input: two textfields (starting - ending age)
      2. required: yes
      3. editable: yes
      4. validation:
        1. min value: 18
        2. max value: 68-70
    3. Kategori
      1. input: checkbox
      2. required: yes
      3. editable: yes
    4. Domisili
      1. input: Dropdown
      2. required: yes
      3. editable: yes
    5. Minimal Followers
      1. input: text
      2. required: yes
      3. editable: yes
      4. validation:
        1. number only
        2. min value: 0
          1. PR IbuSuper: 1000
      5. Hidden:
        1. Survey
        2. Product Review - e-commerce
  4. Rewards
    1. Total hadiah
      1. input: numbered text
      2. required: yes
      3. editable: yes
    2. Detail hadiah
      1. input: textarea
      2. required: yes
      3. editable: yes
    3. Minta alamat pengiriman
      1. input: checkbox toggle
      2. required: no
      3. editable: yes
  5. Campaign Period
    1. Mulai & Selesai
      1. input: datepicker
      2. required: yes
      3. editable: yes
    2. Brief
      1. input: field
      2. required: no
      3. editable: yes
      4. validation:
        1. max file size: 5mb
        2. type: PDF
    3. Aktivitas:
      1. Registrasi influencer
        1. Mulai & Selesai
          1. input: datepicker
          2. required: yes
            1. optional on:
              1. Giveaway
              2. Survey
              3. Self Development
              4. Event Attendace
          3. editable: yes
      2. Kurasi influencer
        1. Mulai & Selesai
          1. input: datepicker
          2. required: yes
          3. editable: yes
      3. Tugas campaign
        1. Periode drafting tugas
          1. Mulai & Selesai
            1. input: datepicker
            2. required: yes
            3. editable: yes
          2. Platform
            1. input: text
            2. required: yes
            3. editable: no
              1. hidden:
                1. Survey
                2. Product Review - e-commerce
          3. Aktivitas
            1. input: dropdown
            2. required: yes
            3. editable: yes
            4. hidden:
              1. Survey
              2. Product Review - e-commerce
          4. Aturan foto/video
            1. input: textarea
            2. required: yes
            3. editable: yes
              1. hidden:
                1. Survey
                2. Product Review - e-commerce
          5. Aturan caption
            1. input: textarea
            2. required: yes
            3. editable: yes
              1. hidden:
                1. Survey
                2. Product Review - e-commerce
          6. Link sticker
            1. input: textarea
            2. required: yes
            3. editable: yes
            4. hidden:
              1. Survey
              2. Product Review - e-commerce
          7. Tag/tandai
            1. input: formatted tag text

            2. required: yes

            3. editable: yes

            4. hidden: all

              except:

              1. PR IbuSuper
              2. Service Review
          8. Hashtag
            1. input: formatted tag text

            2. required: yes

            3. editable: yes

            4. hidden: all

              except:

              1. PR IbuSuper
              2. Service Review
      4. Periode posting tugas
        1. Mulai & Selesai
          1. input: datepicker
          2. required: yes
          3. editable: yes
      5. Upload bukti tayang
        1. Mulai & Selesai
          1. input: datepicker
          2. required: yes
          3. editable: yes
      6. Periode tambahan (optional)
        1. Nama Periode
          1. input: text
          2. required: yes
          3. editable: yes
        2. Deskripsi
          1. input: text
          2. required: no
          3. editable: yes
        3. Mulai & Selesai
          1. input: datepicker
          2. required: yes
          3. editable: yes

\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment