Skip to content

Commit

Permalink
Data fields and objects for new IA solution (#1845)
Browse files Browse the repository at this point in the history
* Data fields and objects for new IA solution

* Add fields to perm set

* Add picklist values

* Edit page layouts and picklists

* UI and timeline functionality for new FIA

* added formula for Task/Event header, new fields

* Edit Id fields

* new field, changes to layout

* Revert "new field, changes to layout"

This reverts commit 138566d.

* Correcting errors

* More corrected errors

* Remove test-class

---------

Co-authored-by: piszosta <piotr.szostak@nav.no>
Co-authored-by: piszosta <42918948+piszosta@users.noreply.github.com>
Co-authored-by: TonjeKaridotterOkland <55350586+TonjeKaridotterOkland@users.noreply.github.com>
  • Loading branch information
4 people authored Sep 26, 2024
1 parent e934c23 commit bd6113a
Show file tree
Hide file tree
Showing 76 changed files with 3,483 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .sf/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"target-org": "arbeidsgiver-base"
}
"target-org": "test-arbeidsgiver-base",
"target-dev-hub": "vscodeOrg"
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private without sharing class Activity_AddAccountTest {
);
}
}

/*
@isTest
private static void testInsertTask_accountAsWhatId() {
User u = [SELECT Id FROM User WHERE LastName = 'ARBEIDSGIVER USER' LIMIT 1];
Expand All @@ -52,13 +52,14 @@ private without sharing class Activity_AddAccountTest {
Test.StopTest();
t = [SELECT Id, RelatedToAccount__c FROM Task WHERE Id = :t.Id LIMIT 1];
System.assertEquals(
acc.Id,
t.RelatedToAccount__c,
'Should have added the temp layoffs account to Task.RelatedToAccount__c'
);
}
}
}*/

