{"id":23250746,"url":"https://github.com/changhuixu/uiowa-universal-workflow","last_synced_at":"2026-03-15T18:49:47.802Z","repository":{"id":162255264,"uuid":"636831237","full_name":"changhuixu/uiowa-universal-workflow","owner":"changhuixu","description":"Components for UIowa Universal Workflow routing history and widget","archived":false,"fork":false,"pushed_at":"2025-06-07T20:57:57.000Z","size":771,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T11:59:58.766Z","etag":null,"topics":["angular","component","uiowa","universal-workflow","workflow"],"latest_commit_sha":null,"homepage":"https://changhuixu.github.io/uiowa-universal-workflow/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/changhuixu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-05T18:45:12.000Z","updated_at":"2025-06-07T20:57:28.000Z","dependencies_parsed_at":"2025-02-12T08:24:13.371Z","dependency_job_id":null,"html_url":"https://github.com/changhuixu/uiowa-universal-workflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/changhuixu/uiowa-universal-workflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fuiowa-universal-workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fuiowa-universal-workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fuiowa-universal-workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fuiowa-universal-workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/changhuixu","download_url":"https://codeload.github.com/changhuixu/uiowa-universal-workflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fuiowa-universal-workflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281215319,"owners_count":26462933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","component","uiowa","universal-workflow","workflow"],"created_at":"2024-12-19T09:14:54.456Z","updated_at":"2026-03-15T18:49:47.786Z","avatar_url":"https://github.com/changhuixu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UIOWA Universal Workflow\n\n[![Build Status](https://github.com/changhuixu/uiowa-universal-workflow/actions/workflows/main.yml/badge.svg)](https://github.com/changhuixu/uiowa-universal-workflow/actions)\n\n[![npm](https://img.shields.io/npm/v/@uiowa/universal-workflow.svg?style=flat-square)](https://www.npmjs.com/package/@uiowa/universal-workflow)\n\nThis NPM package `@uiowa/universal-workflow` serves as the standard way to display Universal Workflow widget and routing history in Angular. The package contains two components, `workflow-widget` and `uw-routing-history`, and a service `WorkflowService`.\n\nThis package depends on `@uiowa/spinner` which shows a loading placeholder while the Universal Workflow data is loading.\n\n[Demo](https://changhuixu.github.io/uiowa-universal-workflow/)\n\n## Usage\n\n- The Widget Component\n\n  ```html\n  @if(uwPermissions?.canSign){\n  \u003cworkflow-widget [packageId]=\"packageId\" /\u003e\n  } @else {\n  \u003cuw-routing-history [packageId]=\"packageId\" /\u003e\n  }\n  ```\n\n  ```ts\n  ngOnInit(): void {\n    this.route.queryParamMap\n      .pipe(\n        switchMap((params: ParamMap) =\u003e {\n          if (!params) {\n            return of(null);\n          }\n          this.packageId = +(params.get('packageId') || '');\n          if (!this.packageId) {\n            return of(null);\n          }\n\n          this.loading.set(true);\n          return this.svc.getMyForm(this.packageId).pipe(finalize(() =\u003e this.loading.set(false)));\n        })\n      )\n      .subscribe((x) =\u003e {\n        if (x) {\n          this.dataRows = x.data;\n          this.uwPermissions = x.permissions;\n        }\n      });\n  }\n  ```\n\n- The Routing History Component\n\n  ```html\n  \u003cuw-routing-history [packageId]=\"13082237\" /\u003e\n  ```\n\n- The Workflow Service\n\n  By default, you don't need to touch the `WorkflowService`. The service has two methods: `getWorkflowWidgetConfig()` and `getPackageRoutingHistory(packageId: number): Observable\u003cstring\u003e`, which call backend API endpoints `${this.api}/widget-config` and `${this.api}/packages/${packageId}/routing-history` where `protected readonly api: string = 'api/workflow'`.\n\n  If you decide to choose a different implementation, then you can follow the demo app in this solution to provide another service.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanghuixu%2Fuiowa-universal-workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanghuixu%2Fuiowa-universal-workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanghuixu%2Fuiowa-universal-workflow/lists"}