Skip to content

Conversation

bjoernsteinhagen
Copy link
Contributor

@bjoernsteinhagen bjoernsteinhagen commented Aug 14, 2025

Description

Added methods to query existing category mappings for objects and layers, enabling the frontend to display current mapping state in the dropdown.

User Value

Users can now see what category mappings are already applied to their selected objects/layers. See specklesystems/speckle-connectors-dui#48.

Changes:

  • Added GetCategoryMappingsForObjects() method to return a set (i.e. unique list) of categories for given object IDs
  • Added GetCategoryMappingsForLayers() method to return distinct categories for given layer IDs

Validation of changes:

validation-of-changes.mp4

Copy link

linear bot commented Aug 14, 2025

Copy link

codecov bot commented Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 41.20%. Comparing base (213ec7d) to head (2fbe87a).
⚠️ Report is 3 commits behind head on bjorn/cnx-2192-create-a-mapperlayer-filter.

Additional details and impacted files
@@                             Coverage Diff                             @@
##           bjorn/cnx-2192-create-a-mapperlayer-filter    #1030   +/-   ##
===========================================================================
  Coverage                                       41.20%   41.20%           
===========================================================================
  Files                                             109      109           
  Lines                                            3080     3080           
  Branches                                          293      293           
===========================================================================
  Hits                                             1269     1269           
  Misses                                           1765     1765           
  Partials                                           46       46           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bjoernsteinhagen bjoernsteinhagen marked this pull request as ready for review August 14, 2025 15:00
@oguzhankoral oguzhankoral merged commit 2318d51 into bjorn/cnx-2192-create-a-mapperlayer-filter Aug 15, 2025
5 checks passed
@oguzhankoral oguzhankoral deleted the bjorn/cnx-2301-populate-applied-mapping-in-dropdown-for-selected-object branch August 15, 2025 14:54
bjoernsteinhagen added a commit that referenced this pull request Aug 15, 2025
* feat: Add layer mapping support and rename object mapping methods

* feat: object-layer mapping detection for UI updates

* feat: add layer hierarchy mapping resolution

* refactor: unused methods

* feat: layer dropdown

* feat(rhino): add effective object resolution for layer mappings

* fix: event handling

* feat: generic model, duhh

* refactor: move records to mapper namespace

* refactor: consolidate Rhino layer and object utilities into helpers

* refactor: move `GetEffectiveObjectsForLayerMapping` to `RevitMappingResolver`

* chore: update category list (#1028)

* fix:  `ModifyAttributes` for object mapping changes

* fix: lol no need for static

* refactor: DI for helper class

* refactor: hardcoded list in dui

* fix: updating mapped layers

* fix: handle object addition events to update mappings on copy

* feat: poc (#1030)

* fix: no static!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants