- Nov 20, 2024
-
-
Wes Appler authored
This builds on the #4134 PR that initially introduced machine translations into Hypha. This isolates the translation behavior; putting pip dependencies in a separate `requirements-translate.txt` and will not attempt any translate imports unless the setting for it is true. Other small changes are also a full docs page explaining how to install language packages & changing the setting once again from `SUBMISSION_TRANSLATIONS_ENABLED` to `APPLICATION_TRANSLATIONS_ENABLED` to reflect the system wide shift away from submission terminology.
-
Wes Appler authored
This behaviors reflects the `Show all` logic of the other dashboard submission table partial implementations
-
- Nov 19, 2024
-
-
Fredrik Jonsson authored
Fixes # 4146 - [ ] Rename views all beta to views all. - [ ] Give reviewers access to the submission all view. - [ ] Make submission all list only reviews reviewers have access to, including reviewers settings if set. - [ ] Remove batch actions and review filter for reviewers. - [ ] Remove old AwaitingReview view. - [ ] Implement show_applicant_identity for submission all view.
-
Sandeep Chauhan authored
Fixes #4124 - [x] Use htmx/alpine for Upload contract modal - [x] Use htmx/alpine for Upload and remove contracting documents modal - [x] Use htmx/alpine for submit contracting documents modal - [x] Use htmx/alpine for approve contract modal
-
Jesse Bickel authored
Fixes #4050 What a small line for such a large set of changes. Those supporting changes include: * Creating a view for the new Reporting Table * Creating a current_report() method in report_config that is slightly differnt than current_report_due (see inline doc) * Adding a ProjectQuerySet method that does some intense subquerying to be able to express the current_report in sql so that the status can be filtered against ## Note from the cherry-picker/integrator I see that the summary tables for reports was removed from `apply/projects` and that the current dropdown in the main navigation header points to `apply/project/reports`. This new table appears under `apply/project/reporting` and is linked to in the original fork in which this change occurred. As for integration here, the question is: do we want to replace the original table or augment off to the side somehow? Where should the link to this new table live? Co-authored-by:
Frank Duncan <frankduncan@opentechstrategies.com> Co-authored-by:
Fredrik Jonsson <frjo@xdeb.org>
-
- Nov 14, 2024
-
-
Fredrik Jonsson authored
Fixes #4073 Clearing out some unused css that have accumulated over the years. Also replaced some little used css with tailwind classes. All in all some 400 lines of css got removed.
-
- Nov 13, 2024
-
-
Fredrik Jonsson authored
Fixes #4072
-
Sandeep Chauhan authored
Fixes #4119
-
Fredrik Jonsson authored
-
- Nov 12, 2024
-
-
Fredrik Jonsson authored
-
Fredrik Jonsson authored
-
- Nov 08, 2024
-
-
Fredrik Jonsson authored
-
- Nov 07, 2024
-
-
Saurabh Kumar authored
Updates group management: - **Centralized Group Definition:** Instead of creating groups within migration files, which can be cumbersome to maintain, group definitions are now managed through the AbstractRoles model. These roles are synchronized using the `python manage.py sync_roles` command. This ensures no existing groups or their associated permissions are deleted. - **Module Renaming**: The `hypha.apply.users.groups` module has been renamed to `hypha.apply.users.roles` to reflect the shift from group-based to role-based permissions. This aligns with upcoming changes utilizing the `rolepermissions` module. - **Streamlined Group Descriptions**: The GroupDesc model is removed. Instead, help text can be directly defined within the role itself. This simplifies management and allows for translation of group descriptions. **This is the first of a series of pull requests aimed at refactoring the permissions system.** As a sample implementation, converts the delete submission to use this role-permissions. See: https://github.com/HyphaApp/hypha/pull/4151/commits/8239c2172ab9150cdba0db8d95f13e1681f176cd ## Test Steps - make sure the migrations run fine. - groups are create correctly via `python manage.py sync_roles`, it should also keep the existing groups. - groups description is rendered in the admin. - ensure delete submission/application is working as expected
-
Fredrik Jonsson authored
-
Saurabh Kumar authored
-
- Nov 06, 2024
-
-
dependabot[bot] authored
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.4 to 3.0.6. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pallets/werkzeug/releases">werkzeug's releases</a>.</em></p> <blockquote> <h2>3.0.6</h2> <p>This is the Werkzeug 3.0.6 security fix release, which fixes security issues but does not otherwise change behavior and should not result in breaking changes.</p> <p>PyPI: <a href="https://pypi.org/project/Werkzeug/3.0.6/">https://pypi.org/project/Werkzeug/3.0.6/</a> Changes: <a href="https://werkzeug.palletsprojects.com/en/stable/changes/#version-3-0-6">https://werkzeug.palletsprojects.com/en/stable/changes/#version-3-0-6</a></p> <ul> <li>Fix how <code>max_form_memory_size</code> is applied when parsing large non-file fields. <a href="https://github.com/advisories/GHSA-q34m-jh98-gwm2">GHSA-q34m-jh98-gwm2</a></li> <li><code>safe_join</code> catches certain paths on Windows that were not caught by <code>ntpath.isabs</code> on Python < 3.11. <a href="https://github.com/advisories/GHSA-f9vj-2wh5-fj8j">GHSA-f9vj-2wh5-fj8j</a></li> </ul> <h2>3.0.5</h2> <p>This is the Werkzeug 3.0.5 fix release, which fixes bugs but does not otherwise change behavior and should not result in breaking changes.</p> <p>PyPI: <a href="https://pypi.org/project/Werkzeug/3.0.5/">https://pypi.org/project/Werkzeug/3.0.5/</a> Changes: <a href="https://werkzeug.palletsprojects.com/en/stable/changes/#version-3-0-5">https://werkzeug.palletsprojects.com/en/stable/changes/#version-3-0-5</a> Milestone: <a href="https://github.com/pallets/werkzeug/milestone/37?closed=1">https://github.com/pallets/werkzeug/milestone/37?closed=1</a></p> <ul> <li>The Watchdog reloader ignores file closed no write events. <a href="https://redirect.github.com/pallets/werkzeug/issues/2945">#2945</a></li> <li>Logging works with client addresses containing an IPv6 scope. <a href="https://redirect.github.com/pallets/werkzeug/issues/2952">#2952</a></li> <li>Ignore invalid authorization parameters. <a href="https://redirect.github.com/pallets/werkzeug/issues/2955">#2955</a></li> <li>Improve type annotation fore <code>SharedDataMiddleware</code>. <a href="https://redirect.github.com/pallets/werkzeug/issues/2958">#2958</a></li> <li>Compatibility with Python 3.13 when generating debugger pin and the current UID does not have an associated name. <a href="https://redirect.github.com/pallets/werkzeug/issues/2957">#2957</a></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pallets/werkzeug/blob/main/CHANGES.rst">werkzeug's changelog</a>.</em></p> <blockquote> <h2>Version 3.0.6</h2> <p>Released 2024-10-25</p> <ul> <li>Fix how <code>max_form_memory_size</code> is applied when parsing large non-file fields. :ghsa:<code>q34m-jh98-gwm2</code></li> <li><code>safe_join</code> catches certain paths on Windows that were not caught by <code>ntpath.isabs</code> on Python < 3.11. :ghsa:<code>f9vj-2wh5-fj8j</code></li> </ul> <h2>Version 3.0.5</h2> <p>Released 2024-10-24</p> <ul> <li>The Watchdog reloader ignores file closed no write events. :issue:<code>2945</code></li> <li>Logging works with client addresses containing an IPv6 scope :issue:<code>2952</code></li> <li>Ignore invalid authorization parameters. :issue:<code>2955</code></li> <li>Improve type annotation fore <code>SharedDataMiddleware</code>. :issue:<code>2958</code></li> <li>Compatibility with Python 3.13 when generating debugger pin and the current UID does not have an associated name. :issue:<code>2957</code></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pallets/werkzeug/commit/5eaefc3996aa5cc8c5237d8b82f1b89eed6ea624"><code>5eaefc3</code></a> release version 3.0.6</li> <li><a href="https://github.com/pallets/werkzeug/commit/2767bcb10a7dd1c297d812cc5e6d11a474c1f092"><code>2767bcb</code></a> Merge commit from fork</li> <li><a href="https://github.com/pallets/werkzeug/commit/87cc78a25f782f8c59fbde786840a00cf0d09b3d"><code>87cc78a</code></a> catch special absolute path on Windows Python < 3.11</li> <li><a href="https://github.com/pallets/werkzeug/commit/50cfeebcb0727e18cc52ffbeb125f4a66551179b"><code>50cfeeb</code></a> Merge commit from fork</li> <li><a href="https://github.com/pallets/werkzeug/commit/8760275afb72bd10b57d92cb4d52abf759b2f3a7"><code>8760275</code></a> apply max_form_memory_size another level up in the parser</li> <li><a href="https://github.com/pallets/werkzeug/commit/8d6a12e2af542a553853c870d106884a3cd1f73b"><code>8d6a12e</code></a> start version 3.0.6</li> <li><a href="https://github.com/pallets/werkzeug/commit/a7b121abc781b9a6557ca204f23247db654d0253"><code>a7b121a</code></a> release version 3.0.5 (<a href="https://redirect.github.com/pallets/werkzeug/issues/2961">#2961</a>)</li> <li><a href="https://github.com/pallets/werkzeug/commit/9caf72ac060181a3171d91fd12279e071df430ca"><code>9caf72a</code></a> release version 3.0.5</li> <li><a href="https://github.com/pallets/werkzeug/commit/e28a2451e99457ce71e460af276a02f27a3bdba1"><code>e28a245</code></a> catch OSError from getpass.getuser (<a href="https://redirect.github.com/pallets/werkzeug/issues/2960">#2960</a>)</li> <li><a href="https://github.com/pallets/werkzeug/commit/e6b4cce97eef17716004625bcf6754fa930f2618"><code>e6b4cce</code></a> catch OSError from getpass.getuser</li> <li>Additional commits viewable in <a href="https://github.com/pallets/werkzeug/compare/3.0.4...3.0.6">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/HyphaApp/hypha/network/alerts ). </details> Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Fredrik Jonsson authored
-
- Nov 05, 2024
-
-
Jesse Bickel authored
Supersedes #3978 (remote branch change) Fixes #3977
-
Fredrik Jonsson authored
-
Fredrik Jonsson authored
-
Saurabh Kumar authored
The linting and formatting on the js files are handled by Eslint and pretter. This config doesn't seem to be utilized by any tool.
-
Fredrik Jonsson authored
Fix bug in submission-text-cleanup that made all tables display in the last field with a table (#4191) Fixes #4189
-
Fredrik Jonsson authored
The doc title filter had a small bug and we already have the title_text_display property that make use of the `SUBMISSION_TITLE_TEXT_TEMPLATE`.
-
Saurabh Kumar authored
Retrict the max-width to it doesn't expand too much on the large screen sizes
-
- Nov 04, 2024
-
-
Wes Appler authored
Pertaining to discussions had in #4037. This integrates the [argostranslate](https://github.com/argosopentech/argos-translate) library to allow for translation of applications. The current functionality allows staff users to translate the written answers of an application. This feature utilizes htmx to translate the application without requiring a reload of the page, while also updating the URL so a user can have a sharable link (using the query parameters `fl` [from language] & `tl` [to language]) when collaborating with others on the application. This feature is disabled by default & can be enabled via the `SUBMISSION_TRANSLATIONS_ENABLED` setting ## Demos *Translating an application* https://github.com/user-attachments/assets/e454a6b7-d449-4caf-8d2d-cb1ad7196546 *Clearing a translation via the form* https://github.com/user-attachments/assets/5c46ea36-7860-49dc-8758-965a06036fdc
-
- Nov 01, 2024
-
-
Wes Appler authored
Fixes #3208. Implemented an improvement for the picklist where radio buttons will be shown when there are less than 4 options. Otherwise the prompt will be like it was before. This PR also implements HTMX for the invoice updating prompt, allowing invoices in table to be updated w/o refreshing the pages Co-authored-by:
Fredrik Jonsson <frjo@xdeb.org>
-
bickelj authored
Fixes #3989 Co-authored-by:
Frank Duncan <frankduncan@opentechstrategies.com> Co-authored-by:
Fredrik Jonsson <frjo@xdeb.org>
-
- Oct 31, 2024
-
-
Fredrik Jonsson authored
Live score label added to edit review form Fixes #3963 Co-authored-by:
Ghulam Murtaza <gmurtaza@opentechstrategies.com> Co-authored-by:
Saurabh Kumar <theskumar@users.noreply.github.com>
-
Sandeep Chauhan authored
Fixes #4124 - [ ] Use htmx/alpine for supporting documents upload/remove - [ ] Use htmx/alpine for Send for approval modal - [ ] Use htmx/alpine for Assign paf approvers modal - [ ] Use htmx/alpine for Change paf approvers modal - [ ] Use htmx/alpine for View/Update paf approvers modal - [ ] Use htmx/alpine for Update Paf status modal - [ ] Use htmx/alpine for Skip paf approval modal
-
- Oct 24, 2024
-
-
Fredrik Jonsson authored
Fixes #4172
-
Fredrik Jonsson authored
Fixes #4181
-
Wes Appler authored
Fixes #4183. Preserves query params when utilizing pagination options in list/table views. --------- Co-authored-by:
Saurabh Kumar <theskumar@users.noreply.github.com>
-
- Oct 23, 2024
-
-
Fredrik Jonsson authored
When using flex on the review form the errors was creating their own column. Also +1 the z-index of field errors so they are displayed above tinymce editor.
-
Fredrik Jonsson authored
-
- Oct 22, 2024
-
-
Saurabh Kumar authored
Additionally, - update pre-commit -> prettier to run before linting with eslint and stylelint Fixes https://github.com/HyphaApp/hypha/issues/4153
-
- Oct 21, 2024
-
-
Saurabh Kumar authored
Check the individual commits for more info, for now.
-
- Oct 20, 2024
-
-
Sandeep Chauhan authored
Fixes #4058
-
- Oct 18, 2024
-
-
Fredrik Jonsson authored
- Oct 17, 2024
-
-
Saurabh Kumar authored
- Update the data displayed - add current status and round/lab - Update the look and feel of it - Limit the title display to 2 lines. - Refractored the JS to be jquery independent and make it collapsing behaviour generic, some concepts borrowed from https://rstacruz.github.io/rsjs/ for structuing the custom js code
-