Skip to content

Archipelago bird census named place selection [Closes #433]#885

Merged
Blodir merged 16 commits intodevelopmentfrom
archipelago-census-np-selection-433
Jan 14, 2026
Merged

Archipelago bird census named place selection [Closes #433]#885
Blodir merged 16 commits intodevelopmentfrom
archipelago-census-np-selection-433

Conversation

@rpulkka
Copy link
Contributor

@rpulkka rpulkka commented Jan 9, 2026

luomus/meta#433
https://433.dev.laji.fi/project/MHL.1166/form/places

Adds new query params filterBy and tab to /form/places.

In np-list component, visible values are used in initData to fix filtering to use enum values instead of enum keys.

datatable.component required changes to avoid scrolling before it is visible. The component also emits filteredIDs based on filtered rows.

Filter was previously only applied to the list tab, but now places are also filtered on the map tab. This includes transforming between fullIdx and filteredIdx in np-map.component, as the map uses index to refer to the active place and the map indexing changes when a filter changes the number of the shown places.

@rpulkka rpulkka added this to the Release 88 milestone Jan 9, 2026
@rpulkka rpulkka requested a review from olzraiti January 9, 2026 13:49
Copy link
Contributor

@olzraiti olzraiti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor whining, otherwise looks good!

Comment on lines 248 to 252
map(visibleValue => {
if (visibleValue && visibleValue.length > 0) {
row[path] = visibleValue;
}
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using map is misleading here. tap would be better since this is a side-effect, not a mapping.

@rpulkka rpulkka requested a review from olzraiti January 13, 2026 12:22
Copy link
Contributor

@olzraiti olzraiti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THanks!

@Blodir Blodir merged commit 572076b into development Jan 14, 2026
1 check passed
@Blodir Blodir deleted the archipelago-census-np-selection-433 branch January 14, 2026 15:53
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.

3 participants