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

Feature/highlight selected version #109

Merged
merged 8 commits into from
Aug 8, 2023

Conversation

norrisng-bc
Copy link
Contributor

Description

The currently selected version in the "Versions" table is now highlighted. I used the existing$bcbox-highlight-background for the highlight colour, but not sure if might be a bit too subtle.

The "download" button for each version is now displayed even for the currently selected version.

https://apps.nrs.gov.bc.ca/int/jira/browse/SHOWCASE-3279

Types of changes

New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

There seems to be an existing bug for BCeID users where action buttons aren't displayed for all versions, even when the BCeID user has the required permissions.

Previously, the button would be hidden for the currently selected version.
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

Coverage Report (Application)

Totals Coverage
Statements: 75% ( 51 / 68 )
Methods: 62.5% ( 5 / 8 )
Lines: 82.61% ( 38 / 46 )
Branches: 57.14% ( 8 / 14 )

@github-actions
Copy link

github-actions bot commented Aug 8, 2023

Coverage Report (Frontend)

Totals Coverage
Statements: 38.16% ( 445 / 1166 )
Methods: 38.26% ( 101 / 264 )
Lines: 44.95% ( 307 / 683 )
Branches: 16.89% ( 37 / 219 )

Copy link
Contributor

@TimCsaky TimCsaky left a comment

Choose a reason for hiding this comment

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

approving, with a couple of suggestions

frontend/src/assets/main.scss Outdated Show resolved Hide resolved
frontend/src/components/object/ObjectVersion.vue Outdated Show resolved Hide resolved
frontend/src/assets/main.scss Outdated Show resolved Hide resolved
The currently selected row gets highlighted as well, so having that alongside striped rows increases visual clutter
Forgot to remove style for current version row highlighting after moving/renaming it in 51169f)
@TimCsaky TimCsaky merged commit 0554f66 into master Aug 8, 2023
14 checks passed
@norrisng-bc norrisng-bc deleted the feature/highlight-selected-version branch August 8, 2023 23:28
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