-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Working on design feedback * Rename error message to message on sync record object * fixing a couple basic setup of the repo things * more ui tweaks * Skip initial content screen * Created a warning for resyncing sync records that are not 'Error' * put a file back * Misc cleanup * Removed the Re-Sync Warning when users attempt to resync a successful order * Remove ui side of resync warning * move setup data tab stuff into default
- Loading branch information
Showing
27 changed files
with
2,090 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
sfdx/force-app/main/default/contentassets/stripelogosquare.asset-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ContentAsset xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<isVisibleByExternalUsers>false</isVisibleByExternalUsers> | ||
<language>en_US</language> | ||
<masterLabel>stripelogosquare</masterLabel> | ||
<relationships> | ||
<organization> | ||
<access>VIEWER</access> | ||
</organization> | ||
</relationships> | ||
<versions> | ||
<version> | ||
<number>1</number> | ||
<pathOnClient>stripe-logo-square.png</pathOnClient> | ||
</version> | ||
</versions> | ||
</ContentAsset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- | ||
- Created by jmather-c on 3/23/23. | ||
--> | ||
|
||
<!-- Alert --> | ||
<template> | ||
<div key={getTitle} class={getClasses} role="alert"> | ||
<lightning-icon icon-name={getIcon} alternative-text={getTitle} title={getTitle} size={getIconSize}></lightning-icon> | ||
<h2>{getMessage}</h2> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/** | ||
* Created by jmather-c on 3/23/23. | ||
*/ | ||
|
||
import { LightningElement, api } from 'lwc'; | ||
|
||
const AlertTypes = { | ||
warning: { | ||
default_title: 'Warning', | ||
default_classes: 'slds-notify slds-notify_alert slds-alert_warning', | ||
default_icon: 'utility:warning', | ||
}, | ||
alert: { | ||
default_title: 'Alert', | ||
default_classes: 'slds-notify slds-notify_alert', | ||
default_icon: 'utility:question_mark', | ||
}, | ||
error: { | ||
default_title: 'Error', | ||
default_classes: 'slds-notify slds-notify_alert slds-alert_error', | ||
default_icon: 'utility:error', | ||
}, | ||
offline: { | ||
default_title: 'Offline', | ||
default_classes: 'slds-notify slds-notify_alert slds-alert_offline', | ||
default_icon: 'utility:offline', | ||
}, | ||
}; | ||
|
||
export default class Alert extends LightningElement { | ||
@api type; | ||
@api title; | ||
@api classes; | ||
@api icon; | ||
@api message; | ||
@api iconSize = 'x-small'; | ||
|
||
get getTitle() { | ||
return (this.title) ? this.title : AlertTypes[this.type].default_title; | ||
} | ||
|
||
get getClasses() { | ||
return (this.classes) ? this.classes : AlertTypes[this.type].default_classes; | ||
} | ||
|
||
get getIcon() { | ||
return (this.icon) ? this.icon : AlertTypes[this.type].default_icon; | ||
} | ||
|
||
get getIconSize() { | ||
return this.iconSize; | ||
} | ||
|
||
get getMessage() { | ||
return this.message; | ||
} | ||
} | ||
|
||
const typeStrings = {}; | ||
const typeKeys = Object.keys(AlertTypes); | ||
for (let i = 0; i < typeKeys.length; i++) { | ||
const typeKey = typeKeys[i]; | ||
typeStrings[typeKey] = typeKey; | ||
} | ||
|
||
Alert.Types = typeStrings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>54.0</apiVersion> | ||
<description>Alert</description> | ||
<isExposed>false</isExposed> | ||
<masterLabel>Alert</masterLabel> | ||
</LightningComponentBundle> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.