-
Notifications
You must be signed in to change notification settings - Fork 5
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
Dev → Main March 2024 #209
Conversation
…or/search-results-and-quick-search refactor: search results and quick search
* wip * user login changes * missing file * missing file * missing file * add user put test * Dev -> Main (#202) * Add last cached value to data source query * test: update snapshots * fix(assets): favicon not displaying * feat(pages): update DataSourceStaticView Fix url breaking, add support for last archived, add button to go to Internet Archive * test(pages): update tests and snapshots Update test for DataSourceStaticView, update various snapshots * chore(lint): reformat files with lint errors using black * chore(lint): attempt re-formatting again with actual VS 'black' extension * chore: update .gitignore * refactor(util): update formatDate to return undefined for invalid date passed * test(util): update test for formatDate * get_data_source_by_id fix * chore(deps): add eslint-config from design-system * test(scripts): update test scripts * docs(readme): document lint/test script updates * refactor: update miscellaneous files with linting errors * test(snapshots): update outdated snapshots * ci(client): add client scripts to pull workflow * chore(config): remove stray eslint config from package.json * ci: move working-directory to top level defaults * ci: add cache-dependency-path to setup-node action * ci: add cache-dependency-path to all steps * chore(linting): remove extraneous rules in linting config update files per update * chore(scripts): update ci script to use proper flag * Revert "test(snapshots): update outdated snapshots" This reverts commit 386d09b. * test: update snapshots again * ci: use exact node version used locally * Revert "ci: use exact node version used locally" This reverts commit e1c7b73. * chore(deps): re-install deps with node v20 * ci: use node v20 * test: update snapshots * ci: add time zone setter to test script * feature: add tertiary button from design-system * test(pages): update DataSourceStaticView test * chore(deps): bump design-system -> 2.2.0 * fix: miscellaneous styling issues * test: update snapshots * chore(deps): bump design-system -> 2.3.0 * chore(cleanup): remove logs and miscellaneous updates * test: update snapshots * remove agencies join from archives endpoint, change url_status when updating broken url * update test columns * standardized error codes --------- Co-authored-by: kalenluciano <[email protected]> Co-authored-by: Joshua Graber <[email protected]> Co-authored-by: Joshua Graber <[email protected]> Co-authored-by: Marty Bode <[email protected]> * chore(deps): bump design-system 2.3.0 -> 2.4.0 * chore(deps): bump design-system -> 2.4.1 * feat(pages): Add login page * feat(pages): add shell of password page * feat(router): add new pages to router * reset password, role check for edit permissions * missing file * fixed tests * fixed tests * don't insert search log on test * move login to own endpoint * session token * refresh session tokens * style(pages): miscellaneous code cleanup * chore(deps): bump vue, add pinia * chore(deps): add jwt-decode * chore(deps): add lodash * refresh test and fix * chore(deps): add persist state plugin for pinia * feat(state): add pinia store for auth Add pinia and store, Update router to protect auth routes, Add util to parse JWT * feat(components): add AuthWrapper component Listen for user interactions and automatically refresh token * refactor(pages): update login page Use composition API, Use new auth store * refactor(router): push to login rather than update route * docs(README): update client docs * unit tests * chore(deps): pinia testing * test(pages): update tests and snapshots * test(util): add test for parseJwt * test(components): add test for AuthWrapper * fix(router): public route logic conflicting Check private routes instead * chore(router): cleanup: remove unnecessary check * fix(store): update logout patch * fix(store): one more update to logout * feat(stores): create user store move signup func add password change / reset logic update LogIn * feat(pages): build change password route * feat(pages): add password reset route * refactor(store): log user back in on pw change * fix(stores): status code logic * PR feedback changes * refactor: miscellaneous updates Error handling / clearing Auth header for change pw route * PR feedback changes * chore(local): standardize port for dev server * refactor: update password reset Update base url vars, Update user async funcs * docs(README): update client notes * refactor(pages): update log in per feedback * test fix * test(components): update AuthWrapper test * test(pages): add LogIn tests * chore(cleanup): remove stray log * test(pages): update login snapshots * fix(ci): indentation in test.yml * test fix * cleanup * Update pull.yaml * Update login_queries.py * Update pull.yaml * Update pull.yaml * test(pages): update login test -> coverage 100% * test(pages): add ChangePassword test * test(pages): misc updates to login and change password tests * test(pages): add tests for ResetPassword * update login queries * test(components): search results card -> 100% coverage * test(pages): miscellaneous updates to static view * ci(pull): update env setting in API test * docs(README): add local client base url --------- Co-authored-by: Marty Bode <[email protected]> Co-authored-by: kalenluciano <[email protected]> Co-authored-by: Joshua Graber <[email protected]> Co-authored-by: Joshua Graber <[email protected]>
Testing login at https://data-sources.pdap.dev/login and the forms just refresh. Could be an envar issue, based on the |
@joshuagraber based on the above, I'm thinking we should have a catch-all error value for unpredictable issues, like:
|
@josh-chamberlain just updated the env vars |
Sounds good @josh-chamberlain I'll add an issue to add an error boundary component to render in case of any unexplained/uncaught API errors like this. |
Thanks @joshuagraber and @mbodeantor. I noticed just a couple more things:
|
Hey @josh-chamberlain, no probs. A couple thoughts/questions:
The error in your screenshot is the password field validation (does PW meet all the required conditions), not the password mismatch error (see screenshot below). Input validation happens before we check that the passwords match, so you'll never get to the PW match validation until both inputs contain a valid password. (Another thing: I just noticed the form inputs clear on the password mismatch error, but that's a
Agreed. It would also be nicer UX if we have an endpoint to validate this token on page load, so the user doesn't have to fill out the form and submit to know that it's expired. @mbodeantor Do you think it makes sense to add an issue to tackle this later, as an enhancement to the reset pw experience?
Done. I also started the error boundary component and catchall "not found" route from #210 yesterday, so added that stuff here as well. |
↑ this is good for me, @mbodeantor if you want to get the other one in dev, and I added another issue so we could merge this real soon: #214 |
…al_endpoint Approval endpoint
Testing user login, maybe other things.
Fixes
Contains PRs
Docs