@isTest
private static void testInsertEvent() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<label>IA Cooperation Event</label>
<protected>false</protected>
<values>
<field>AllowAutoOpen__c</field>
<value xsi:type="xsd:boolean">false</value>
</values>
<values>
<field>AutomaticRefresh_PushTopicName__c</field>
<value xsi:type="xsd:string">TIMELINE_EventShadow__c</value>
</values>
<values>
<field>AutomaticRefresh__c</field>
<value xsi:type="xsd:boolean">true</value>
</values>
<values>
<field>CreateableObject_Field1__c</field>
<value xsi:type="xsd:string">TAG_ActivityType__c</value>
</values>
<values>
<field>CreateableObject_Field2__c</field>
<value xsi:type="xsd:string">TAG_IsIAPriority__c</value>
</values>
<values>
<field>CreateableObject_Field3__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>CreateableObject_RecordType__c</field>
<value xsi:type="xsd:string">IA_event</value>
</values>
<values>
<field>CreateableObject_TextEnglish__c</field>
<value xsi:type="xsd:string">Meeting</value>
</values>
<values>
<field>CreateableObject_TextNorwegian__c</field>
<value xsi:type="xsd:string">Møte</value>
</values>
<values>
<field>CreateableObject_Value1__c</field>
<value xsi:type="xsd:string">Prioritert IA (Fia)</value>
</values>
<values>
<field>CreateableObject_Value2__c</field>
<value xsi:type="xsd:string">true</value>
</values>
<values>
<field>CreateableObject_Value3__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>CustomView__c</field>
<value xsi:type="xsd:boolean">false</value>
</values>
<values>
<field>ExpandedFieldsToDisplay__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>FilterableCheckbox__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>FilterablePicklist1__c</field>
<value xsi:type="xsd:string">TAG_service__c</value>
</values>
<values>
<field>FilterablePicklist2__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>SLDS_Dropdown_Icon__c</field>
<value xsi:type="xsd:string">utility:event</value>
</values>
<values>
<field>SLDS_Icon__c</field>
<value xsi:type="xsd:string">standard:event</value>
</values>
<values>
<field>SLDS_Timeline_Color__c</field>
<value xsi:type="xsd:string">dc7792</value>
</values>
<values>
<field>SObjectDateFieldIsDate__c</field>
<value xsi:type="xsd:boolean">true</value>
</values>
<values>
<field>SObjectDateField__c</field>
<value xsi:type="xsd:string">ActivityDate</value>
</values>
<values>
<field>SObjectName__c</field>
<value xsi:type="xsd:string">Event</value>
</values>
<values>
<field>SObjectRelatedUserId__c</field>
<value xsi:type="xsd:string">WhoId</value>
</values>
<values>
<field>SObjectSubtitle__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>SObjectTitle__c</field>
<value xsi:type="xsd:string">IAThemeServiceName__c</value>
</values>
<values>
<field>SObjectTypeField__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>SObjectTypeValue__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>SubtitleFutureEnglish__c</field>
<value xsi:type="xsd:string">will have this meeting</value>
</values>
<values>
<field>SubtitleFutureNorwegian__c</field>
<value xsi:type="xsd:string">skal ha et møte</value>
</values>
<values>
<field>SubtitlePastEnglish__c</field>
<value xsi:type="xsd:string">had a meeting</value>
</values>
<values>
<field>SubtitlePastNorwegian__c</field>
<value xsi:type="xsd:string">hadde et møte</value>
</values>
<values>
<field>SubtitleRelatedUserPrepositionEng__c</field>
<value xsi:type="xsd:string">with</value>
</values>
<values>
<field>SubtitleRelatedUserPrepositionNor__c</field>
<value xsi:type="xsd:string">med</value>
</values>
</CustomMetadata>
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<label>IA Cooperation Task</label>
<protected>false</protected>
<values>
<field>AllowAutoOpen__c</field>
<value xsi:type="xsd:boolean">false</value>
</values>
<values>
<field>AutomaticRefresh_PushTopicName__c</field>
<value xsi:type="xsd:string">TIMELINE_Task</value>
</values>
<values>
<field>AutomaticRefresh__c</field>
<value xsi:type="xsd:boolean">true</value>
</values>
<values>
<field>CreateableObject_Field1__c</field>
<value xsi:type="xsd:string">TAG_ActivityType__c</value>
</values>
<values>
<field>CreateableObject_Field2__c</field>
<value xsi:type="xsd:string">TAG_IsIAPriority__c</value>
</values>
<values>
<field>CreateableObject_Field3__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>CreateableObject_RecordType__c</field>
<value xsi:type="xsd:string">IA_task</value>
</values>
<values>
<field>CreateableObject_TextEnglish__c</field>
<value xsi:type="xsd:string">Task</value>
</values>
<values>
<field>CreateableObject_TextNorwegian__c</field>
<value xsi:type="xsd:string">Oppgave</value>
</values>
<values>
<field>CreateableObject_Value1__c</field>
<value xsi:type="xsd:string">Prioritert IA (Fia)</value>
</values>
<values>
<field>CreateableObject_Value2__c</field>
<value xsi:type="xsd:string">true</value>
</values>
<values>
<field>CreateableObject_Value3__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>CustomView__c</field>
<value xsi:type="xsd:boolean">false</value>
</values>
<values>
<field>ExpandedFieldsToDisplay__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>FilterableCheckbox__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>FilterablePicklist1__c</field>
<value xsi:type="xsd:string">TAG_service__c</value>
</values>
<values>
<field>FilterablePicklist2__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>SLDS_Dropdown_Icon__c</field>
<value xsi:type="xsd:string">utility:task</value>
</values>
<values>
<field>SLDS_Icon__c</field>
<value xsi:type="xsd:string">standard:task</value>
</values>
<values>
<field>SLDS_Timeline_Color__c</field>
<value xsi:type="xsd:string">6cbd7d</value>
</values>
<values>
<field>SObjectDateFieldIsDate__c</field>
<value xsi:type="xsd:boolean">true</value>
</values>
<values>
<field>SObjectDateField__c</field>
<value xsi:type="xsd:string">ActivityDate</value>
</values>
<values>
<field>SObjectName__c</field>
<value xsi:type="xsd:string">Task</value>
</values>
<values>
<field>SObjectRelatedUserId__c</field>
<value xsi:type="xsd:string">WhoId</value>
</values>
<values>
<field>SObjectSubtitle__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>SObjectTitle__c</field>
<value xsi:type="xsd:string">IAThemeServiceName__c</value>
</values>
<values>
<field>SObjectTypeField__c</field>
<value xsi:type="xsd:string">Type</value>
</values>
<values>
<field>SObjectTypeValue__c</field>
<value xsi:type="xsd:string">null</value>
</values>
<values>
<field>SubtitleFutureEnglish__c</field>
<value xsi:type="xsd:string">have this task</value>
</values>
<values>
<field>SubtitleFutureNorwegian__c</field>
<value xsi:type="xsd:string">har denne oppgaven</value>
</values>
<values>
<field>SubtitlePastEnglish__c</field>
<value xsi:type="xsd:string">had a task</value>
</values>
<values>
<field>SubtitlePastNorwegian__c</field>
<value xsi:type="xsd:string">hadde en oppgave</value>
</values>
<values>
<field>SubtitleRelatedUserPrepositionEng__c</field>
<value xsi:type="xsd:string">with</value>
</values>
<values>
<field>SubtitleRelatedUserPrepositionNor__c</field>
<value xsi:type="xsd:string">med</value>
</values>
</CustomMetadata>
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomMetadata xmlns="http://soap.sforce.com/2006/04/metadata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<label>IA Cooperation &lt;= Task</label>
<protected>false</protected>
<values>
<field>AppAPIName__c</field>
<value xsi:nil="true"/>
</values>
<values>
<field>ConfigId__c</field>
<value xsi:type="xsd:string">TAG_NAV_default</value>
</values>
<values>
<field>CreateableObject_Checkbox__c</field>
<value xsi:type="xsd:boolean">true</value>
</values>
<values>
<field>CreateableObject_NoOverride__c</field>
<value xsi:type="xsd:boolean">true</value>
</values>
<values>
<field>IsActive__c</field>
<value xsi:type="xsd:boolean">true</value>
</values>
<values>
<field>IsMacro__c</field>
<value xsi:type="xsd:boolean">false</value>
</values>
<values>
<field>SObjectAssigneeId__c</field>
<value xsi:type="xsd:string">OwnerId</value>
</values>
<values>
<field>SObjectParent__c</field>
<value xsi:type="xsd:string">IACooperation__c</value>
</values>
<values>
<field>SObjectRelationshipField__c</field>
<value xsi:type="xsd:string">WhatId</value>
</values>
<values>
<field>Timeline_Child__c</field>
<value xsi:type="xsd:string">TAG_IA_Cooperation_Task</value>
</values>
</CustomMetadata>
Loading

0 comments on commit bd6113a

Please sign in to comment.