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

Deploy to staging #304

Open
wants to merge 26 commits into
base: staging
Choose a base branch
from
Open

Deploy to staging #304

wants to merge 26 commits into from

Commits on Sep 5, 2024

  1. Add Rich text editor (#294)

    * copy all files from paragraph to use as the basis for the rich text component.
    
    * update icons for rich text component
    
    * resolve conflicts
    
    * wip on text formatting
    
    * get ready for setvalue
    
    * Refactor rich text handling in form components
    
    Updated RichTextPatternEdit to sync editor content with form state. Improved FormSummary rendering and enhanced form context with setValue function.
    
    * code formatting
    
    * add custom toolbar modules
    
    * formatting
    
    * add types to handlechange
    
    * add small format
    
    * pare down editor features
    
    * hidden field to mirror editor contents
    
    * install react-quill and increaes concurrency
    
    * fix type
    
    * remove logging
    
    * remove logging
    
    * remove logging
    
    * allow br tag in editor
    
    * formatting and label updates
    
    * swap quill for tiptap
    
    * fix build error with failing checks in form package
    
    * Rename and update RichTextPatternEdit components
    
    * Refactor editor button actions into a reusable array
    
    Consolidated individual editor button action handlers into a reusable editorActions array. This refactor simplifies the button creation process and enhances maintainability by reducing repeated code.
    
    * Add tests for lists
    
    * Dry out test a little
    
    * dry out test even more.
    
    * code formatting
    
    * Add CSS styles for RichText components
    
    Introduced new CSS modules to standardize the margin behavior of list items within RichText components. Updated the corresponding JSX files to apply these styles for consistent appearance.
    
    * Remove react-quill
    
    * remove prop from type for rich text
    
    * use patternvalue instead of string to correct typing issue
    
    * update styles of texteditor
    
    * exclude test that relies on browser feature from vitest runner
    
    * cleanup vitest config
    
    * remove save on blur for rich-text fields
    
    * change button type
    
    * remove top margin from editor content first child
    
    * add focus to editor when initialized
    
    * fix css selector
    
    * remove richtext check onblur
    
    * remove dbs from git
    
    * update form handling submission
    
    Check for rich text handler in the form blur event. Manage editor saving onChange
    
    * Add debounce for improved performance in RichTextPatternEdit
    
    Implemented debounce to optimize editor updates and prevent unnecessary re-renders. Memoized toolbar component.
    
    * Add optional validation rule to form fields
    
    Updated the form field registration to accept optional validation rules through the `register` method.
    
    * Add optional validation rule to form fields
    
    Updated the form field registration to accept optional validation rules through the `register` method.
    
    * add adr
    
    * Refactor MenuBar for enhanced editor functionality
    
    Remove `React.memo` from `MenuBar` component and add more fine-grained control with `disabled` property for button actions. Introduce new heading levels and update related stories to reflect these changes.
    
    * add types and style editor for long blocks of text.
    
    Adds new styles, change default heading hierarchy, and update tests
    
    * turn off spellcheck. squigglies were problematic for long documents.
    
    * match styles from edit view to preview.
    
    * move label
    
    * use vitest browser and install deps
    
    * update test config to try running browser tests in CI
    
    * install playwright browsers in ci
    
    * install dependencies
    
    * update install command
    
    * fix failing tests in e2e
    
    * formatting code
    
    * update test commands for watch and dev scenarios
    
    * update documentation
    
    * add aria-live for contents that change with soft nav
    
    * added css file extensions to prettier config
    
    * update deprecated command
    
    * Rich Text Component Toolbar buttons & API updates (#300)
    
    * pull latest from rich text branch and clean up
    
    * ignore cdktf type errors
    
    * install tf providers to pass typecheck
    
    ---------
    
    Co-authored-by: Daniel Naab <[email protected]>
    Co-authored-by: Jim Moffet <[email protected]>
    3 people authored Sep 5, 2024
    Configuration menu
    Copy the full SHA
    6b53414 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Documentation updates for backend (#302)

    * Add ADR for database strategy
    
    * Add authentication ADR
    
    * Add ADR for our REST API
    
    * Update db ADR with test speed note
    
    * Actually add the REST API ADR
    
    * Clean wording in auth ADR
    
    * Update documents/adr/0012-database-strategy.md
    
    * Renumber new ADRs to match main
    danielnaab authored Sep 9, 2024
    Configuration menu
    Copy the full SHA
    f798696 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. Update playwright (#321)

    * update playwright
    
    * add flag to docker run
    
    * update playwright in design package
    ethangardner authored Sep 25, 2024
    Configuration menu
    Copy the full SHA
    daad546 View commit details
    Browse the repository at this point in the history
  2. Update issue templates (#323)

    Co-authored-by: Ethan Gardner <[email protected]>
    JennyRichards-Flexion and ethangardner authored Sep 25, 2024
    Configuration menu
    Copy the full SHA
    1e0ceeb View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Create new risk issue template (#328)

    New template for managing risks within GitHub, with specific fields to complete.
    JennyRichards-Flexion authored Oct 11, 2024
    Configuration menu
    Copy the full SHA
    6054a64 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. storybook test with jim (#322)

    Co-authored-by: ethangardner <[email protected]>
    Co-authored-by: Ethan Gardner <[email protected]>
    3 people authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    b21c1e7 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. Configuration menu
    Copy the full SHA
    afbde7f View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Add c4-like diagram in Mermaid format (#345)

    * Add c4-like diagram in Mermaid format
    
    * Use cylinder for db and general cleanup
    
    * Add separate DOJ diagram with S3 and backend systems in an agency boundary.
    
    * Style DOJ chart
    danielnaab authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    072e985 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. chore: update server file to add email address for khayal to authoriz…

    …ed users list (#355)
    
    Co-authored-by: Khayal Alasgarov <[email protected]>
    kalasgarov and Khayal Alasgarov authored Oct 25, 2024
    Configuration menu
    Copy the full SHA
    7bcd57f View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2024

  1. Form rendering and submission managed by backend (#307)

    * Add basic tests for existing form submission behavior.
    
    * Add "submit form" test that confirms a completed form returns a PDF.
    
    * Add README for database package.
    
    * upsertFormSession persistence function
    
    * Add getFormSession db routine
    
    * In-progress work on server-rendered form
    
    * Pass route params to form components via session; form rendering in server app. todo: client rendering via spotlight app
    
    * Use hash urls on client-side form router
    
    * Add session management services; handling form routing in the app - in server, use Astro, move FormRouter into Spotlight, get rid of window.location references in @atj/design.
    
    * Standard http POST form submissions working. This included many tweaks to routing/page handling and session services updates.
    
    * Client-side routing fixes
    
    * Linting server package
    
    * Use node.js v20.18.0
    
    * Update all playwright resources to 1.48.0
    
    * Update lockfile
    
    * Add type for *.astro files, so "pnpm typecheck" in the workspace will not fail on imports of .astro modules from .ts modules.
    
    * Remove comment
    
    * Rename getAstroAppContext -> getServerContext
    
    * Add initial Playwright test and try to track down problems with Testcontainers usage (not working locally). Committing to test on CI.
    
    * Mark session incomplete test as expect failure
    
    * Update incomplete session test
    
    * Limit to just the node.js form route test. Will use browser mode for component tests, and avoid Playwright for now.
    
    * Confirm session is updated on form POST
    
    * Improve Spotlight behavior. Still some reorg work to do on the follow-up PR.
    
    * Organize frontend state
    
    * Minor cleanup
    
    * Fix e2e test: prefix localStorage key with "forms/"
    danielnaab authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    eef7768 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. docs: update README to include Podman migration steps and troubleshti…

    …ng section (#369)
    
    * docs: update README to include Podman migration steps and troubleshooting section
    
    * docs: move the Podman-specific instructions into a separate document in the documents directory
    
    ---------
    
    Co-authored-by: Khayal Alasgarov <[email protected]>
    kalasgarov and Khayal Alasgarov authored Oct 30, 2024
    Configuration menu
    Copy the full SHA
    2663178 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. Submit actions (#358)

    * Add submission registry class
    
    * In-progress
    
    * Add ability to register multiple handlers to the form platform, to later be registered at the plugin level. Wire this submission handler system up to the submit-form service
    
    * Wire "next page" action handler to UI.
    
    * Add "package download" pattern, which provides a submit button to download a PDF package.
    
    * Wire package download button up to UI. There are still issues with PDF data serialization that need to be resolved.
    
    * Get submit action string when submitting via JS
    
    * Fix typo
    
    * Add initial documentation for the forms package and its patterns directory
    danielnaab authored Nov 1, 2024
    Configuration menu
    Copy the full SHA
    63a1ae5 View commit details
    Browse the repository at this point in the history
  2. Fix circular imports in forms package. This resolves a problem where …

    …Rollup's watch mode wasn't working. (#368)
    danielnaab authored Nov 1, 2024
    Configuration menu
    Copy the full SHA
    10bd089 View commit details
    Browse the repository at this point in the history
  3. feat: create select dropdown patterns for form builders and form user…

    …s tckt-360 (#370)
    
    * feat: create select dropdown pattern tckt-360
    
    * feat: create select dropdown pattern edit for form builder tckt-360
    
    * feat: refactor rendering default select option via the template tckt-360
    
    * fix: parseUserInput hook for select dropdown tckt-360
    
    * test: add unit tests for select dropdown pattern tckt-360
    
    * refactor: restructure file folder for select-dropdown
    
    * feat: refactor parseUserInput and update tests
    
    * feat: remoce pdf proccessing code for select dropdown tckt-360
    
    * test: refactor tests tckt-360
    
    ---------
    
    Co-authored-by: Khayal Alasgarov <[email protected]>
    kalasgarov and Khayal Alasgarov authored Nov 1, 2024
    Configuration menu
    Copy the full SHA
    8a7f982 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. feat: create date of birth pattern tckt-361 (#374)

    * feat: create date of birth pattern tckt-361
    
    * feat: create date of birth pattern edit form tckt-361
    
    * test: add vitest for date of birth pattern tckt-361
    
    * fix: add value aggregation hook to handle structured and single values in form validation tckt-361
    
    * feat: update aggregateValuesByPrefix to use set-value library to handle nested values tckt-361
    
    ---------
    
    Co-authored-by: Khayal Alasgarov <[email protected]>
    kalasgarov and Khayal Alasgarov authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    4480793 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. chore: remove white space in a doc to rebuild the main branch (#375)

    Co-authored-by: kalasgarov <[email protected]>
    kalasgarov and kalasgarov authored Nov 8, 2024
    Configuration menu
    Copy the full SHA
    01f2783 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2024

  1. Configuration menu
    Copy the full SHA
    402acdd View commit details
    Browse the repository at this point in the history
  2. Update README with new name (#372)

    * update readme
    
    * don't update pnpm-lock.yaml
    
    ---------
    
    Co-authored-by: Daniel Naab <[email protected]>
    jimmoffet and danielnaab authored Nov 9, 2024
    Configuration menu
    Copy the full SHA
    4f3d810 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2024

  1. feat: create email input pattern tckt-362 (#377)

    * feat: add email input pattern -tckt-362
    
    * feat: add email input pattern form edit tckt-362
    
    * feat: create email input icon for question dropdown tckt-362
    
    * chore: update error message path for dob storybook tckt-362
    
    * test: add unit tests for email-input config file tckt-362
    
    * test: refactor test failure assertions tckt-362
    
    ---------
    
    Co-authored-by: kalasgarov <[email protected]>
    kalasgarov and kalasgarov authored Nov 11, 2024
    Configuration menu
    Copy the full SHA
    5ee1c8c View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2024

  1. feat: create phone number component tckt-363 (#382)

    * feat: create phone number pattern tckt-363
    
    * feat: create phone number pattern edit form tckt-363
    
    * test: add tests phone number config tckt-363
    
    * refactor: Clear old error message on session object when updating valid submission data and pass previous value into React component tckt-363
    
    Co-authored-by: Daniel Naab [email protected]
    
    * test: update tests tckt-363
    
    * feat: update error state and message for phone pattern tckt-363
    
    ---------
    
    Co-authored-by: kalasgarov <[email protected]>
    kalasgarov and kalasgarov authored Nov 15, 2024
    Configuration menu
    Copy the full SHA
    5ee8954 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2024

  1. Attachments component (#376)

    * copy input field to use as basis of file upload
    
    * begin structure on file component
    
    * Add single/multiple handling in attachment component
    
    * render checkboxes for allowed file types
    
    * update validation for attachment pattern config data
    
    * validate on max attachments if required
    
    * move attachment file type options
    
    * moved attachment pattern files to their own directory
    
    * rename file
    
    * fix label issue with edit view error state
    
    * interaction tests for attachment component
    
    * pass in config props and update labels in attachment component
    
    * update attachment handling
    
    * use allowed types array in document parser
    
    * add max size for files
    
    * modify attachment schema
    
    * hard code the max file size for now
    
    * enhance file input validation for form filler
    
    * copy input field to use as basis of file upload
    
    * begin structure on file component
    
    * Add single/multiple handling in attachment component
    
    * render checkboxes for allowed file types
    
    * update validation for attachment pattern config data
    
    * validate on max attachments if required
    
    * move attachment file type options
    
    * moved attachment pattern files to their own directory
    
    * rename file
    
    * pass in config props and update labels in attachment component
    
    * update attachment handling
    
    * use allowed types array in document parser
    
    * add max size for files
    
    * modify attachment schema
    
    * hard code the max file size for now
    
    * enhance file input validation for form filler
    
    * fix label issue with edit view error state
    
    * interaction tests for attachment component
    
    * update component stories to better handle null and resolve type issues
    
    * apply circular dependency changes to attachment pattern
    
    * add tests for attachment edit ui
    
    * add tests for attachment edit ui
    
    * change aria labels
    
    * add unit tests for attachement config
    
    * testing for more branches of error condition for the attachment config data
    
    * mock file and filelist for node environment support
    
    * add enctype to handle attachments
    
    * stub out tests for http post request validation and begin branching logic for conditionally typing for runtime env
    
    * simplify validation for attachment config and add new tests
    
    * consolidate validation logic between client and server
    
    * remove types from parsing API ingest
    
    * remove additional attachments reference from documents
    
    * transform file object during validation as a placeholder for future async work
    ethangardner authored Nov 25, 2024
    Configuration menu
    Copy the full SHA
    c02d98d View commit details
    Browse the repository at this point in the history
  2. Feature/364 ssn input (#386)

    * feat: cretae ssn pattern tckt-364
    
    * feat: create ssn pattern edit form tckt-364
    
    * feat: create ssn icon and phone icons tckt-364
    
    * feat: add ssn input and schema validations tckt-364
    
    * test: add tests for ssn input and schema validations tckt-364
    
    * feat: update ssn validation criteria  based on USWDS recommendations
    
    * feat: address accessibility issues tckt-364
    
    * feat: improve SSN validation error messages for clarity tckt-364
    
    * feat: improve accessibility for ssn input tckt-364
    
    * feat: add input masking to guide correct entry of the Social Security Number tckt-364
    
    ---------
    
    Co-authored-by: kalasgarov <[email protected]>
    kalasgarov and kalasgarov authored Nov 25, 2024
    Configuration menu
    Copy the full SHA
    47ec6d4 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2024

  1. Store PDF documents in db table (#371)

    * Add form_documents table and an initializeForm service, responsible for creating a form that's initialized with data from a PDF. initializeForm is not currently wired to the UI.
    
    * Improve pattern builder docs
    
    * Fix test and typing errors; implement localStorage version of addDocument
    
    * Wire initializeForm to UI
    
    * PDF attachment download working
    
    * Fix imports
    
    * Rebuild lock file
    
    * Revert "Rebuild lock file"
    
    This reverts commit 0b0f6c7.
    
    * Remove pdf bytes from blueprint object
    
    * Parse/validate Blueprint JSON
    
    * Delete associated documents when a form is deleted.
    
    * Document support in-browser
    
    * Add tests for parseForm
    
    * Inject a FormConfig into the forms db adapter
    
    * Remove console.log
    
    * Call parseStringForm() in getForm db function
    
    * Update BrowserFormRepository for interface changes
    
    * Fix typo
    danielnaab authored Nov 27, 2024
    Configuration menu
    Copy the full SHA
    47ea8ce View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2024

  1. feat: improve accessibility for single field components tckt-393 (#387)

    * feat: improve accessibility for single field components tckt-000
    
    * refactor: improve accessibility and error handling for single field components tckt-393
    
    ---------
    
    Co-authored-by: kalasgarov <[email protected]>
    kalasgarov and kalasgarov authored Dec 4, 2024
    Configuration menu
    Copy the full SHA
    7af78d4 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2024

  1. chore: update folder structrue for form manager tckt-394 (#396)

    Co-authored-by: kalasgarov <[email protected]>
    kalasgarov and kalasgarov authored Dec 6, 2024
    Configuration menu
    Copy the full SHA
    d1c388f View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2024

  1. feat: create gender identity input component tckt-365 (#395)

    * feat: create gender id pattern tckt-365
    
    * feat: create gender id pattern edit form tckt-365
    
    * feat: add input and schema validation tckt-365
    
    * feat: update gender identity icon svg tckt-365
    
    * refactor: update story and enhanch component file structure for gender id -tckt-365
    
    * fix: resolve checkbox issue to persist the checked state tckt-365
    
    ---------
    
    Co-authored-by: kalasgarov <[email protected]>
    kalasgarov and kalasgarov authored Dec 9, 2024
    Configuration menu
    Copy the full SHA
    193f9cd View commit details
    Browse the repository at this point in the history