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

Use TreeView in InstructionSelector #7297

Merged
merged 48 commits into from
Jan 16, 2025
Merged

Conversation

AlexandreSi
Copy link
Collaborator

@AlexandreSi AlexandreSi commented Jan 9, 2025

Story

image

TODO:

  • ✅ Add instructions in the tree view when searching
  • Ideally (not easy), use the objects list tree view state to fold/unfold folders
    • At the moment, all folders are opened
  • ✅ Add the CTA that opens the extension store
  • ✅ Implement the tree view for the "Other conditions" tab


getHtmlId(index: number): ?string {
// TODO: Make sure it keeps the in-app-tutorial work.
return `object-item-${index}`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be object-folder-index? is the todo still to do ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I cleaned everything, we don't need those object-item-... anymore

@@ -2217,39 +2216,6 @@ storiesOf('SearchPanel', module)
/>
));

storiesOf('InstructionSelector', module)
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we have a story for the InstructionSelector elsewhere? so we can check the ReadOnlyTreeView

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I removed the InstructionSelector component because it was not used anywhere. I can try to add a story for the InstructionOrObjectSelector

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually, there is already one!

@AlexandreSi AlexandreSi marked this pull request as ready for review January 14, 2025 09:11
@AlexandreSi AlexandreSi changed the title [WIP] Use TreeView in InstructionSelector Use TreeView in InstructionSelector Jan 14, 2025
game.
</Trans>
</DismissableAlertMessage>
{/* TODO: Should the "Only global objects..." mention should be kept since
Copy link
Owner

Choose a reason for hiding this comment

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

Yes, let's remove mention to global objects.

@AlexandreSi AlexandreSi force-pushed the instruction-object-tree-view branch from 31675c5 to ac749bb Compare January 15, 2025 14:02
@AlexandreSi AlexandreSi force-pushed the instruction-object-tree-view branch from ac749bb to dda8a8c Compare January 15, 2025 14:04
@AlexandreSi AlexandreSi force-pushed the instruction-object-tree-view branch from 91ce1c5 to d7c6915 Compare January 16, 2025 09:40
@AlexandreSi AlexandreSi merged commit 4bf3ef8 into master Jan 16, 2025
5 of 6 checks passed
@AlexandreSi AlexandreSi deleted the instruction-object-tree-view branch January 16, 2025 11:04
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.

3 participants