alan-turing-institute / AssurancePlatform

Project to facilitate creation of Assurance Cases
MIT License
17 stars 6 forks source link

[User Story]: Have settings for alternate layout options #490

Open chrisdburr opened 2 weeks ago

chrisdburr commented 2 weeks ago

Role

As a user

Desired Feature

I want to be able to display an assurance case either horizontally or vertically.

Benefit

So that I can navigate and edit an assurance case to suit my preferences.

Acceptance Criteria

GIVEN a setting in the app has been toggled between vertical or horizontal alignment. WHEN I create or open an assurance case, I should see the case displayed either top-to-bottom (current option) or left-to-right.

Dependencies

No response

Technical Notes

No response

Definition of Done

RichGriff commented 2 weeks ago

We can achieve this by switch the layout from 'TB' to 'LR'. However, this means we have to update the logic for the custom nodes handles to appear left and right. This all has to be done dynamically with the user selecting a layout. Will result in a bit of work, to get it working.

RichGriff commented 2 weeks ago

Myself and @cptanalatriste have looked further into this and can be achieved but with some additional work - by tracking the users preferences on what layout they want to use and also dynamically changing the custom nodes.

Example of vertical layout

Screenshot 2024-06-20 at 16 42 20
chrisdburr commented 2 weeks ago

Myself and @cptanalatriste have looked further into this and can be achieved but with some additional work - by tracking the users preferences on what layout they want to use and also dynamically changing the custom nodes.

Example of vertical layout Screenshot 2024-06-20 at 16 42 20

Looks good as a proof of concept, and I don't think the context element will be an issue once we move over to embedding this information as attributes within specific elements. Thanks.