Skip to content

feat(search): configurable universes#1141

Open
abulte wants to merge 24 commits into
mainfrom
feat/search/universe
Open

feat(search): configurable universes#1141
abulte wants to merge 24 commits into
mainfrom
feat/search/universe

Conversation

@abulte

@abulte abulte commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Adds a configurable "universe" search to GlobalSearch. Each universe is defined by a Topic id and gets dedicated types + filters and sort configs. The change is retro-compatible with current behaviour, using the same config key that can take both shapes (universes and legacy).

  const universes: UniverseConfig[] = [
    {
      key: 'sante',
      name: 'Santé',
      icon: RiHeartPulseLine,
      topicId: '5c4ae55a634f4117716d5656',
      types: [
        {
          class: 'datasets',
          basicFilters: ['organization', 'tag', 'format', 'license'],
          sortOptions: defaultDatasetSortOptions,
        },
        {
          class: 'dataservices',
          basicFilters: ['organization'],
        }
      ],
    },
    {
      key: 'education',
      name: 'Éducation',
      icon: RiBookOpenLine,
      topicId: '5c4ae65a634f4117716d5657',
      types: [
        {
          class: 'datasets',
          basicFilters: ['organization', 'geozone', 'granularity'],
          defaultSort: '-created',
        },
        {
          class: 'dataservices',
          basicFilters: ['organization'],
        },
      ],
    },
  ]
Capture d’écran 2026-07-23 à 14 47 17

Fix ecolabdata/ecospheres#1152

@abulte
abulte marked this pull request as ready for review July 24, 2026 11:47
@abulte
abulte requested a review from ThibaudDauce July 24, 2026 11:47
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.

Prototypage de la logique "univers" dans la recherche unifiée.

1 participant