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

feat: slim application state UI to non-handler users #2951

Merged
merged 14 commits into from
Jun 9, 2022

Conversation

aatkin
Copy link
Collaborator

@aatkin aatkin commented May 31, 2022

relates #2871

  • as non-handler user, in application "State" block show only the three phase diagram open, others upon expanding
  • as non-handler user, in application members block show only the names of applicants as a list (e.g. "Alice Applicant, Bob Applicant"), other details upon expanding

Checklist for author

Remove items that aren't applicable, check items that are done.

Reviewability

  • Link to issue
  • Consider adding screenshots for ease of review

Documentation

  • Update changelog if necessary
  • Components are added to guide page

Testing

  • Valuable features are integration / browser / acceptance tested automatically

Follow-up

Screenshots

as applicant, collapsed state and member blocks
Screenshot 2022-06-07 at 12 02 02


expanded
Screenshot 2022-06-07 at 11 16 26

Screenshot 2022-06-07 at 12 03 41

@aatkin aatkin changed the title WIP feat: slim application state UI to non-handler users feat: slim application state UI to non-handler users Jun 7, 2022
@aatkin aatkin marked this pull request as ready for review June 7, 2022 09:01
Comment on lines +24 to +25
(when callback
(callback)))))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this allows bootstrap element to communicate state back to reagent component so that UI can render "hidden/show" elements in correct order

Copy link
Collaborator

Choose a reason for hiding this comment

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

We may also want to consider a new implementation of the collapsible with Bootstrap 5 or so. Maybe CSS animations + React implementation is better.

Copy link
Collaborator

@Macroz Macroz 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. Let's make sure we have issue for the eventual refactoring.

Comment on lines 649 to 650
(defn- application-state [application config highlight-request-id]
(defn- render-state-fields [application config events]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I kind of preferred the older naming convention of application-state component instead of a "render function". Would application-state-details communicate that this is the details that we have initially hidden? Same logic for the others.

(when-not (false? bottom-less-button?) show-less)])
content-footer]))
(defn- block [{:keys [open?]}]
(let [show? (r/atom open?)] ; track internal open/closed status
Copy link
Collaborator

Choose a reason for hiding this comment

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

This kind of duplicates what was previously handled by the classes/ids. Would be good to refactor this into the atom completely (with CSS animation for opening/closing). Doesn't have to happen now, but we can make sure we have an issue for it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, currently bootstrap is handling the animation. i'll create a ticket for this

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@aatkin aatkin merged commit 5935fd8 into master Jun 9, 2022
@aatkin aatkin deleted the 2871/simplify-application-view branch June 9, 2022 08:36
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.

2 participants