Skip to content

FIREFLY-1481-1484: Table related fixes#1563

Merged
loitly merged 2 commits intodevfrom
FIREFLY-1481-single-column-resize
Jun 1, 2024
Merged

FIREFLY-1481-1484: Table related fixes#1563
loitly merged 2 commits intodevfrom
FIREFLY-1481-single-column-resize

Conversation

@loitly
Copy link
Copy Markdown
Contributor

@loitly loitly commented May 29, 2024

https://jira.ipac.caltech.edu/browse/FIREFLY-1481
https://jira.ipac.caltech.edu/browse/FIREFLY-1484
https://jira.ipac.caltech.edu/browse/FIREFLY-1479

  • Single-column numeric tables don't auto-size correctly
  • #5 Table column header vertical alignment adjustments
  • #10 Change label 'View as plain text' to 'View full text'
  • #9 View full text with formatting should render html tags as HTML
  • Convert delete (derived) column button to JoyUI

Test: https://fireflydev.ipac.caltech.edu/firefly-1481-single-column-resize/firefly/
Follow the instructions in the tickets to test

- Single-column numeric tables don't auto-size correctly
- #5 Table colomn header vertical alignment adjustments
- #10 Change label 'View as plain text' to 'View full text'
- #9 View full text with formatting should render html tags as HTML
@loitly loitly added the Table Changes to table or table model label May 29, 2024
@loitly loitly self-assigned this May 29, 2024
@loitly loitly requested review from jaladh-singhal and lrebull May 29, 2024 17:11
Copy link
Copy Markdown
Member

@jaladh-singhal jaladh-singhal 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. Tested all 5 points and they work as expected!

The user-added column still still shows up red/brown (FIREFLY-1479 #2) - not sure if this was supposed to be fixed too?

{/*{showUnits && <Box height='1em'/>}*/}
{/*{showTypes && <Box height='1em'/>}*/}
{showFilters && <FilterButton iconButtonSize='32px'
{showFilters && <FilterButton iconButtonSize='28px'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Might consider changing this to rem units if it makes sense.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Probably not. The table library used is fixed-data-table. Everything is in pixel size.

@jaladh-singhal
Copy link
Copy Markdown
Member

This is probably out of scope of this PR but might be an easy fix:
image

Clicking full text on some rows - brings full text dialog with width extending beyond viewport. I think it requires a max width setting and overflow prop to show scroll bars.

@lrebull
Copy link
Copy Markdown
Contributor

lrebull commented May 30, 2024

FIREFLY-1479 - delete button fixed, as is colors in the new column in various places, though I note they're not the same shade of brown in the various renditions of the table (in the main tri-view, the new column is a light brown; in table options, they're more of a ruddy brown, at least on my screen, which has been shown in the past to be defective when it comes to colors). this is fine, though, if y'all are ok with this.

FIREFLY-1478 #5 in FIREFLY-1484 - fixed as far as i can tell

FIREFLY-1478 #9 in FIREFLY-1484 - I can't figure out what @gpdf was looking at to test this! I am going to ask him.

FIREFLY-1478 #10 in FIREFLY-1484 - The label now says "full text" instead of "plain text".

@lrebull
Copy link
Copy Markdown
Contributor

lrebull commented May 30, 2024

Loi pointed me towards the Gaia TAP server to find examples to test the 'view as text' options. Definitely an improvement over before, but this looks really ...odd, especially if you don't know to look for the '...' on the right of the over-full fields.
Screenshot 2024-05-30 at 10 36 00 AM

@lrebull
Copy link
Copy Markdown
Contributor

lrebull commented May 30, 2024

Not sure how to test "Single-column numeric tables don't auto-size correctly"

@robyww robyww added this to the 2024.2 milestone May 30, 2024
@loitly loitly merged commit 48c1f3f into dev Jun 1, 2024
@loitly loitly deleted the FIREFLY-1481-single-column-resize branch June 1, 2024 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Table Changes to table or table model

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants