Giter VIP home page Giter VIP logo

Comments (17)

lukaszzadamczyk avatar lukaszzadamczyk commented on September 22, 2024 1

finalTable

SummaryTable

Component to display the survey summary in the form of a table

Params

  • items: item[] // Item is object with {id, name, color, type: 'group' | 'section', points, total}

from grow-me.

bobbylej avatar bobbylej commented on September 22, 2024 1

Zrzut ekranu 2021-03-25 o 19 34 32

Zrzut ekranu 2021-03-25 o 19 35 35

Zrzut ekranu 2021-03-25 o 19 35 31

Zrzut ekranu 2021-03-25 o 19 35 17

Zrzut ekranu 2021-03-25 o 19 35 07

Zrzut ekranu 2021-03-25 o 19 35 02

Zrzut ekranu 2021-03-25 o 19 34 54

Zrzut ekranu 2021-03-25 o 19 34 44

Zrzut ekranu 2021-03-25 o 19 34 37

Circle

Component to display a circle with text or icon inside.

Params

  • text?: string
  • icon?: string
  • theme: Theme // object with colors and size of text, background, border

from grow-me.

lukaszzadamczyk avatar lukaszzadamczyk commented on September 22, 2024

Designs
templatesSquare
Zrzut ekranu 2021-03-20 o 18 33 20

ItemSquare

Component to display a single template or survey on the list

Params

  • id: string // id of the template or the survey
  • name: string
  • groupsNumber: number
  • sectionsNumber: number
  • questionsNumber: number
  • badge: { total: number; amount?: number } // numbers in dot on the top right side of the square
  • theme: 'template' | 'survey' // theme to choose styles for the component, i.e. colors
  • click: () => string // return id on click

from grow-me.

lukaszzadamczyk avatar lukaszzadamczyk commented on September 22, 2024

headerTitle

HeaderTitle

Component for display the view title

Params

  • titleText: string
  • theme: theme to choose styles for the component, i.e. colors, fonts

from grow-me.

lukaszzadamczyk avatar lukaszzadamczyk commented on September 22, 2024

headerUserSquare

ProfileDropdown

Component for display user data and available options

Params

  • user: User
  • theme: theme to choose styles for the component, i.e. colors, fonts

from grow-me.

lukaszzadamczyk avatar lukaszzadamczyk commented on September 22, 2024

selectInputs

Select

Component for select control

Params

  • value: SelectOption
  • options: SelectOption[]
  • theme: Theme // theme to choose styles for the component, i.e. colors
  • change: () => SelectOption // return selected option on change

from grow-me.

lukaszzadamczyk avatar lukaszzadamczyk commented on September 22, 2024

templatesRow

SurveyCounters

Component to display counters for a survey to show how many elements are inside

Params

  • groupsNumber: number
  • sectionsNumber: number
  • questionsNumber: number
  • theme: 'template' | 'survey' // theme to choose styles for the component, i.e. colors
  • click: () => string // return id on click

from grow-me.

bobbylej avatar bobbylej commented on September 22, 2024

Zrzut ekranu 2021-03-20 o 18 41 57

Zrzut ekranu 2021-03-20 o 18 41 45

Tabs

Component to switch the routes by clicking on tabs

Params

  • tabs: Tab[] // Tab is a object with { id: string; name: string; link: string }
  • activeTabId: string // Id of currently active tab

from grow-me.

bobbylej avatar bobbylej commented on September 22, 2024

Zrzut ekranu 2021-03-20 o 18 41 36

Group

Component to display group of sections

Params

  • group: Group // Group is object with { id: string; name: string }
  • theme: 'template' | 'survey'
  • editMode: boolean // turn on/off edit mode to change the name of the group
  • changeName: () => Group // callback when name of the group was changed

from grow-me.

bobbylej avatar bobbylej commented on September 22, 2024

Zrzut ekranu 2021-03-20 o 18 56 37

Section

Component to display section with questions

Params

  • section: Section // Section is object with { id: string; name: string }
  • theme: 'template' | 'survey'
  • editMode: boolean // turn on/off edit mode to change the name of the section
  • changeName: () => Section // callback when name of the section was changed

from grow-me.

bobbylej avatar bobbylej commented on September 22, 2024

With single-select while filling the survey
Zrzut ekranu 2021-03-20 o 18 46 39

With multi-select while filling the survey
Zrzut ekranu 2021-03-20 o 19 00 44

With single-select while creating survey/template
Zrzut ekranu 2021-03-20 o 19 04 43
Zrzut ekranu 2021-03-20 o 19 03 12

With multi-select while creating survey/template
Zrzut ekranu 2021-03-20 o 19 04 51
Zrzut ekranu 2021-03-20 o 19 03 26

QuestionSelectGroup

Component to display, answer, and edit a group of questions with answers.
It's possible to add and edit questions, answers, and weight of both when editMode === true.
It's possible to answer questions when editMode === false.

Params

  • questions: Question[] // Question is object with { id: string; phrase: string; answer?: string; weight: number }
  • answers: Answer[] // Answer is object with { id: string; name: string; weight: number }
  • multiSelect: boolean // To choose if question can have single or multiple answers selected
  • editMode: boolean // false for filling survey, true for creating template/survey
  • theme: 'template' | 'survey'
  • addQuestion: () => void // when user click New Question button
  • editQuestion: () => Question // when name or weight of the question was changed
  • addAnswer: () => void // when user click on + button next to the answers
  • editAnswer: () => Answer // when name or weight of the answer was changed
  • selectAnswerQuestion: () => { questionId: string; answerId: string } // when user select answer for question (while filling survey) when multiSelect === false
  • changeAnswerQuestion: () => { questionId: string; answerId: string; check: boolean } // when user check/uncheck answer for question (while filling survey) when multiSelect === true

from grow-me.

lukaszzadamczyk avatar lukaszzadamczyk commented on September 22, 2024

aside

Aside

Component to display, edit our templates and is set to hover

Params

  • aside: Aside // Aside is object with { id: string, name: string, active: boolean }
  • theme: 'template' | 'survey'
  • clickItem: () = > when user click on 'circle'

from grow-me.

bobbylej avatar bobbylej commented on September 22, 2024

Text question while filling the survey
Zrzut ekranu 2021-03-20 o 19 38 31
Zrzut ekranu 2021-03-20 o 19 38 25

Text question while creating template/survey
Zrzut ekranu 2021-03-20 o 19 37 53
Zrzut ekranu 2021-03-20 o 19 38 09
Zrzut ekranu 2021-03-20 o 19 37 47
Zrzut ekranu 2021-03-20 o 19 38 04

QuestionText

Component to display, answer and edit text question

Params

  • question: Question
  • textAnswer?: string
  • long?: boolean // false for short (single-line) answer, true for long (multi-line) answer
  • editMode: boolean // false for filling survey, true for creating template/survey
  • theme: 'template' | 'survey'
  • changeQuestion: () => Question // when name or weight of question was changed
  • changeAnswer: () => string // when answer was changed

from grow-me.

bobbylej avatar bobbylej commented on September 22, 2024

Question to select single/multiple answers while filling the survey
Zrzut ekranu 2021-03-20 o 19 47 15

Question to select single/multiple answers while creating template/survey
Zrzut ekranu 2021-03-20 o 19 47 46
Zrzut ekranu 2021-03-20 o 19 47 32

QuestionSelect

Component to display, answer, and edit question with single/multiple answers to select.

Params

  • question: Question
  • answers: Answer[]
  • multiSelect: boolean // false for single-select, true for multi-select
  • editMode: boolean
  • theme: 'template' | 'survey'
  • changeQuestion: () => Question // when name or weight of question was changed
  • changeAnswer: () => Answer // when name or weight of answer was changed
  • selectAnswer: () => Answer // when answer was selected while filling survey when multiSelect === false

from grow-me.

lukaszzadamczyk avatar lukaszzadamczyk commented on September 22, 2024

buttonFill

FillSurveyButton (one component for all buttons will be enough 😉 )

The button allows us to proceed to completing the survey

Params

  • name: string
  • clickToFill: () => when the user clicks on the button

from grow-me.

lukaszzadamczyk avatar lukaszzadamczyk commented on September 22, 2024

buttonCreate

Zrzut ekranu 2021-03-25 o 19 54 48

Zrzut ekranu 2021-03-25 o 19 54 28

Button

Component to display button

Params

  • name: string
  • icon?: { id: string, side: 'after' | 'before' } // to set if button should have icon and on which side of the text
  • click: () => void // callback when the user clicks on the button

from grow-me.

lukaszzadamczyk avatar lukaszzadamczyk commented on September 22, 2024

addButton

AddButton

Button with which we add new questions, sections and group to the template

Params

  • name: string
  • theme: Theme // theme to choose styles for the component, i.e. colors
  • click: () => void // when the user clicks on the button

from grow-me.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.