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

Feat/editable participant #142

Merged
merged 13 commits into from May 20, 2024
Merged

Feat/editable participant #142

merged 13 commits into from May 20, 2024

Conversation

dontry
Copy link
Collaborator

@dontry dontry commented Apr 29, 2024

This PR enables users to edit participant name:

  1. Add a new member participantPositions to Pariticipants class. participantPositions is a map where to keep track of participant names and their positions.

  2. Record participant's position when traversing the parseTree.

  3. Create a new component PariticipantLabel for editing label names and updating the participant instances in code

  4. Disable edit in static render mode

Screen.Recording.2024-05-02.at.9.53.36.pm.mov

@MrCoder
Copy link
Collaborator

MrCoder commented May 2, 2024

In the following case, the expected result should be

A as "A is a service 1"
A.method
Screen.Recording.2024-05-02.at.10.26.44.PM.mov

Copy link
Collaborator

@MrCoder MrCoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that it does not handle participant alias correctly.
The syntax is ParticipantA as ParticipantA_Alias.

@dontry
Copy link
Collaborator Author

dontry commented May 3, 2024

It seems that it does not handle participant alias correctly. The syntax is ParticipantA as ParticipantA_Alias.

Fixed

@MrCoder
Copy link
Collaborator

MrCoder commented May 3, 2024

First part is on the main branch where new E works as expected. The second part is the PR branch participant is not displayed with new E.

Screen.Recording.2024-05-04.at.9.01.14.AM.mov

@@ -46,21 +64,29 @@ ToCollector.enterParticipant = onParticipant;
let onTo = function (ctx) {
if (isBlind) return;
let participant = ctx.getFormattedText();
participants.Add(participant);
const participantInstance = participants.Get(participant);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same logic needs to be implemented in enterCreation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alrighty. Added same label check in enterCreation.

src/parser/ToCollector.js Outdated Show resolved Hide resolved
@dontry dontry force-pushed the feat/editable-participant branch from ff87b1d to 8a59877 Compare May 16, 2024 13:32
@dontry
Copy link
Collaborator Author

dontry commented May 17, 2024

Address the issue of calling a method after creating a new instance and assigning to a new variable

Screen.Recording.2024-05-17.at.10.06.36.PM.mov

@MrCoder MrCoder merged commit deff410 into main May 20, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants