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

Fix alignment of "table cells" #41

Conversation

raissanorth
Copy link
Contributor

Fixes #35.

Relies on #33 being merged first, as this is were the alignment is affected and not as stated in the original ticket, master.

When the former table got transitioned into a list, it appears that no width was assigned to the version number "column". Applying the changes, the list looks as follows:

image

Dylan Wagstaff and others added 30 commits August 1, 2018 09:59
In order to compare two form fields, there needs to be a way to load
data in such a way that it will allow comparison between two values. To
achieve this a form transformation has been added to faciliatate both
loading two sets of data values, and rendering a differential of those
values in a read only field.
In order to inform a user that they are in compare mode, and are either
viewing the difference between two versions, or are required to select
two version to compare. The notice includes a handy exit button to leave
compare mode.
In order to allow a user to enter or exit compare mode there is a button
on the heading row that will reveal more actions when clicked. At
current the only action present is a toggle to enter or exit compare
mode, and reflect the state (check means compare mode is active).
History viewer is the parent of all fields related to comparison mode
viewing, and begins the process by deciding whether to render a detail
view or a list of versions. It now must also factor comparison mode into
this, and so alter the way it handles the list or the detail view.
And add to detail view as well as the list view.
Enable compare mode handling for list view/selection, and detail
views, then connect the PHP diff form to history view comparison
so the components can actually serve real data. This results in
being able to open a comparison.
NEW Add pointer cursor for versions in the list on hover

FIX Ensure toolbar--condensed class is correctly removed when component unmounts

FIX Correct eslint violations and provide component in broken unit test
Updating implementation to not adjust the reducer, and preserve the state before you entered compare mode.

Fixing up CSS specificity & removing !important.

Fix the UI when choosing to select two versions to compare from the list screen.

I also made the actions column always render, because is was causing some awkward jittering as things became visible.
Major refactor of Diff Form Transformation
The original approach was implmented as a "get it functional" state, and
a bit of an attempt to circumvent the complexities involved with the
logical order of operations, the nature of a failover (see
ViewableData), and having form fields work in more than one display
facet. However there were limitations in handling more complex data
structures such as when a value from the database was NULL, this would
fail a data comparison check between loaded data and transformation
data. In order to work around this we now simply ignore all these
complexities and pass off to normal errors or exceptions that will be
output with such use. There is now a diff field that will handle the
data explicitly, rather than having the entire transformation happen in
the transformer class. This was originally avoided due to a failover
being an underlay, not an overlay, so only methods that didn't exist on
the superclass would be passed off to the form field we're tryign to
transform, instead of for any method not defined on the class. To
circumvent this issue, we now simply don't (cicumvent this issue), and
rely on users not e.g. transforming a form then attempting to
update one of the old fields.
As well, component class names are updated to use BEM conventions and reduce
CSS nesting levels
robbieaverill and others added 13 commits August 1, 2018 13:40
* Reducer refactor & listing version lists
* Enable inter-page operablility for versoon list
Previously a fix was inserted to have the content push away from the
outer boundaries of the containing element (eg. the CMS menu), however
this has been resolved in some other commit in history and no longer
presents a problem. Instead it shows a 'double' margin, padding the
detail view with twice as much space as it should have between contained
content, and content outside it's boundaries.
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.

4 participants