`glab ci view` does not handle child pipelines for more complex workflows

Describe the feature or problem you'd like to solve

My organization maintains a Go monorepo and we have Gitlab CI configured to run our merge pipeline jobs for only projects that have changes or for any project that depends on one that was changed. To do this, we have a concrete step that generates a yaml file with each job, saves this yaml as an artifact, then triggers a child pipeline that runs the build jobs for each project.

Example:

prepare-mr:
  extends: .create-build-yamls
  only:
    - merge_requests

build-mr:
  stage: build
  only:
    - merge_requests
  needs: ["prepare-mr"]
  trigger:
    include:
      - artifact: projects.yaml
        job: prepare-mr
    strategy: depend

When using glab ci view or any of the others, the child pipeline build-mr and the jobs it contains are not shown; only the prepare-mr job is shown.

Propose a Solution

Include child pipelines and jobs for glab ci commands by checking for pipeline bridges: https://docs.gitlab.com/ee/api/jobs.html#list-pipeline-bridges. This provides the id of the child pipeline which can be used to obtain its jobs.

Additional context

API documentation: https://docs.gitlab.com/ee/api/jobs.html#list-pipeline-bridges