Skip to content
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,6 @@ input BrowserInfo {
timeZoneOffset: Int!
javaEnabled: Boolean!
}
"""
Yearly savings from bundle discount
"""
type BundleYearlySavings {
"""
Total yearly savings amount from bundle discount
"""
amount: Money!
"""
Whether the bundle discount covers the full period (true) or has pending/future items (false)
"""
bundleDiscountCoversFullPeriod: Boolean!
}
type CampaignDiscount {
"""
The type of discount, determines the relevancy of the other fields.
Expand Down Expand Up @@ -289,10 +276,6 @@ type CartBundleDiscountInfo {
Number of products in cart that are eligible for bundle discount
"""
eligibleProductCount: Int
"""
Yearly savings from bundle discount
"""
yearlySavings: BundleYearlySavings!
}
type CartCost {
"""
Expand Down Expand Up @@ -635,6 +618,7 @@ Root type expressing the entire flow for members trying to report a new claim.
type ClaimIntent {
id: ID!
currentStep: ClaimIntentStep!
sourceMessages: [ClaimIntentSourceMessage!]
}
input ClaimIntentFormSubmitInputField {
fieldId: ID!
Expand All @@ -644,6 +628,17 @@ type ClaimIntentMutationOutput {
intent: ClaimIntent
userError: UserError
}
type ClaimIntentSourceMessage {
id: ID!
text: String!
}
input ClaimIntentStartInput {
"""
Optionally inject a chat message ID to start the claim intent from. This will replace the audio recording
as the first step, using the chat history as the implicit first step.
"""
sourceMessageId: ID
}
"""
Represents a single step in the claim submission flow.
Steps have some universally shared properties, as well as variable `content` which comes in many different
Expand All @@ -657,7 +652,7 @@ type ClaimIntentStep {
"""
A union of all the different kinds of "step content".
"""
union ClaimIntentStepContent = ClaimIntentStepContentForm|ClaimIntentStepContentTask|ClaimIntentStepContentAudioRecording|ClaimIntentStepContentSummary
union ClaimIntentStepContent = ClaimIntentStepContentForm|ClaimIntentStepContentTask|ClaimIntentStepContentAudioRecording|ClaimIntentStepContentSummary|ClaimIntentStepContentOutcome
"""
An audio recording step is one where the user is meant to record some audio.
Submitted using `Mutation.claimIntentSubmitAudio`.
Expand Down Expand Up @@ -735,6 +730,13 @@ This typically will be backed by a String - but other formats could appear.
"""
scalar ClaimIntentStepContentFormFieldValue
"""
A step that shows the outcome of a claim intent.
This is a terminal step - there is no way to submit it.
"""
type ClaimIntentStepContentOutcome {
claimId: ID!
}
"""
A read-only step where the entire claim intent information is displayed before submitting.
Submitted using `Mutation.claimIntentSubmitSummary`.
"""
Expand All @@ -748,6 +750,8 @@ type ClaimIntentStepContentSummaryAudioRecording {
}
type ClaimIntentStepContentSummaryFileUpload {
url: Url!
contentType: String!
fileName: String!
}
type ClaimIntentStepContentSummaryItem {
title: String!
Expand Down Expand Up @@ -1893,6 +1897,8 @@ type Member {
claims: [Claim!]!
claimsActive: [Claim!]!
claimsHistory: [Claim!]!
partnerClaimsActive: [PartnerClaim!]!
partnerClaimsHistory: [PartnerClaim!]!
firstName: String!
lastName: String!
ssn: String
Expand Down Expand Up @@ -1949,6 +1955,11 @@ type Member {
"""
crossSellV2(input: CrossSellInput!): CrossSellV2!
"""
Young Pet Guide stories for the member.
Returns a list of educational content stories for young pet owners.
"""
puppyGuideStories: [PuppyGuideStory!]!
"""
Fetch all the active contracts for this member. Active contracts include all insurances that are either
active today, or to-be-active in the future.
"""
Expand Down Expand Up @@ -2137,6 +2148,7 @@ input MemberLogDeviceInput {
os: String!
brand: String!
model: String!
pushNotificationEnabled: Boolean
}
"""
Container for mutations that refer to the currently authenticated member.
Expand Down Expand Up @@ -2694,7 +2706,7 @@ type Mutation {
"""
Create or (reuse and existing) unsubmitted claim intent.
"""
claimIntentStart: ClaimIntent!
claimIntentStart(input: ClaimIntentStartInput): ClaimIntent!
"""
Submit a step containing a `ClaimIntentStepContentForm`.
"""
Expand Down Expand Up @@ -2822,6 +2834,10 @@ type Mutation {
"""
productOfferAddonsSelect(productOfferId: UUID!, addonIds: [UUID!]!): ProductOffersMutationOutput!
"""
Mark a young pet guide story as read for a specific member.
"""
puppyGuideEngagement(engagement: PuppyEngagementInput!): PuppyGuideStoryMutationOutput!
"""
Update the customer of the shop session. Only non-null fields will be changed.
Can trigger automatic lookup of other information.
The session can be placed in a "point of no return" state where it is no longer legal to update the customer,
Expand Down Expand Up @@ -2900,6 +2916,22 @@ type Mutation {
"""
upsellTravelAddonActivate(quoteId: ID!, addonId: ID!): UpsellTravelAddonActivationOutput!
}
type PartnerClaim {
id: ID!
externalId: String!
exposureDisplayName: String
status: ClaimStatus
submittedAt: Date!
payoutAmount: Money
associatedTypeOfContract: String
claimType: String
handlerEmail: String
displayItems: [ClaimDisplayItem!]!
"""
Terms & conditions for the claim found using claims contractId and dateOfOccurrence, otherwise null.
"""
productVariant: ProductVariant
}
type PartnerData {
sas: SasPartnerData
}
Expand Down Expand Up @@ -3405,13 +3437,61 @@ type ProductVariantComparisonRow {
"""
covered: [String!]!
}
input PuppyEngagementInput {
name: String!
rating: Int
opened: Boolean
read: Boolean
closed: Boolean
}
type PuppyGuideStory {
"""
The unique name/identifier of the story.
"""
name: String!
"""
The display title of the story.
"""
title: String!
"""
The subtitle or description of the story.
"""
subtitle: String!
"""
The main content of the story.
"""
content: String!
"""
The image associated with this story.
"""
image: String!
"""
Categories this story belongs to.
"""
categories: [String!]!
"""
The date when the story was marked as read by the user.
"""
read: Boolean!
"""
The user's rating of the story.
"""
rating: Int
}
type PuppyGuideStoryMutationOutput {
"""
Indicates whether the mutation was successful.
"""
success: Boolean!
}
type Query {
"""
Return a conversation for a given ID.
Note that this can return null if `Mutation.conversationStart` has not been called with this ID.
"""
conversation(id: UUID!): Conversation
claim(id: ID!): Claim
partnerClaim(id: ID!): PartnerClaim
claimIntent(id: ID!): ClaimIntent!
personalInformation(input: PersonalInformationInput!): PersonalInformation
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ internal fun HedvigNavHost(
navigateToInbox(backStackEntry)
},
openUrl = openUrl,
imageLoader = imageLoader,
)
imageViewerGraph(hedvigAppState.navController, imageLoader)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ internal fun NavigationSuite(
.fillMaxWidth(),
) {
AnimatedVisibility(
visible = navigationSuiteType == NavigationSuiteType.NavigationRail
|| navigationSuiteType == NavigationSuiteType.NavigationRailXLarge,
visible = navigationSuiteType == NavigationSuiteType.NavigationRail ||
navigationSuiteType == NavigationSuiteType.NavigationRailXLarge,
enter = expandHorizontally(expandFrom = Alignment.End),
exit = shrinkHorizontally(shrinkTowards = Alignment.End),
) {
Expand Down
13 changes: 13 additions & 0 deletions app/core/core-resources/src/main/res/values-sv-rSE/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
<string name="CLAIMS_USE_AUDIO_RECORDING">Gör röstinspelning</string>
<string name="CLAIMS_USE_TEXT_INSTEAD">Beskriv i text</string>
<string name="CLAIMS_YOUR_CLAIM">Din skadeanmälan</string>
<string name="CLAIM_DETAILS_DATE_OF_ACCIDENT">Händelsedatum</string>
<string name="CLAIM_TRIAGING_ABOUT_TITILE">Vilken försäkring gäller det?</string>
<string name="CLAIM_TRIAGING_NAVIGATION_TITLE">Vad gäller ditt ärende?</string>
<string name="CLAIM_TRIAGING_TITLE">Berätta vad som hände</string>
Expand Down Expand Up @@ -399,6 +400,7 @@
<string name="INVALID_NATIONAL_IDENTITY_NUMBER">Invalid National Identity Number</string>
<string name="KEY_GEAR_ITEM_VIEW_VALUATION_BODY">Vi försöker reparera i första hand, men om din %1$s skulle behöva ersättas helt (ex. om den blivit stulen) ersätts du med **%2$d\u0025** av inköpspriset **%3$d kr**, alltså **%4$d kr**.</string>
<string name="KEY_GEAR_ITEM_VIEW_VALUATION_PAGE_TITLE">Värdering</string>
<string name="LETTER_TO_EIR_SUBJECT">Fråga angående skadeanmälan - Fordon reg. %1$s</string>
<string name="LOGIN_MARKET_PICKER_PREFERENCES">Välj land och språk</string>
<string name="LOGOUT_BUTTON">Logga ut</string>
<string name="MARKETING_GET_HEDVIG">Få ett prisförslag</string>
Expand Down Expand Up @@ -525,6 +527,15 @@
<string name="PROFILE_PAYMENT_CONNECT_DIRECT_DEBIT_TITLE">Koppla autogiro</string>
<string name="PROFILE_ROW_TRAVEL_CERTIFICATE">Reseintyg</string>
<string name="PROFILE_TITLE">Din profil</string>
<string name="PUPPY_GUIDE_GO_BUTTON">Se guider</string>
<string name="PUPPY_GUIDE_INFO">I valpguiden hittar du användbara artiklar som hjälper dig med allt från första veterinärbesöket till hur du väljer rätt foder.</string>
<string name="PUPPY_GUIDE_LABEL">Utvalda guider</string>
<string name="PUPPY_GUIDE_LABEL_READ">Läst</string>
<string name="PUPPY_GUIDE_RATING_NOT_HELPFUL">Inte hjälpsam</string>
<string name="PUPPY_GUIDE_RATING_QUESTION">Var den här artikeln hjälpsam?</string>
<string name="PUPPY_GUIDE_RATING_VERY_HELPFUL">Mycket hjälpsam</string>
<string name="PUPPY_GUIDE_SUBTITLE">Hjälpsamma guider för dig och din valp</string>
<string name="PUPPY_GUIDE_TITLE">Valpguiden</string>
<string name="PUSH_NOTIFICATIONS_ALERT_ACTION_NOT_NOW">Inte nu</string>
<string name="PUSH_NOTIFICATIONS_ALERT_ACTION_OK">Slå på</string>
<string name="REFERRALS_INFO_BUTTON_CONTENT_DESCRIPTION">Läs mer</string>
Expand Down Expand Up @@ -824,6 +835,7 @@
<string name="claim.status_bar.closed">Stängt</string>
<string name="claim_history.empty_state.body">Dina tidigare skador visas här automatiskt efter att de har hanterats.</string>
<string name="claim_history.empty_state.title">Ingen skadehistorik</string>
<string name="claim_outcome_null">Ditt skadeärende har stängts.</string>
<string name="claim_outcome_unresponsive_support_text">Ditt skadeärende har stängts eftersom vi inte har fått någon återkoppling från dig. Se konversation för mer information.</string>
<string name="claim_status.being_handled.support_text">Din skadeanmälan granskas av en av våra försäkringsspecialister. Vi hör av oss snart med en uppdatering.</string>
<string name="claim_status.being_handled_reopened.support_text">Vi har återöppnat din skadeanmälan och en av våra försäkringsspecialister granskar den. Vi hör av oss snart med en uppdatering.</string>
Expand Down Expand Up @@ -853,6 +865,7 @@
<string name="claim_status_detail.missing_receipt">Kvitto saknas</string>
<string name="claim_status_detail.submitted">Inskickat</string>
<string name="claim_status_detail.uploaded_files_info_title">Uppladdade filer</string>
<string name="claim_status_detail_email">Ta kontakt med skadeteamet</string>
<string name="claims.alert.body">Om du avslutar går du tillbaka till startsidan och dina inmatade uppgifter kommer att gå förlorade.</string>
<string name="claims.continue.button">Fortsätt</string>
<string name="claims.edit.button">Edit</string>
Expand Down
13 changes: 13 additions & 0 deletions app/core/core-resources/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@
<string name="CLAIMS_USE_AUDIO_RECORDING">Use voice recording</string>
<string name="CLAIMS_USE_TEXT_INSTEAD">Describe using text</string>
<string name="CLAIMS_YOUR_CLAIM">Your claim</string>
<string name="CLAIM_DETAILS_DATE_OF_ACCIDENT">Date of occurrence</string>
<string name="CLAIM_TRIAGING_ABOUT_TITILE">What insurance is it about?</string>
<string name="CLAIM_TRIAGING_NAVIGATION_TITLE">What does your claim concern?</string>
<string name="CLAIM_TRIAGING_TITLE">Tell us what happened</string>
Expand Down Expand Up @@ -399,6 +400,7 @@
<string name="INVALID_NATIONAL_IDENTITY_NUMBER">Invalid National Identity Number</string>
<string name="KEY_GEAR_ITEM_VIEW_VALUATION_BODY">We first try to repair your %1$s, but if it needs to be replaced (e.g. if it was stolen) you will be compensated **%2$d\u0025** of the purchase price **%3$d SEK**, i.e **%4$d SEK**.</string>
<string name="KEY_GEAR_ITEM_VIEW_VALUATION_PAGE_TITLE">Valuation</string>
<string name="LETTER_TO_EIR_SUBJECT">Question regarding claim, Vehicle reg. %1$s</string>
<string name="LOGIN_MARKET_PICKER_PREFERENCES">Preferences</string>
<string name="LOGOUT_BUTTON">Logout</string>
<string name="MARKETING_GET_HEDVIG">Get a price quote</string>
Expand Down Expand Up @@ -525,6 +527,15 @@
<string name="PROFILE_PAYMENT_CONNECT_DIRECT_DEBIT_TITLE">Connect payment</string>
<string name="PROFILE_ROW_TRAVEL_CERTIFICATE">Travel certificates</string>
<string name="PROFILE_TITLE">Your profile</string>
<string name="PUPPY_GUIDE_GO_BUTTON">Go to guides</string>
<string name="PUPPY_GUIDE_INFO">In the puppy guide, you’ll find helpful articles covering everything from the first vet visit to choosing the right food.</string>
<string name="PUPPY_GUIDE_LABEL">Featured guides</string>
<string name="PUPPY_GUIDE_LABEL_READ">Read</string>
<string name="PUPPY_GUIDE_RATING_NOT_HELPFUL">Not helpful</string>
<string name="PUPPY_GUIDE_RATING_QUESTION">Was this article helpful?</string>
<string name="PUPPY_GUIDE_RATING_VERY_HELPFUL">Very helpful</string>
<string name="PUPPY_GUIDE_SUBTITLE">Helpful guides for you and your puppy</string>
<string name="PUPPY_GUIDE_TITLE">Puppy Guide</string>
<string name="PUSH_NOTIFICATIONS_ALERT_ACTION_NOT_NOW">Not now</string>
<string name="PUSH_NOTIFICATIONS_ALERT_ACTION_OK">Activate</string>
<string name="REFERRALS_INFO_BUTTON_CONTENT_DESCRIPTION">More info</string>
Expand Down Expand Up @@ -824,6 +835,7 @@
<string name="claim.status_bar.closed">Closed</string>
<string name="claim_history.empty_state.body">Your past claims will appear here automatically once processed.</string>
<string name="claim_history.empty_state.title">No claims in history</string>
<string name="claim_outcome_null">Your claim was closed.</string>
<string name="claim_outcome_unresponsive_support_text">Your claim was closed as we didn’t hear back from you. Please see conversation for more details.</string>
<string name="claim_status.being_handled.support_text">Your claim is being reviewed by one of our insurance specialists. We\'ll get back to you soon with an update.</string>
<string name="claim_status.being_handled_reopened.support_text">We have reopened your claim and one of our insurance specialists is reviewing it. We\'ll get back to you soon with an update.</string>
Expand Down Expand Up @@ -853,6 +865,7 @@
<string name="claim_status_detail.missing_receipt">Receipt missing</string>
<string name="claim_status_detail.submitted">Submitted</string>
<string name="claim_status_detail.uploaded_files_info_title">Uploaded files</string>
<string name="claim_status_detail_email">Contact the claims team</string>
<string name="claims.alert.body">If you exit, you\'ll go back to the start page and your inputted data will be lost.</string>
<string name="claims.continue.button">Continue</string>
<string name="claims.edit.button">Edit</string>
Expand Down
3 changes: 3 additions & 0 deletions app/feature/feature-help-center/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ hedvig {

dependencies {
api(libs.androidx.navigation.common)
api(libs.coil.coil)

implementation(libs.androidx.activity.compose)
implementation(libs.androidx.compose.foundation)
implementation(libs.androidx.lifecycle.compose)
implementation(libs.androidx.navigation.compose)
implementation(libs.apollo.runtime)
implementation(libs.apollo.normalizedCache)
implementation(libs.arrow.core)
implementation(libs.arrow.fx)
implementation(libs.coil.compose)
implementation(libs.compose.richtext)
implementation(libs.compose.richtextCommonmark)
implementation(libs.coroutines.core)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mutation PuppyGuideEngagement($name: String!, $rating: Int, $read: Boolean) {
puppyGuideEngagement(engagement: {name: $name, rating: $rating, read: $read}) {
success
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
query PuppyGuide {
currentMember {
puppyGuideStories {
categories
content
image
name
rating
read
subtitle
title
}
}
}
Loading
Loading