diff --git a/public/rules.png b/public/rules.png new file mode 100644 index 0000000..dd7947a Binary files /dev/null and b/public/rules.png differ diff --git a/src/ui/tableOfContents.js b/src/ui/tableOfContents.js index 5f4ce4d..5f1985a 100644 --- a/src/ui/tableOfContents.js +++ b/src/ui/tableOfContents.js @@ -15,42 +15,71 @@ class TableOfContents extends Component { render() { return (
-
-

Tags

-
- - -
-

Rules

-
-
- - - {this.props.rules.map((rule, i) => - - - , + {this.props.rules.length > 0 ? ( +
+
+

Tags

+
+
    + {this.props.tags.map((tag, i) => + (
  • + window.location.hash = `#/${hashConst.tag}/${tag.ID}` + }>{tag.tagName}
  • ), )} -
-
{rule.title}
-
- + +
+

Rules

+
+
+ + + {this.props.rules.map((rule, i) => ( + + + + ))} + +
{rule.title}
+
+
+ ) : ( +
+

Welcome to the Rules Dashboard! This tool helps you manage design rules for your projects.

+

Explore how easy it is to create, view, and manage design rules with the intuitive interface.

+

+
+

How Active Documentation Works?

+

ActiveDocumentation seamlessly integrates into your IDE and codebase, automatically monitoring and enforcing design rules.

+
+

Have not installed Plugin yet?

+

Please check out the installation process here to install the plugin and get started.

+
+

+ To get started, add a new rule by clicking the button above. You can also explore the detailed explanation of how rules work by visiting the Learn Design Rules section. +

+
+
+
+ Rules Dashboard Screenshot +
+

+

Start by creating a rule to begin!

+
+
+ +
+
+
-
+ )}
); }