Skip to content

Commit

Permalink
Revert "Feedback Prompts (#362)"
Browse files Browse the repository at this point in the history
This reverts commit 7c7c861.
  • Loading branch information
kadey001 authored Dec 2, 2022
1 parent 7c7c861 commit fe8a966
Show file tree
Hide file tree
Showing 41 changed files with 50 additions and 3,857 deletions.
27 changes: 0 additions & 27 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
1 change: 0 additions & 1 deletion app/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"react-beautiful-dnd": "^13.0.0",
"react-compound-slider": "^3.3.1",
"react-dom": "17.0.2",
"react-google-charts": "^4.0.0",
"react-infinite-scroll-component": "^6.1.0",
"react-player": "^1.11.1",
"react-relay": "^13.0.2",
Expand Down
88 changes: 1 addition & 87 deletions app/client/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,6 @@ input CreateFeedback {
refFeedbackId: ID
}

input CreateFeedbackPrompt {
eventId: ID!
feedbackType: String!
prompt: String!
}

input CreateFeedbackPromptResponse {
eventId: ID!
promptId: ID!
response: String!
vote: String!
}

input CreateInvite {
email: String!
eventId: ID!
Expand Down Expand Up @@ -184,9 +171,6 @@ type Event implements Node {
"""Live Feedback given during the event"""
liveFeedback(after: String, first: Int): EventLiveFeedbackConnection

"""Live Feedback Prompts w/ responses"""
liveFeedbackPrompts(after: String, first: Int): EventLiveFeedbackPromptConnection

"""List of moderators for this particular event"""
moderators(after: String, first: Int): UserConnection

Expand Down Expand Up @@ -236,18 +220,6 @@ type EventFeedbackMutationResponse implements MutationResponse {
message: String!
}

type EventFeedbackPromptMutationResponse implements MutationResponse {
body: EventLiveFeedbackPromptEdge
isError: Boolean!
message: String!
}

type EventFeedbackPromptResponseMutationResponse implements MutationResponse {
body: EventLiveFeedbackPromptResponseEdge
isError: Boolean!
message: String!
}

type EventLiveFeedback implements Node {
createdAt: Date
createdBy: User
Expand All @@ -269,50 +241,6 @@ type EventLiveFeedbackEdge {
node: EventLiveFeedback!
}

type EventLiveFeedbackPrompt implements Node {
createdAt: Date
event: Event
id: ID!
isOpenEnded: Boolean
isVote: Boolean
prompt: String!
responses(after: String, first: Int): EventLiveFeedbackPromptResponseConnection
}

type EventLiveFeedbackPromptConnection {
edges: [EventLiveFeedbackPromptEdge!]
pageInfo: PageInfo!
}

type EventLiveFeedbackPromptEdge {
cursor: String!
node: EventLiveFeedbackPrompt!
}

type EventLiveFeedbackPromptResponse implements Node {
createdAt: Date
createdBy: User
createdById: ID
event: Event
id: ID!
isOpenEnded: Boolean
isVote: Boolean
prompt: EventLiveFeedbackPrompt
promptId: ID
response: String
vote: String
}

type EventLiveFeedbackPromptResponseConnection {
edges: [EventLiveFeedbackPromptResponseEdge!]
pageInfo: PageInfo!
}

type EventLiveFeedbackPromptResponseEdge {
cursor: String!
node: EventLiveFeedbackPromptResponse!
}

type EventMutationResponse implements MutationResponse {
body: Event
isError: Boolean!
Expand Down Expand Up @@ -505,9 +433,7 @@ type Mutation {
addQuestionToQueue(input: AddQuestionToQueue!): EventQuestionMutationResponse!
alterLike(input: AlterLike!): EventQuestionMutationResponse!
createEvent(event: CreateEvent!): EventMutationResponse!
createFeedback(input: CreateFeedback!): EventFeedbackMutationResponse!
createFeedbackPrompt(input: CreateFeedbackPrompt!): EventFeedbackPromptMutationResponse!
createFeedbackPromptResponse(input: CreateFeedbackPromptResponse!): EventFeedbackPromptResponseMutationResponse!
createFeedback(input: CreateFeedback): EventFeedbackMutationResponse
createInvite(input: CreateInvite!): InviteMutationResponse!

"""Adds a new member and returns the new user added"""
Expand Down Expand Up @@ -640,18 +566,13 @@ type PageInfo {
}

type Query {
"""Fetch a single event"""
event(eventId: ID!): Event

"""Fetch all events"""
events: [Event!]

"""Fetch user data about the current user"""
me: User
myFeedback(eventId: ID!): [EventLiveFeedback]
node(id: ID!): Node
prompt(promptId: ID!): EventLiveFeedbackPrompt
promptResponses(promptId: ID!): [EventLiveFeedbackPromptResponse!]
questionsByEventId(eventId: ID!): [EventQuestion!]
validateInvite(input: ValidateInvite!): ValidateInviteQueryResponse!
validatePasswordResetToken(input: ValidatePasswordResetTokenForm!): ValidatePasswordResetTokenQueryResponse!
Expand Down Expand Up @@ -700,7 +621,6 @@ type Subscription {
eventLiveFeedbackCreated(eventId: ID!): EventLiveFeedback!
eventUpdates(eventId: ID!): Event!
feedbackCRUD(eventId: ID!): FeedbackOperation!
feedbackPrompted(eventId: ID!): EventLiveFeedbackPrompt!

"""subscription for whenever a new org is added"""
orgUpdated: OrganizationSubscription!
Expand Down Expand Up @@ -842,9 +762,3 @@ type ValidatePasswordResetTokenQueryResponse {
message: String!
valid: Boolean!
}

enum Vote {
AGAINST
CONFLICTED
FOR
}
Loading

0 comments on commit fe8a966

Please sign in to comment.