Skip to content

FIREFLY-136: Support right justification of numeric columns in Firefly table #820

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

Merged
merged 1 commit into from
Jun 6, 2019

Conversation

loitly
Copy link
Contributor

@loitly loitly commented Jun 6, 2019

https://jira.ipac.caltech.edu/browse/FIREFLY-136

Changes:

  • right-align columns with numeric types. This is based on the column's type and not its values.
  • for links:
    • when there's only one link, align it based on its link text.
    • When there's more than one, left align.

To test:
https://irsawebdev9.ipac.caltech.edu/FIREFLY-136/
Make sure all tables are behaving this way. For links, look at test #6 of this page.
https://irsawebdev9.ipac.caltech.edu/FIREFLY-136/firefly/test/tests-main.html#test-6

@loitly loitly requested a review from ejoliet June 6, 2019 16:10
@loitly loitly self-assigned this Jun 6, 2019
Copy link
Contributor

@ejoliet ejoliet left a comment

Choose a reason for hiding this comment

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

Looks great!

Minor comment about the test 6: i did noticed that the in_row_id value is always 1, i was expecting different values. I might be confused of what the column should show but if it's row id, shouldn't the value changed per row?

Other than that, it's good to go from my side.
Thanks!

@loitly
Copy link
Contributor Author

loitly commented Jun 6, 2019

Minor comment about the test 6: i did noticed that the in_row_id value is always 1, i was expecting different values.

This is "input" row ID. This table must be the results of a single row multi-position search. The values of that column's data is all 1s. It is expected behavior.

@loitly loitly merged commit 783206a into dev Jun 6, 2019
@loitly loitly deleted the FIREFLY-136_numeric_column_justification branch June 6, 2019 22:49
@xiuqin
Copy link
Contributor

xiuqin commented Jun 7, 2019

Tested by uploading a file and the results look good. Thanks!

@robyww robyww added enhancement Table Changes to table or table model labels Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Table Changes to table or table model
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants