Skip to content
Snippets Groups Projects
Forked from project / project_browser
149 commits behind the upstream repository.
utkarsh_33's avatar
Issue #3323354 by utkarsh_33, chrisfromredfin, narendrar, srishtiiee, rkoller,...
utkarsh_33 authored
Issue #3323354 by utkarsh_33, chrisfromredfin, narendrar, srishtiiee, rkoller, benjifisher, lostcarpark, tim.plunkett, anmolgoyal74, bnjmnm, worldlinemine, ravi.shankar, simohell: Review all pop-up messages shown by the Svelte UI installer for user friendliness
22c5545b
History

Introduction

Project Browser (PB) makes it possible to find modules within your Drupal installation. It removes the need to leave the admin UI and visit Drupal.org to find and install modules. It is build to be a more intuitive experience than the module listing on Drupal.org. Only modules compatible with your site are displayed, and enhanced filtering capabilities provide a streamlined view of projects.

Project Browser queries the Drupal.org API in real-time to ensure that the content is easily accessible and up to date. (You may write a plugin to switch using the Drupal API for your own backend if you wish.)

Our goal is to make it easier to find and install modules for people new to Drupal and site builders. Developers will also find this valuable since it provides the composer commands to get the modules.

Requirements

This module requires no modules outside of Drupal core.

Installation

If you intend to contribute to Project Browser, skip this step and use the "Contributing" instructions instead

Install with composer: composer require drupal/project_browser then enable the module.

Contributing

  • Follow the Git instructions to clone project browser to your site
  • In the /project_browser directory, install PHP dependencies with composer install
  • In the /project_browser/sveltejs directory:
    • install JS dependencies with yarn install
    • For development, run the dev script yarn dev which will watch for filesystem changes
      • Note: yarn dev will report the app is available localhost, but it is fully available in your Drupal site at admin/modules/browse
    • When you are done, compile the changes with yarn build

NOTE: More information is available in the contributor.md file!

Configuration

Navigate to Administration > Extend > Browse.

Filter by Recommended projects or All projects Search and filter by Title, Sort By, Order and Categories Customize results layout by List or Grid Format

Updating fixtures for Drupal.org JSON:API

The tests in tests/src/FunctionalJavascript/ProjectBrowserUiTestJsonApi.php use data from local fixtures stored in the tests/fixtures/drupalorg_jsonapi folder instead of actual API endpoints.

DrupalOrgClientMiddleware.php contains the mapping from request to fixture file.

If this data needs to change, just change the queries or mapping in the above file and run the PHP script to regenerate the fixtures:

php scripts/regenerate-drupalorg-jsonapi-fixture.php

Maintainers