Skip to content

Commit

Permalink
add source
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Gerow committed Apr 28, 2021
0 parents commit f34c135
Show file tree
Hide file tree
Showing 132 changed files with 33,813 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .forceignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
#

AppSwitcher.appMenu
Admin.profile-meta.xml
Security.settings-meta.xml
*.objectTranslation
package.xml
force-app/main/default/profiles/*
force-app/main/default/settings/*
**/jsconfig.json

**/.eslintrc.json
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
settings.json
apex.db
.sfdx
.vscode
src

\.DS_Store
.localdevserver
jsconfig.json
23 changes: 23 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"trailingComma": "none",
"overrides": [
{
"files": "**/lwc/**/*.html",
"options": { "parser": "lwc" }
},
{
"files": "*.{cmp,page,component}",
"options": { "parser": "html" }
},
{
"files": "*.{cls,trigger}",
"options": {
"tabWidth": 4,
"printWidth": 100,
"useTabs": false,
"endOfLine": "lf",
"requirePragma": true
}
}
]
}
674 changes: 674 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Metadata Tracker

The Metadata Tracker allows you to track your metadata from within your Salesforce org, making it easier to manage what needs to be deployed during a project.

## Installation

1. Ensure my domain is enabled (this is needed for any lightning components to render!)
2. Navigate to the latest release for a package installation link: [latest release](https://github.com/dmgerow/metadata-tracker/releases/latest)
3. Install for admins only
4. Assign the Metadata Tracker Permission Set to your team
5. Configure the custom settings if you want to do special things (only use org custom settings)

## Usage

The most up to date information in the help component can be found [here](https://docs.google.com/document/d/1Vo7t0vxxUo2qcHiKo7uifm5SY3G8Rd-u41MDNAuKKys/edit#)

### Tracking Metadata

1. Open the Metadata Tracker App
2. Select the metadata type you would like to add
3. Select the piece of metadata that you would like to add or remove from the tracker

### Generating Packages (for constructive and destructive changes)

1. Open the Metadata Tracker App
2. Click "Get Packages"
3. Specify if you want all tracked metadata, or only metadata tracked during a specified time range.
4. Download zip
5. Open zip to find the package and destructiveChanges files

### Reporting on Tracked Metadata

1. Open the Metadata Tracker Report Folder
2. Click a report or make your own

## Troubleshooting

Q: I cannot see the utility bar in the Metadata Tracker App, what is wrong?

A: Try adding the component to another app.

## Technical Setup Notes

To assign yourself the Metadata Tracker Permission Set

`sfdx force:user:permset:assign -n MetadataTracker`
12 changes: 12 additions & 0 deletions config/project-scratch-def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"orgName": "DGerow Company",
"edition": "Developer",
"settings": {
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"mobileSettings": {
"enableS1EncryptedStoragePref2": false
}
}
}
17 changes: 17 additions & 0 deletions force-app/main/default/applications/MetadataTracker.app-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">
<brand>
<headerColor>#0070D2</headerColor>
<shouldOverrideOrgTheme>false</shouldOverrideOrgTheme>
</brand>
<formFactors>Large</formFactors>
<isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled>
<isNavPersonalizationDisabled>false</isNavPersonalizationDisabled>
<label>Metadata Tracker</label>
<navType>Standard</navType>
<tabs>MetadataTrackerHome</tabs>
<tabs>standard-report</tabs>
<tabs>MetadataFile__c</tabs>
<tabs>Help</tabs>
<uiType>Lightning</uiType>
</CustomApplication>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">
<brand>
<headerColor>#0070D2</headerColor>
<shouldOverrideOrgTheme>false</shouldOverrideOrgTheme>
</brand>
<formFactors>Large</formFactors>
<isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled>
<isNavPersonalizationDisabled>false</isNavPersonalizationDisabled>
<label>Metadata Tracker Console</label>
<navType>Console</navType>
<tabs>MetadataTrackerHome</tabs>
<tabs>standard-report</tabs>
<tabs>MetadataFile__c</tabs>
<tabs>Help</tabs>
<uiType>Lightning</uiType>
<workspaceConfig>
<mappings>
<tab>Help</tab>
</mappings>
<mappings>
<tab>MetadataFile__c</tab>
</mappings>
<mappings>
<tab>MetadataTrackerHome</tab>
</mappings>
<mappings>
<tab>standard-report</tab>
</mappings>
</workspaceConfig>
</CustomApplication>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<aura:event type="COMPONENT" description="Close the feedback modal" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<AuraDefinitionBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="closeFeedback">
<apiVersion>51.0</apiVersion>
<description>A Lightning Event Bundle</description>
</AuraDefinitionBundle>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<aura:event type="COMPONENT" description="Close the package generator" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<AuraDefinitionBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="closePackageGenerator">
<apiVersion>51.0</apiVersion>
<description>A Lightning Event Bundle</description>
</AuraDefinitionBundle>
6 changes: 6 additions & 0 deletions force-app/main/default/aura/feedback/feedback.auradoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<aura:documentation>
<aura:description>Documentation</aura:description>
<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
Example Description
</aura:example>
</aura:documentation>
31 changes: 31 additions & 0 deletions force-app/main/default/aura/feedback/feedback.cmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<aura:component controller="FeedbackController">

<!-- Button Attributes -->
<aura:attribute name="buttonDisabled" type="Boolean" default="true" />

<aura:attribute name="body" type="String"/>

<!-- Events -->
<aura:registerEvent name="closeFeedback" type="c:closeFeedback" />

<div class="demo-only" style="height: 640px;">
<section role="dialog" tabindex="-1" aria-labelledby="feedback-header" aria-modal="true" aria-describedby="feedback-body"
class="slds-modal slds-fade-in-open">
<div class="slds-modal__container">
<header class="slds-modal__header">
<h2 id="feedback-header" class="slds-text-heading_medium slds-hyphenate">Submit Feedback</h2>
</header>
<div class="slds-modal__content slds-p-around_medium" id="feedback-body">
<lightning:textarea name="body" label="Description"
placeholder="Enter description here" value="{!v.body}" onchange="{!c.doValidateBody}"/>
</div>
<footer class="slds-modal__footer">
<lightning:button label="Cancel" onclick="{!c.doCloseFeedback}" />
<lightning:button variant="brand" label="Submit" disabled="{!v.buttonDisabled}" onclick="{!c.doSubmitFeedback}" />
</footer>
</div>
</section>
<div class="slds-backdrop slds-backdrop_open"></div>
</div>

</aura:component>
5 changes: 5 additions & 0 deletions force-app/main/default/aura/feedback/feedback.cmp-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<AuraDefinitionBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="feedback">
<apiVersion>51.0</apiVersion>
<description>A Lightning Component Bundle</description>
</AuraDefinitionBundle>
2 changes: 2 additions & 0 deletions force-app/main/default/aura/feedback/feedback.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.THIS {
}
3 changes: 3 additions & 0 deletions force-app/main/default/aura/feedback/feedback.design
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<design:component >

</design:component>
7 changes: 7 additions & 0 deletions force-app/main/default/aura/feedback/feedback.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions force-app/main/default/aura/feedback/feedbackController.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
({
doSubmitFeedback: function (component, event, helper) {
helper.doSubmitFeedback(component);
},
doCloseFeedback: function (component, event, helper) {
helper.doCloseFeedback(component);
},
doValidateBody: function (component, event, helper) {
if (component.get("v.body")) {
component.set("v.buttonDisabled",false);
} else {
component.set("v.buttonDisabled", true);
}
}
})
46 changes: 46 additions & 0 deletions force-app/main/default/aura/feedback/feedbackHelper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
({
doSubmitFeedback: function (component) {
component.set("v.buttonDisabled", true);
var action = component.get("c.sendFeedback");
var requestModel = {
"body": component.get("v.body")
};
var requestString = JSON.stringify(requestModel);
console.log(requestString);
action.setParams({
"request": requestString
});
action.setCallback(this, function (response) {
var state = response.getState();
if (state === "SUCCESS") {
this.doFireToastEvent('Feedback submitted', 'success');
this.doCloseFeedback(component);
} else if (state === "ERROR") {
var errors = response.getError();
if (errors) {
if (errors[0] && errors[0].message) {
console.log(errors[0].message);
this.doFireToastEvent(errors[0].message, 'error');
}
} else {
console.log("Unknown error");
}
}
component.set("v.buttonDisabled", false);
});
$A.enqueueAction(action);
},
doFireToastEvent: function (message, type) {
var toastEvent = $A.get("e.force:showToast");
toastEvent.setParams({
type: type,
mode: 'dismissible',
message: message
});
toastEvent.fire();
},
doCloseFeedback: function (component) {
var closeEvent = component.getEvent("closeFeedback");
closeEvent.fire();
}
})
5 changes: 5 additions & 0 deletions force-app/main/default/aura/feedback/feedbackRenderer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
({

// Your renderer method overrides go here

})
6 changes: 6 additions & 0 deletions force-app/main/default/aura/help/help.auradoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<aura:documentation>
<aura:description>Documentation</aura:description>
<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
Example Description
</aura:example>
</aura:documentation>
6 changes: 6 additions & 0 deletions force-app/main/default/aura/help/help.cmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global">
<div class="slds-align_absolute-center">
<iframe style="width:816px; height:960px; border:none;"
src="https://docs.google.com/document/d/e/2PACX-1vSQw2p9z7rUAkr-2OTUJJg-TzfHKxIHimYr51vIiiAK7rFC6FGvfj6_m5aonhJJkCughXewBGwp-Qqi/pub?embedded=true" />
</div>
</aura:component>
5 changes: 5 additions & 0 deletions force-app/main/default/aura/help/help.cmp-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<AuraDefinitionBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="help">
<apiVersion>51.0</apiVersion>
<description>A Lightning Component Bundle</description>
</AuraDefinitionBundle>
2 changes: 2 additions & 0 deletions force-app/main/default/aura/help/help.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.THIS {
}
3 changes: 3 additions & 0 deletions force-app/main/default/aura/help/help.design
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<design:component label="Metadata Tracker Help">

</design:component>
7 changes: 7 additions & 0 deletions force-app/main/default/aura/help/help.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions force-app/main/default/aura/help/helpController.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
({
myAction : function(component, event, helper) {

}
})
5 changes: 5 additions & 0 deletions force-app/main/default/aura/help/helpHelper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
({
helperMethod : function() {

}
})
5 changes: 5 additions & 0 deletions force-app/main/default/aura/help/helpRenderer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
({

// Your renderer method overrides go here

})
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<aura:documentation>
<aura:description>Documentation</aura:description>
<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
Example Description
</aura:example>
</aura:documentation>
Loading

0 comments on commit f34c135

Please sign in to comment.