Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class diagrams: allow notes for namespace'd classes #4706

Open
The-Alchemist opened this issue Aug 7, 2023 · 6 comments · May be fixed by #5814
Open

class diagrams: allow notes for namespace'd classes #4706

The-Alchemist opened this issue Aug 7, 2023 · 6 comments · May be fixed by #5814
Assignees
Labels

Comments

@The-Alchemist
Copy link
Contributor

Proposal

Short Description

...should improve its support for notes inside namespaces.

Example Syntax

The following example shows a note for a specific class inside a namespace. This syntax currently results in a parse error, Expecting CLASS, got NOTE_FOR:

classDiagram
namespace BaseShapes {

    note for Triangle "i am a note for Triangle"
    class Triangle
    class Rectangle {
      double width
      double height
    }
}
Loading

You can play with this syntax here on the playground.

Details

Technically, you can add a note for a namespaced class, but you have to place the note outside the namespace, and therefore, it renders outside the namespace.

classDiagram
namespace BaseShapes {

    class Triangle
    class Rectangle {
      double width
      double height
    }
}
note for Triangle "i am a note for Triangle"

Loading

The above diagram doesn't render in Github's viewer, but you can view it on the playground. It appears like this:
image

Example


classDiagram
namespace BaseShapes {

    note for Triangle "i am a note for Triangle"
    class Triangle
    class Rectangle {
      double width
      double height
    }
}

Screenshots

No response

@The-Alchemist The-Alchemist added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Aug 7, 2023
@jgreywolf jgreywolf added Graph: Class Status: Approved Is ready to be worked on Good first issue! and removed Status: Triage Needs to be verified, categorized, etc labels Aug 27, 2024
@kairi003 kairi003 linked a pull request Sep 2, 2024 that will close this issue
4 tasks
@Adarsha186
Copy link

Hi @The-Alchemist, is this issue still open, I'm interested in doing open source contributions, if this issue is open can I take up this task.

@The-Alchemist
Copy link
Contributor Author

The-Alchemist commented Nov 20, 2024

Hi @The-Alchemist, is this issue still open, I'm interested in doing open source contributions, if this issue is open can I take up this task.

I think @kairi003 is working on it, or is done. See #5814

But please don't hesitate to pick up another task!

@kairi003
Copy link
Contributor

@The-Alchemist Yes, the pr to resolve this issue is done. Now I am waiting for the merge, is there anything I can do for that?

@jgreywolf
Copy link
Contributor

I am rerunning the tests to see if we get past the timeout failure there

@kairi003
Copy link
Contributor

Error: You have reached the maximum screenshot capacity included in your Pro open source xl Plan. Please upgrade your Plan.
https://github.com/marketplace/argos-ci
image

@jgreywolf I tried re-running as well, but to no avail.
The message says reached the maximum screenshot capacity, but mermaid is already on the highest plan: XL.
I think we need to wait until December for the capacity to reset in order to pass the e2e tests.

@jgreywolf
Copy link
Contributor

@sidharthv96 @ashishjain0512 @knsv @aloisklink Can one of you assist with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants