Skip to content

ServiceNowDevProgram/Menu-Generating-Operations-Program-Widget-Experience-Page

Repository files navigation

banner

HitCount Pull Requests welcome

Welcome!

Hola! @MGOPW here. This Experience Page repository has a sister repository containing the accompanying Custom Component for this page, be sure to check out both repos to get the full picture of what we are doing here. This is a bit complex of a setup, but it should provide you with a great starting point to learn Custom Components and UI Builder. You must check out the Installation instructions section for more information on how to install these!

Other resources you should check out:

And lastly, this repository is part of a larger coordinated effort by the ServiceNow Developer Advocate to provide lots of fun ServiceNow projects for Hacktoberfest. Be sure to check out the main repository README to see what else you can participate in!

Content

What is this even for?

You can create something called Portal Experiences in UI Builder, which are similar to Workspaces. They aren't currently a replacement for Angular Service Portal as of the writing of this repo, you can read more about this on the Next Experience Community forum. These Portal Experiences have menus that are generated from JSON, and it's a pain to manage them right now. So Jesalyn and I decided to do something fun - why not learn how to make a custom component while simultaneously spending hundreds of hours making a solution for something that only mildly inconvenienced us? (And then submit it as a Creator Con lab!)

And that's what you see here! We've created a Custom Component and Experience page combo to make menus for us. We didn't quite finish it, but we wanted to share the source code with everyone so you'd have a good starting point to look at when building your own custom components.

But thanks to Hacktoberfest, it gets even better - now you can help us finish it by contributing! Be sure to check out our CONTRIBUTING.md file for more info on how you can help!

my dream

This is what i pictured the final page would look like. We're almost there!

What do I need to know?

  • This repository contains the Experience Page that encapsulates the Custom Component from the sister repository. You need to install this to have an easier time testing your own component, all installation instructions are in CONTRIBUTING.md.
  • We've created issues to list out contribution ideas you might want to pick up! Or if you think of new stuff to contribute, make a new issue and let us know what you're going to work on.
  • Design philosophy: Components should be presentational if possible, but if the exchange with the server data is complex enough, and you're going to use it in multiple places, you're really better off with a connected component. In this case, we tried to stick to making the component more presentational in nature so keep that in mind when adding new features if possible.
  • Collaborating with others on pages is rather complex due to how the scopes work, so be sure to follow every step in our CONTRIBUTING.md so you can be successful and have your PRs approved.

Some information on Portal Experience menus

I've tried to reverse engineer these as best as I could to make this component, but I know I haven't fully figured it out yet. Here's what I already know to help you get started.

Menus have a complex parent/child relationship that determines their behavior and how menus are presented. There's an issue created to investigate and implement this feature so if you want to delve deeper, please go right ahead.

For example, the more menus you have nested, their appearance and layout changes in the menu itself. I don't quite remember the number, unfortunately.

Actions have similar behavior, which I haven't cataloged. Sometimes they show up as buttons, while other times they show up as links.

anatomy of a menu

Visual of what i've figured out so far.

Installation instructions

Follow these instructions to install the experience page and the menu builder component in your instance.

If you ever get stuck, you can find us over on the SNDEVS community (invite.sndevs.com) in either the #hactoberfest channel or the #next-experience-uib-workspace channel.

Things you'll need:

  1. Open App Engine Studio and import this repository directly to your instance.
  2. Install the Update Set provided in the Releases section of the sister repository.
  3. Search for Hacktober23 in the Filter Navigation 
    1. Menu Builder – takes you to the page to play with the component 
    2. UI Builder – takes you to the UI Builder page for the Menu Builder page 

About

This is the UI Builder Page that actually houses the component so you can use it in your instance to craft awesome custom menus. If you want to test your component in an instance, this is a must have.

Topics

Resources

Stars

Watchers

Forks