Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
9118406
chore: react-router installation, jointjs installation, nextjs upgrad…
Lucki2g Jun 24, 2025
2adc6bb
chore: nexjs routing instead of client side react router. Initial wor…
Lucki2g Jun 24, 2025
490d060
chore: first draft of links (cant seem to make the router work though)
Lucki2g Jun 26, 2025
192e141
chore: addition work on digram page
Lucki2g Jun 27, 2025
feb17cc
chore: merge with other branch
Lucki2g Jun 27, 2025
ee1185c
chore: playing around with attribute filtering
Lucki2g Jun 27, 2025
00d8588
chore: merga main into branch
Lucki2g Jun 28, 2025
6da3414
chore: AI rules and diagram refactor using them
Lucki2g Jun 28, 2025
cdb76d9
chore: more diagram work. Better grid layout, working on add attribute
Lucki2g Jun 29, 2025
9326613
chore: add attribute working
Lucki2g Jun 29, 2025
6c80231
chore: update from main
Lucki2g Jul 11, 2025
e837122
chore: moved diagram sidebar to new navigation
Lucki2g Jul 12, 2025
5ddd936
chore: canvas now able to render again
Lucki2g Jul 12, 2025
456d1e7
chore: click highlight keys
Lucki2g Jul 12, 2025
daea0e2
chore: redid creation of background dots
Lucki2g Jul 13, 2025
ed81c27
chore. selected attribute color stylings
Lucki2g Jul 13, 2025
df9344f
chore: gridlayout changes more dynamic spacing
Lucki2g Jul 13, 2025
88f60be
chore: refactor avoid router code into TS and applying to newer JointJS
Lucki2g Aug 7, 2025
e534974
chore: jumpover and work on simple self referencing
Lucki2g Aug 7, 2025
0746342
chore: refactor diagramview into abstraction renderes
Lucki2g Aug 7, 2025
d03ecb4
Merge remote-tracking branch 'origin/main' into feature/ER-Diagram
Lucki2g Aug 7, 2025
e2a0c51
chore: new sidebar and add/remove entity functionality. Also moved "a…
Lucki2g Aug 9, 2025
26f52dc
chore: hover indication on entities
Lucki2g Aug 9, 2025
ba84e1c
chore: add entire group to diagram option
Lucki2g Aug 9, 2025
887b771
chore: more attribute control. Choose initial attributes. And remove …
Lucki2g Aug 9, 2025
68624b0
feat: square element for colorfull grouping
Lucki2g Aug 9, 2025
8760bd9
fix: simple entity attrbiute management not working bugfix
Lucki2g Aug 9, 2025
dc4a621
chore: attribute selection mode added to "add group"
Lucki2g Aug 9, 2025
79ac552
fix: detailed attribute highlight working again
Lucki2g Aug 9, 2025
1320478
fix: minor issue with attribute hightlight
Lucki2g Aug 9, 2025
4b12030
feat: link/path/relationship options for chaning style and color and …
Lucki2g Aug 9, 2025
c78482c
feat: text element and property pane
Lucki2g Aug 9, 2025
0e8a082
feat: load/save of diagrams using JSON format
Lucki2g Aug 9, 2025
ddaf306
chore: mobile disclaimer
Lucki2g Aug 9, 2025
1b82413
fix: fixed bug when navigating from diagram to datamodel
Lucki2g Aug 9, 2025
43b9635
chore: added reset functionality to reset to a single group and clear…
Lucki2g Aug 9, 2025
9189e9b
chore: added new icon to the diagram nav
Lucki2g Aug 9, 2025
1504f4e
chore: fixing linting errors and removeing old console.logs from earl…
Lucki2g Aug 9, 2025
ccf61dd
chore: more housecleaning
Lucki2g Aug 9, 2025
3d560b5
chore: package lock changes & minor change to relationship label element
Lucki2g Aug 9, 2025
4c12e27
chore: removed old cursor file, altered copilot instructions
Lucki2g Aug 9, 2025
10f9588
chore: added /diagram to middleware. And made loading indication on d…
Lucki2g Aug 9, 2025
d11a904
chore: minor change to default diagratype and fix to loading diagram …
Lucki2g Aug 9, 2025
e766180
fix: dont use full sized entities for grid layout when using simple d…
Lucki2g Aug 9, 2025
84c29c5
fix: removed reset of layout when new entities or existing are edited
Lucki2g Aug 9, 2025
40d0ceb
chore: fixed newly introduced ESLint errors and logs
Lucki2g Aug 9, 2025
9430078
fix: do recalculation on diagramtype swap
Lucki2g Aug 9, 2025
3f255b5
chroe: lint error...
Lucki2g Aug 9, 2025
cc4d309
chore: copilot suggestions
Lucki2g Aug 9, 2025
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
8 changes: 5 additions & 3 deletions Generator/DTO/Relationship.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

