Skip to content

Feature/finished/iia 1952 edit coord concept in journal#465

Merged
dholubek merged 10 commits intoikmdev:mainfrom
dholubek:feature/finished/IIA-1952-edit-coord-concept-in-journal
May 15, 2025
Merged

Feature/finished/iia 1952 edit coord concept in journal#465
dholubek merged 10 commits intoikmdev:mainfrom
dholubek:feature/finished/IIA-1952-edit-coord-concept-in-journal

Conversation

@dholubek
Copy link
Contributor

https://ikmdev.atlassian.net/browse/IIA-1952

existing coordinate menu in the classic Komet Concept navigator
image

we are showing this with from the bulls-eye onward to match the bulls-eye that is in the Concept's window title bar
NOTE the menu is display only
image

apologies for the large diff on concept-details.fxml... this appears to be SceneBuilder formatting on save

@dholubek dholubek requested review from bhharsh13, carldea, dukke, jdsmithsos and swaroopsalvi and removed request for carldea, dukke and swaroopsalvi May 14, 2025 20:33
@dholubek dholubek marked this pull request as draft May 14, 2025 20:48
@dholubek dholubek changed the title Feature/finished/iia 1952 edit coord concept in journal DO NOT MERGE YET: Feature/finished/iia 1952 edit coord concept in journal May 14, 2025
@dholubek dholubek marked this pull request as ready for review May 15, 2025 14:24
@dholubek dholubek changed the title DO NOT MERGE YET: Feature/finished/iia 1952 edit coord concept in journal Feature/finished/iia 1952 edit coord concept in journal May 15, 2025
}

public DetailsController(UUID conceptTopic) {
public DetailsController(UUID conceptTopic, ViewProperties viewProperties) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we pass item through the view model?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes... I will update it...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@carldea actually can we do this refactoring after the demo? it affected the navigation from the description pencil icon

Copy link
Contributor

Choose a reason for hiding this comment

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

yes. Please create a new ticket to refactor (clean up).
I will approve.

.controller(new DetailsController(conceptTopic))
.controller(new DetailsController(conceptTopic, viewProperties))
.updateViewModel("conceptViewModel", viewModel ->
viewModel.setPropertyValue(CURRENT_JOURNAL_WINDOW_TOPIC, journalWindowTopic));
Copy link
Contributor

@carldea carldea May 15, 2025

Choose a reason for hiding this comment

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

Is there a difference between the conceptTopic & journalWindowTopic?

I prefer controllers to be empty constructors. JavaFX's makes values available in the initialize() method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If I recall correctly the concept topic is for the concept window only and for things that only affect the current concept window like editing its FQN, we don't want all open concept windows to listen for that. And the journal topic is for events inside the entire journal window like saving the concept itself so that a navigator can be refreshed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense.
I think the data passing (to constructor) was before Cognitive apis. We can pass in 'conceptTopic and viewProperties' in the updateViewModel() method.

Not sure but check and see if we need to call updateView( ... ). Another older mechanism to pass data to update the controller or view.

Copy link
Contributor

@carldea carldea left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@dholubek dholubek merged commit 2db95d7 into ikmdev:main May 15, 2025
6 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.

2 participants