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

prevented overflow in expression #13014

Conversation

JamalAlabdullah
Copy link
Contributor

@JamalAlabdullah JamalAlabdullah commented Jun 24, 2024

Description

  • Updated css in LogicalExpressionEditor and StudioCodeFagment components to avoid overflow with a long text.

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

@JamalAlabdullah JamalAlabdullah linked an issue Jun 24, 2024 that may be closed by this pull request
@github-actions github-actions bot added the solution/studio/designer Issues related to the Altinn Studio Designer solution. label Jun 24, 2024
Copy link
Contributor

@standeren standeren left a comment

Choose a reason for hiding this comment

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

not sure you noticed Lars comment in the issue, but I believe we need to fix those issues as well because it messes up for the whole config panel section 😅

See video;

Skjermopptak.2024-06-25.kl.11.52.25.mov

@github-actions github-actions bot added the area/ui-editor Area: Related to the designer tool for assembling app UI in Altinn Studio. label Jun 28, 2024
Copy link

codecov bot commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.88%. Comparing base (d3b425e) to head (769edd4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13014   +/-   ##
=======================================
  Coverage   91.88%   91.88%           
=======================================
  Files        1426     1426           
  Lines       19957    19957           
  Branches     2389     2389           
=======================================
  Hits        18338    18338           
  Misses       1360     1360           
  Partials      259      259           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JamalAlabdullah
Copy link
Contributor Author

Here is the solution for long text id overflow, there is just one thing changed, which is delete button for id , it is now under the id and takes the full width i hope it is ok to be like that @Annikenkbrathen ?🤔

Spiller-overvfllow.mp4

@Annikenkbrathen
Copy link

Annikenkbrathen commented Jun 28, 2024

Here is the solution for long text id overflow, there is just one thing changed, which is delete button for id , it is now under the id and takes the full width i hope it is ok to be like that @Annikenkbrathen ?🤔

Spiller-overvfllow.mp4

I have some feedback in general. I do not know it this is in the scope of this issue.

  1. The delete button is for deleting the whole expression rule, not just the id. So it should be connected to the frame so the users understand what the button is for. Could it be placed in the frame, in the top right corner above the id?
    Today we have everything in this frame. Why is the frame gone in this video?
    Skjermbilde 2024-06-28 kl  10 28 11

  2. The select for choosing datamodel has a white background. Why is that? can the background be removed so its similar to the other components?
    Skjermbilde 2024-06-28 kl  10 35 05

The whole editor needs som design improvements to match the rest of the studio components, but that could be fixed in a new issue after I am done with this #12627 . I created an issue for design improvements #13045

Copy link
Contributor

@standeren standeren left a comment

Choose a reason for hiding this comment

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

Looks much better! But I think we need to fix this without directly adapting the StudioComponent 🤔 Unless this change does not lead to unintended changes other places where the component is used, such as Process-editor

Copy link
Collaborator

@framitdavid framitdavid left a comment

Choose a reason for hiding this comment

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

I have a few comments on what we need to change before merge. We need to ensure that our studio-components is generic and not tied to specific use-cases.

Copy link
Collaborator

@framitdavid framitdavid left a comment

Choose a reason for hiding this comment

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

Just a few small comments to consider. 😊

Copy link
Collaborator

@framitdavid framitdavid left a comment

Choose a reason for hiding this comment

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

LGTM! Verify the comments from the other team members before merge. 😊

Copy link
Contributor

@standeren standeren 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, but since we have not added the ellipsis I believe we should add a tooltip/title to the Id-component so we are able to see the whole Id if necessary! 🤗

@JamalAlabdullah
Copy link
Contributor Author

Looks good to me, but since we have not added the ellipsis I believe we should add a tooltip/title to the Id-component so we are able to see the whole Id if necessary! 🤗

nice suggistaion😊, I added a title.

@JamalAlabdullah JamalAlabdullah requested a review from standeren July 5, 2024 09:54
@JamalAlabdullah JamalAlabdullah merged commit 86810c9 into main Jul 8, 2024
11 checks passed
@JamalAlabdullah JamalAlabdullah deleted the bug/12970-connecting-long-fields-in-expressions-gives-overflow branch July 8, 2024 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui-editor Area: Related to the designer tool for assembling app UI in Altinn Studio. solution/studio/designer Issues related to the Altinn Studio Designer solution.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connecting long fields in expressions gives overflow
4 participants