namespace Generator.DTO;


public record Relationship(
string Name,
string TableSchema,
string LookupDisplayName,
bool IsCustom,
string Name,
string TableSchema,
string LookupDisplayName,
string RelationshipSchema,
bool IsManyToMany,
CascadeConfiguration? CascadeConfiguration);
9 changes: 4 additions & 5 deletions Generator/DataverseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public async Task<IEnumerable<Record>> GetFilteredMetadata()
.Where(r => entityLogicalNamesInSolution.Contains(r.IntersectEntityName.ToLower()))
.ToList(),
})
.Where(x => x.RelevantAttributes.Count > 0)
.Where(x => x.EntityMetadata.DisplayName.UserLocalizedLabel?.Label != null)
.ToList();

Expand Down Expand Up @@ -146,8 +145,9 @@ private static Record MakeRecord(
.ToList();

var oneToMany = (entity.OneToManyRelationships ?? Enumerable.Empty<OneToManyRelationshipMetadata>())
.Where(x => logicalToSchema.ContainsKey(x.ReferencingEntity) && attributeLogicalToSchema[x.ReferencingEntity].ContainsKey(x.ReferencingAttribute))
.Where(x => logicalToSchema.ContainsKey(x.ReferencingEntity) && logicalToSchema[x.ReferencingEntity].IsInSolution && attributeLogicalToSchema[x.ReferencingEntity].ContainsKey(x.ReferencingAttribute))
.Select(x => new DTO.Relationship(
x.IsCustomRelationship ?? false,
x.ReferencingEntityNavigationPropertyName,
logicalToSchema[x.ReferencingEntity].Name,
attributeLogicalToSchema[x.ReferencingEntity][x.ReferencingAttribute],
Expand All @@ -157,8 +157,9 @@ private static Record MakeRecord(
.ToList();

var manyToMany = relevantManyToMany
.Where(x => logicalToSchema.ContainsKey(x.Entity1LogicalName))
.Where(x => logicalToSchema.ContainsKey(x.Entity1LogicalName) && logicalToSchema[x.Entity1LogicalName].IsInSolution)
.Select(x => new DTO.Relationship(
x.IsCustomRelationship ?? false,
x.Entity1AssociatedMenuConfiguration.Behavior == AssociatedMenuBehavior.UseLabel
? x.Entity1AssociatedMenuConfiguration.Label.UserLocalizedLabel?.Label ?? x.Entity1NavigationPropertyName
: x.Entity1NavigationPropertyName,
Expand Down Expand Up @@ -276,7 +277,6 @@ await Parallel.ForEachAsync(
async (objectId, token) =>
{
metadata.Add(await client.RetrieveEntityAsync(objectId, token));

});

return metadata;
Expand All @@ -299,7 +299,6 @@ await Parallel.ForEachAsync(
async (logicalName, token) =>
{
metadata.Add(await client.RetrieveEntityByLogicalNameAsync(logicalName, token));

});

return metadata;
Expand Down
4 changes: 4 additions & 0 deletions Website/.github/instructions/copilot.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
applyTo: '**'
---
Read file at `ai-rules/README.md` for instructions on how to use this file.
Loading
Loading