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

Ws and olarft #1737

Draft
wants to merge 71 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
328c297
[Cypress] 2022 - Resolve V716 and V619-2 in Annual file
meissadia Feb 15, 2022
3370e70
Update README.md typo
wpears Feb 16, 2022
34ac859
Online LARFT - v0.1.0
meissadia Feb 10, 2022
2e3dfb9
[olarft] Add Copy/Paste buttons
meissadia Feb 11, 2022
addfa39
[olarft] Performance optimization
meissadia Feb 11, 2022
774a293
[olarft] Confirmation dialog for destructive actions (delete, delete …
meissadia Feb 11, 2022
8d536ba
[olarft] Clicking section headings scrolls to section
meissadia Feb 11, 2022
4c37485
[olarft] Fix TS Calendar Year selector
meissadia Feb 11, 2022
f2a7eef
[olarft] Date selectors
meissadia Feb 14, 2022
57e7c11
[olarft] Add LAR search; Reorg saved/editing sections; Restyle return…
meissadia Feb 14, 2022
701dc2d
[olarft] UI Cleanup
meissadia Feb 15, 2022
c824e4e
[olarft] Create Accordion component
meissadia Feb 16, 2022
ade357e
[olarft] [Parsed] Display enumerations, examples, and descriptions
meissadia Feb 16, 2022
7bde9d5
[olarft][Parsed] Add button to collapse open accordions
meissadia Feb 16, 2022
659c0bf
[larft] Replace old LARFT with new LARFT
meissadia Feb 16, 2022
d7b8ff1
[larft] Scroll to sections on header click
meissadia Feb 16, 2022
678899f
[larft] Parsed Values tables full width
meissadia Feb 16, 2022
15b5c9f
[larft] Highlight column selected in Parsed
meissadia Feb 16, 2022
cdb249e
[larft][Parsed] Refactored
meissadia Feb 17, 2022
dadcf69
[larft] Editing, Piped refactors
meissadia Feb 17, 2022
184088f
[larft] Fix unique keys
meissadia Feb 17, 2022
7579eb7
[larft] Use `log` utility; Cleanup
meissadia Feb 18, 2022
647896b
[larft] Refactor raw schemas and schema generation
meissadia Feb 18, 2022
2599551
[larft] Cleanup
meissadia Feb 18, 2022
29f2452
[larft] Fix broken uploads due to schemas missing record identifier f…
meissadia Feb 18, 2022
5b941ac
[larft] Refactor file interactions (new, save, delete, ...) into a Hook
meissadia Feb 18, 2022
02b4fd8
[larft] Rename folder
meissadia Feb 18, 2022
143e160
[larft] Full-text search and Field name search for Saved section
meissadia Feb 18, 2022
8ae9636
[larft] Improved UI for search boxes
meissadia Feb 18, 2022
72d6075
[larft] Clicking Saved table headers highlights column in Parsed
meissadia Feb 18, 2022
543ab1e
[larft] Search - Only show columns that match search
meissadia Feb 19, 2022
1c1df54
[larft] Easier to close accordions (click anywhere inside)
meissadia Feb 22, 2022
a64351e
[larft] Highlight and focus field/column on click - easier direct edi…
meissadia Feb 22, 2022
5d9068c
[larft] Color improvements
meissadia Feb 22, 2022
635e24a
[larft][schemas] Fix: hyphenated enumerations getting truncated
meissadia Feb 22, 2022
37828cd
[larft] Fix odd search results; Reduce auto-scrolling via better sizing;
meissadia Feb 22, 2022
aa4fce0
[larft] Prompt users about losing unsaved changes when navigating awa…
meissadia Feb 22, 2022
75d6baf
[larft] Add enumerated State selectors for TS/LAR
meissadia Feb 22, 2022
b173bc7
[larft] Support fields with free-text and enumerations
meissadia Feb 22, 2022
dad471b
[larft] More succinct examples/enumerations when value === description
meissadia Feb 22, 2022
8d226f7
[larft] Fix various console errors
meissadia Feb 22, 2022
8e26e13
[larft] Update notes
meissadia Feb 23, 2022
74e2ba3
[larft] Fix mismatch between header-column and row-column widths
meissadia Feb 23, 2022
edfbd00
[larft] Remove documentation link until we have documentation
meissadia Feb 24, 2022
98d1877
[larft] Display malformed rows of uploaded file
meissadia Feb 24, 2022
d8e7bd5
[larft] Only allow save/update when changes have been made
meissadia Feb 25, 2022
b793e5a
[larft] Only enable Download File buttons when saved records exist
meissadia Feb 25, 2022
881dcc2
[larft] Documentation v1
meissadia Feb 25, 2022
363700d
[larft] Documentation v2
meissadia Feb 25, 2022
51675b1
[larft] Documentation v3
meissadia Feb 25, 2022
858c1f4
[larft] Documentation v4
meissadia Feb 25, 2022
dfe4b31
[larft] Documentation v5
meissadia Feb 25, 2022
5083877
[larft] Documentation v6
meissadia Feb 25, 2022
209f789
[larft] Documentation v7
meissadia Feb 25, 2022
8f81df0
Allow websockets in nginx config
meissadia Aug 12, 2020
02f000c
Fetch websocket progress updates and store in redux
meissadia Aug 12, 2020
3732bd2
Add text based display of progress status
meissadia Aug 13, 2020
5fa6c40
Add progress bar display of processing status
meissadia Aug 14, 2020
32caae8
Create multistage progress bar
meissadia Aug 28, 2020
148ff3b
Integrate new ProgressBar and StackedProgressBars
meissadia Aug 28, 2020
7c7fc18
Redux - Enable trace in dev tools
meissadia Oct 20, 2021
0fd07e7
Direct users to UPLOAD if file is processing
meissadia Nov 19, 2021
e3fd833
Cleanup unused code
meissadia Nov 19, 2021
e4bdca5
[Fixtures] 2021 Submission file with zero edits
meissadia Mar 16, 2022
3c072f0
[EditsNav] Display appropriate label when no edits exists
meissadia Mar 17, 2022
d74e187
[Filing] Direct users to the next actionable step
meissadia Mar 17, 2022
c5aafba
[SubmissionNav] Display appropriate label when no edits exists
meissadia Mar 17, 2022
5ce5f4e
Remove TODO. Clean files process successfully without UI issue
meissadia Mar 28, 2022
373b249
[Filing] Support both Secure/Plain websockets based on the App protocol
meissadia Mar 28, 2022
57e4363
Merge branch '1339-olarft' into ws_and_olarft
meissadia Apr 1, 2022
fb5a33a
Merge branch '591-custom-single-bar' into ws_and_olarft
meissadia Apr 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[olarft] Create Accordion component
meissadia committed Feb 24, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit c824e4e40218ccb780b81d2358efafa96cf15522
55 changes: 55 additions & 0 deletions src/tools/online-lar-formatting/Accordion.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.accordion-bordered {
margin-top: 0;
margin-bottom: 0;
list-style-type: none;
padding-left: 0;
color: #212121;
margin: 0;
padding: 0;
width: 100%;
}

.accordion-bordered > li {
background-color: #f1f1f1;
font-family: SourceSansPro;
list-style: none;
margin-bottom: 0.5rem;
width: 100%;
}

.accordion-button {
background-color: #d6d7d9 !important;
background-image: url('../../filing/images/minus.png');
background-image: url('../../filing/images/minus.svg');
background-position: right 2rem center;
background-repeat: no-repeat;
background-size: 1.5rem;
border-radius: 0;
color: #212121;
cursor: pointer;
display: inline-block;
margin-top: 0;
padding: .5rem 4rem .5rem .5em;
text-align: left;
width: 100%;
}

.accordion-button[aria-expanded='false'] {
background-image: url('../../filing/images/plus.png');
background-image: url('../../filing/images/plus.svg');
}

.accordion-content {
background-color: #ffffff;
border-top: none;
overflow: auto;
padding: 0em 1em 1em;
}

.accordion-content[aria-hidden='true'] {
display: none;
}

.accordion-content > *:first-child {
margin-top: 0;
}
50 changes: 50 additions & 0 deletions src/tools/online-lar-formatting/Accordion.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import React from 'react'
import './Accordion.css'

function handleToggleClick(id) {
let accordionButton = document.getElementById(`accordion-button-${id}`)
let expanded =
accordionButton.getAttribute('aria-expanded') === 'false' ? false : true

document
.getElementById(`accordion-button-${id}`)
.setAttribute('aria-expanded', !expanded)
document
.getElementById(`accordion-${id}`)
.setAttribute('aria-hidden', expanded)
}

export const collapseAll = () => {
document
.querySelectorAll(`[id^="accordion-button-"]`)
.forEach(e => e.setAttribute('aria-expanded', false))
document
.querySelectorAll(`[id^="accordion-"]`)
.forEach(e => e.setAttribute('aria-hidden', true))
}

export const Accordion = ({ heading, content, id }) => {
return (
<ul className='accordion-bordered'>
<li>
<button
className='accordion-button'
aria-expanded='false'
id={`accordion-button-${id}`}
aria-controls={`accordion-${id}`}
onClick={event => handleToggleClick(id)}
>
{heading}
</button>
<div
id={`accordion-${id}`}
className='accordion-content'
aria-hidden='true'
>
{content || null}
</div>
</li>
</ul>
)
}

42 changes: 40 additions & 2 deletions src/tools/online-lar-formatting/index.css
Original file line number Diff line number Diff line change
@@ -115,10 +115,48 @@
width: 6em;
}
.parsed-row .fieldName {
width: 40%;
width: 50%;
}
.parsed-row .accordion-bordered > li{
background-color: inherit;
}
.parsed-row .accordion-bordered .accordion-button {
background-color: white !important;
border-left: 5px solid white;
}
.parsed-row .accordion-bordered .accordion-button:hover {
color: black;
border-left: 5px dotted darkolivegreen;
background-color: lightgoldenrodyellow !important;
}
.parsed-row .highlight {
background: lightblue;
background: rgb(145, 206, 226);
}

