Skip to content

[RulesDashboard] - Add Referenced Rules #4282

Description

@cielbellerose

Description

Implement referenced rules as clickable links that, on-click, navigate to that rule (by scrolling and opening hierarchy). Since the parser does not yet collect referenced rules, this will be a manual process (which is useful for edits anyway)

Proposed Solution

  • Two new endpoints for adding and deleting referenced rules
  • Additional dropdown to edit + for Add Referenced Rule
  • Modal w/ text box to autocomplete rule code
  • Visual formatting of referenced rules added to the end of rule content
  • Underlined referenced rules only clickable in general view and project view for now

Acceptance Criteria

  • Add a new dropdown option to the edit + to add a referenced rule to any rule

  • Add referenced rule modal should be an autocomplete text box of the rule code to add

  • Added referenced rules should show up to the right of a rule's content in the format of [ T.1.1, T.2 ] each rule code underlined

  • In general view, clicking on an underlined rule code should navigate to that rule code on the page by opening all of the rules ancestor dropdowns

  • In project detail view, clicking on the referenced rule opens it in the project view if it exists in this project

  • In project detail view, if the referenced rule isn't assigned in this project, opens the ruleset general view and navigates to the rule

Stretch goals

  • Update project add rule modal with optional referenced rule adder if added rules contain referenced rules

Mocks

From the epic, but ignoring displaying them as child rules. Only implementing the link formatting (underline/clickable rulecode)

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions