community-plugins icon indicating copy to clipboard operation
community-plugins copied to clipboard

feat(bazaar): improve yarn dev setup and enable bazaar API integration

Open rothenbergt opened this issue 1 year ago • 2 comments

Hey, I just made a Pull Request!

This PR improves the yarn dev setup for the Bazaar plugin, allowing both the frontend and backend to be run together. Additionally, it replaces the mock Bazaar API with the actual Bazaar API to enable project interactions within the plugin.

Before, we had to run yarn start in each individual plugin, and all interactions beyond basic page display were not functioning correctly. For example, if you tried to click one of the project cards, it would result in a RouteRef error due to missing route configuration. Similarly, if you tried to add a project, there was no API mock defined, preventing interaction.

Now, testing of functionality like viewing a project, adding, editing, and deleting projects can be done during isolated local development.

Changes:

  • Improved yarn dev setup to support running both frontend and backend together.
  • Enabled Bazaar API integration to allow for project data interactions in the plugin's development environment.
  • Fixed navigation issues by configuring RouteRef for project cards.
  • Integrated CatalogApi to enable interaction with catalog data.
  • Enabled guest authentication

Screenshots:

Screenshot 2024-10-10 at 4 38 18 PM

:heavy_check_mark: Checklist

  • [x] A changeset describing the change and affected packages. (more info)
  • [ ] Added or updated documentation
  • [ ] Tests for new functionality and regression tests for bug fixes
  • [x] Screenshots attached (for UI changes)
  • [x] All your commits have a Signed-off-by line in the message. (more info)

rothenbergt avatar Oct 10 '24 21:10 rothenbergt

Thanks for the contribution! All commits need to be DCO signed before they are reviewed. Please refer to the the DCO section in CONTRIBUTING.md or the DCO status for more info.

backstage-goalie[bot] avatar Oct 10 '24 21:10 backstage-goalie[bot]

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-bazaar-backend workspaces/bazaar/plugins/bazaar-backend patch v0.4.2
@backstage-community/plugin-bazaar workspaces/bazaar/plugins/bazaar patch v0.5.1

backstage-goalie[bot] avatar Oct 10 '24 21:10 backstage-goalie[bot]

hey this is great @rothenbergt 🙏

I'm thinking it would be nice to describe the development process in the README!

vinzscam avatar Oct 18 '24 14:10 vinzscam

hey this is great @rothenbergt 🙏

I'm thinking it would be nice to describe the development process in the README!

You got it @vinzscam! Updated the base README.

rothenbergt avatar Oct 18 '24 19:10 rothenbergt

just some conflicts to be resolved and then we can ship this!

vinzscam avatar Oct 22 '24 17:10 vinzscam