.parsed-row .table-wrapper > table > thead {
z-index: 1;
}
.more-info h3 {
border-top: 1px dotted lightblue;
padding-top: 8px;

}
.more-info h3::before {
content: "» ";
}
.more-info h3 , .more-info th {
font-size: 1.7rem;
}
.more-info h3, .more-info table {
margin-top: 1em;
}
.more-info .values {
margin-top: 1.5em;
width: 100%;
}
.more-info .values, .more-info .values td {
border-color: grey;

}

/* SavedRows */
4 changes: 3 additions & 1 deletion src/tools/online-lar-formatting/index.jsx
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ import { FileUpload } from './FileUpload'
import { Header } from './Header'
import { Error } from './Error'
import { useRestyledButtonLinks } from './useRestyledButtonLinks'
import { collapseAll } from './Accordion'

import './index.css'

@@ -30,10 +31,10 @@ import './index.css'
// √ - If TS/LAR, confirm overwrite
// √ - Provide search for LAR
// √- Provide date selector for Date fields
// √ - Example/Enumerations in `info` button/column
// - Provide search for TS?
// - On Download
// - Provide file dialog?
// - Example/Enumerations in `info` button/column

const focusAtZero = () => null
// setTimeout(() => {
@@ -56,6 +57,7 @@ export const OnlineLARFT = () => {

setSelected(nextRow)
setCurrCol(getSchema(nextRow)[0])
collapseAll()
}

const saveRow = _row => {