mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Compare commits
	
		
			7 Commits
		
	
	
		
			v2.18.2
			...
			f2fabc81d4
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | f2fabc81d4 | ||
|   | f94c3eeea8 | ||
|   | 22064ed004 | ||
|   | 23daa0b974 | ||
|   | 7b63f5a98c | ||
|   | 7c76377477 | ||
| ![github-actions[bot]](/assets/img/avatar_default.png)  | 56c70bf177 | 
| @@ -1,5 +1,32 @@ | ||||
| # Changelog | ||||
|  | ||||
| ## paperless-ngx 2.18.2 | ||||
|  | ||||
| ### Bug Fixes | ||||
|  | ||||
| -   Fix: prevent loss of changes when switching between open docs [@shamoon](https://github.com/shamoon) ([#10659](https://github.com/paperless-ngx/paperless-ngx/pull/10659)) | ||||
| -   Fix: ignore incomplete tasks for system status 'last run' [@shamoon](https://github.com/shamoon) ([#10641](https://github.com/paperless-ngx/paperless-ngx/pull/10641)) | ||||
| -   Fix: increase legibility of date filter clear button in light mode [@shamoon](https://github.com/shamoon) ([#10649](https://github.com/paperless-ngx/paperless-ngx/pull/10649)) | ||||
| -   Fix: ensure saved view count is visible with long names [@shamoon](https://github.com/shamoon) ([#10616](https://github.com/paperless-ngx/paperless-ngx/pull/10616)) | ||||
| -   Tweak: improve dateparser auto-detection messages [@shamoon](https://github.com/shamoon) ([#10640](https://github.com/paperless-ngx/paperless-ngx/pull/10640)) | ||||
|  | ||||
| ### Dependencies | ||||
|  | ||||
| -   Chore(deps): Bump the development group across 1 directory with 3 updates @[dependabot[bot]](https://github.com/apps/dependabot) ([#10578](https://github.com/paperless-ngx/paperless-ngx/pull/10578)) | ||||
|  | ||||
| ### All App Changes | ||||
|  | ||||
| <details> | ||||
| <summary>6 changes</summary> | ||||
|  | ||||
| -   Fix: prevent loss of changes when switching between open docs [@shamoon](https://github.com/shamoon) ([#10659](https://github.com/paperless-ngx/paperless-ngx/pull/10659)) | ||||
| -   Fix: ignore incomplete tasks for system status 'last run' [@shamoon](https://github.com/shamoon) ([#10641](https://github.com/paperless-ngx/paperless-ngx/pull/10641)) | ||||
| -   Tweak: improve dateparser auto-detection messages [@shamoon](https://github.com/shamoon) ([#10640](https://github.com/paperless-ngx/paperless-ngx/pull/10640)) | ||||
| -   Fix: increase legibility of date filter clear button in light mode [@shamoon](https://github.com/shamoon) ([#10649](https://github.com/paperless-ngx/paperless-ngx/pull/10649)) | ||||
| -   Fix: ensure saved view count is visible with long names [@shamoon](https://github.com/shamoon) ([#10616](https://github.com/paperless-ngx/paperless-ngx/pull/10616)) | ||||
| -   Chore(deps): Bump the development group across 1 directory with 3 updates @[dependabot[bot]](https://github.com/apps/dependabot) ([#10578](https://github.com/paperless-ngx/paperless-ngx/pull/10578)) | ||||
| </details> | ||||
|  | ||||
| ## paperless-ngx 2.18.1 | ||||
|  | ||||
| ### Features / Enhancements | ||||
|   | ||||
| @@ -113,7 +113,7 @@ | ||||
|                     [disablePopover]="!slimSidebarEnabled" placement="end" container="body" triggers="mouseenter:mouseleave" | ||||
|                     popoverClass="popover-slim"> | ||||
|                     <i-bs class="me-1" name="funnel"></i-bs> | ||||
|                       <span> <div class="d-inline-flex view-name"><span [class.text-truncate]="!slimSidebarEnabled">{{view.name}}</span></div> | ||||
|                       <span> <div class="d-inline-flex view-name"><span class="overflow-hidden" [class.text-truncate]="!slimSidebarEnabled">{{view.name}}</span></div> | ||||
|                         @if (showSidebarCounts && !slimSidebarEnabled) { | ||||
|                           <span class="badge bg-info text-dark ms-2 d-inline">{{ savedViewService.getDocumentCount(view) }}</span> | ||||
|                         } | ||||
| @@ -147,7 +147,7 @@ | ||||
|                   [disablePopover]="!slimSidebarEnabled" placement="end" container="body" triggers="mouseenter:mouseleave" | ||||
|                   popoverClass="popover-slim"> | ||||
|                   <i-bs class="me-1" name="file-text"></i-bs><span> {{d.title | documentTitle}}</span> | ||||
|                   <span class="close" (click)="closeDocument(d); $event.preventDefault()"> | ||||
|                   <span class="close flex-column justify-content-center" (click)="closeDocument(d); $event.preventDefault()"> | ||||
|                     <i-bs name="x"></i-bs> | ||||
|                   </span> | ||||
|                 </a> | ||||
|   | ||||
| @@ -191,7 +191,7 @@ main { | ||||
|   list-style-type: none; | ||||
|  | ||||
|   &:hover .close { | ||||
|     display: block; | ||||
|     display: flex; | ||||
|   } | ||||
|  | ||||
|   .close { | ||||
|   | ||||
| @@ -452,6 +452,18 @@ describe('DocumentDetailComponent', () => { | ||||
|     expect(navigateSpy).toHaveBeenCalledWith(['404'], { replaceUrl: true }) | ||||
|   }) | ||||
|  | ||||
|   it('should navigate to 404 if error on load', () => { | ||||
|     jest | ||||
|       .spyOn(activatedRoute, 'paramMap', 'get') | ||||
|       .mockReturnValue(of(convertToParamMap({ id: 3, section: 'details' }))) | ||||
|     const navigateSpy = jest.spyOn(router, 'navigate') | ||||
|     jest | ||||
|       .spyOn(documentService, 'get') | ||||
|       .mockReturnValue(throwError(() => new Error('not found'))) | ||||
|     fixture.detectChanges() | ||||
|     expect(navigateSpy).toHaveBeenCalledWith(['404'], { replaceUrl: true }) | ||||
|   }) | ||||
|  | ||||
|   it('should support save, close and show success toast', () => { | ||||
|     initNormally() | ||||
|     component.title = 'Foo Bar' | ||||
| @@ -1388,4 +1400,19 @@ describe('DocumentDetailComponent', () => { | ||||
|     component.openEmailDocument() | ||||
|     expect(modalSpy).toHaveBeenCalled() | ||||
|   }) | ||||
|  | ||||
|   it('should set previewText', () => { | ||||
|     initNormally() | ||||
|     const previewText = 'Hello world, this is a test' | ||||
|     httpTestingController.expectOne(component.previewUrl).flush(previewText) | ||||
|     expect(component.previewText).toEqual(previewText) | ||||
|   }) | ||||
|  | ||||
|   it('should set previewText to error message if preview fails', () => { | ||||
|     initNormally() | ||||
|     httpTestingController | ||||
|       .expectOne(component.previewUrl) | ||||
|       .flush('fail', { status: 500, statusText: 'Server Error' }) | ||||
|     expect(component.previewText).toContain('An error occurred loading content') | ||||
|   }) | ||||
| }) | ||||
|   | ||||
| @@ -88,6 +88,7 @@ class StandardPagination(PageNumberPagination): | ||||
|         response_schema["properties"]["all"] = { | ||||
|             "type": "array", | ||||
|             "example": "[1, 2, 3]", | ||||
|             "items": {"type": "integer"}, | ||||
|         } | ||||
|         return response_schema | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user