Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
89 changes: 88 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,94 @@ Full Changelog: [https://github.com/netgrif/components/commits/v6.5.0](https://g
- [NAE-2019] Bugs after merge with 6.4.0

### Changed
- [NAE- 1940] Update to new Angular
- [NAE-1889] Process list is not refreshed after uploading process file
- [NAE-1885] Side panel creates a new case when pressing Enter on date field
- [NAE-1687] Factory class as providers
- [NAE-1911] Autosave on text area in cooperation with button
- [NAE-1497] Frontend actions
- [NAE-1915] TaskRef behaviour handling for multiple level
- [NAE-1904] Case ref as multichoice and enumeration
- [NAE-1908] NAE-1906 Improvements
- [NAE-1918] Tags on process resources
- [NAE-1921] User field value cannot be cleared
- [NAE-1914] revertToPreviousValue - change is always false
- [NAE-1925] Panel is not opening
- [NAE-1924] Neziadane volanie setData z FE
- [NAE-1923] DateTime doesn't have locale and rework validation to isoWeekday
- [NAE-1928] Refresh tabs on change
- [NAE-1926] Can't close Tab in Tab view
- [NAE-1929] Data field type list of strings
- [NAE-1933] UserList deleteAll button
- [NAE-1939] Problem with Tests
- [NAE-1936] Disable create case button using menu items
- [NAE-1935] Improved breadcrumbs from menu items
- [NAE-1876] Process URI v2
- [NAE-1882] Filter folder process
- [NAE-1890] Data field component register
- [NAE-1901] Taskref rendering update
- [NAE-1900] New component design
- [NAE-1920] Injection token NAE_USER_ASSIGN_COMPONENT breaks delegate
- [NAE-1879] Language register
- [NAE-1905] Add bold on i18n text plainText field
- [NAE-1873] Seperator for number field
- [NAE-1922] Signature Pad Field
- [NAE-1949] Allowed Types for Filefield

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Remove duplicate changelog entries.

The following entries appear twice in the 7.0.0 "Changed" section:

  • [NAE-1949] Allowed Types for Filefield — lines 48 and 56
  • [NAE-2013] Autocomplete options are set to the first dropdown — lines 58 and 59
  • [NAE-2085] Refactor User — lines 79 and 82

Also applies to: 56-56, 58-59, 79-79, 82-82

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG.md` at line 48, Remove the duplicate entries for NAE-1949,
NAE-2013, and NAE-2085 from the 7.0.0 “Changed” section, retaining exactly one
entry for each issue and leaving all other changelog entries unchanged.

- [NAE-1813] Field id as path variable in TaskController
- [NAE-1957] Allow filter to caseRef field and variants
- [NAE-1960] Enumeration Map does not propagate changes when selecting
- [NAE-1958] Make component properties changeable
- [NAE- 1940] Update to new Angular

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix ticket ID typo.

[NAE- 1940] contains a stray space between NAE- and 1940. All other entries use the format [NAE-XXXX] without a space.

✏️ Proposed fix
-- [NAE- 1940] Update to new Angular 
+- [NAE-1940] Update to new Angular 
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- [NAE- 1940] Update to new Angular
- [NAE-1940] Update to new Angular
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG.md` at line 53, Correct the ticket identifier in the changelog
entry by removing the space between “NAE-” and “1940”, preserving the existing
entry text and standard “[NAE-XXXX]” format.

- [NAE-1983] Public view file handling
- [NAE-1999] Broken pagination on paged case view
- [NAE-1949] Allowed Types for Filefield
- [NAE-2005] Field behavior change does not work correctly with multiple references using taskRef
- [NAE-2013] Autocomplete options are set to the first dropdown
- [NAE-2013] Autocomplete options are set to the first dropdown
- [NAE-2016] Global roles for menu items permissions
- [NAE-2018] User list input is not showing dialog
- [NAE-2020] Create case error when allowed net blocks are present
- [NAE-2021] Outputs for navigation components
- [NAE-2022] UI Design Fixes and Improvements
- [NAE-2034] Open first view
- [NAE-2038] Public View
- [NAE-2033] Welcome dashboard
- [NAE-2035] Implement Single-Task-View
- [NAE-2036] Task-List-View to open Case by link
- [NAE-2041] Implementing Ticket View
- [NAE-2040] Search in role management
- [NAE-2052] Integrate ticket view with menu items
- [NAE-2039] Search in workflow view
- [NAE-2063] Action API 6.5.0
- [NAE-2115] Task search on Search Node #314
- [NAE-2119] Fix menuItem
- [NAE-2125] Remove URI service usage from admin and menu items #318
- [NAE-2116] Frontend remote configuration
- [NAE-2085] Refactor User
- [NAE-2122] Implement Structured and Efficient Pagination in gRPC
- [NAE-2146] Broken hidden menu on frontend
- [NAE-2085] Refactor User
- [NAE-2118] Implement OpenID Connector Auth for Admin node
- [NAE-2165] Broken task list pagination
- [NAE-2174] Vanishing menu after few clicks
- Refactor case ID usage to replace `stringId` with `id`
- [NAE-2188] Wrong remote configuration loading order
- [NAE-2197] Wrong elastic sort
- [NAE-2205] DefaultCaseRefListViewComponent - headers not displayed when processes exceed single view
- [NAE-2202] Post test fixes
- [NAE-2218] Misaligned header on case view when displayed below 1920px
- [NAE-2224] Title in optional text in case creation button as I18nString
- [NAE-2226] Cannot switch between menu items
- [NAE-2232] Frontend Actions Task events resolver
- [NAE-2233] Fix dashboard menu issue
- [NAE-2227] MenuItem default headers not working
- [NAE-2234] Fix dashboard menu
- [NAE-2217] Single Task View
- [NAE-2251] Map field options are not translated
- [NAE-2285] Group as a value of userlists
- [NAE-2354] Include assignee userRealmId in task response
- [NAE-2263] Copy/selection prevention is set to to entire application not just for side menu
- [NAE-2435] Enumeration field with no choices does not properly handle validation
- [NAE-2416] AbstractFileDefaultFieldComponent does not push upload event

## [6.5.0](https://github.com/netgrif/components/releases/tag/v6.5.0) (2025-02-18)
### Added
Expand Down
2 changes: 1 addition & 1 deletion nae.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"enable": false,
"clientId": "dev-cluster-worker",
"redirectUrl": "http://localhost:8081/realms/netgrif-cloud-testing/protocol/openid-connect/auth",
"refreshUrl": "http://localhost:8800/api/auth/login",
"refreshUrl": "http://localhost:8080/api/auth/login",
"scopes": ["openid","email","profile","roles"]
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netgrif/components-project",
"version": "7.0.0-rc.19",
"version": "7.0.0",
"description": "Netgrif Application Engine Frontend project. Project includes angular libraries as base for NAE applications.",
"homepage": "https://components.netgrif.com",
"license": "SEE LICENSE IN LICENSE",
Expand Down
2 changes: 1 addition & 1 deletion projects/nae-example-app/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class AppComponent {
translate.setTranslation('en', en, true);
translate.setTranslation('sk', sk, true);

this.userService.user$.pipe(filter(u => !!u && u.id !== ''), take(1)).subscribe(() => {
this.userService.user$.pipe(filter(u => !!u && u.id !== '' && !u.isAnonymous()), take(1)).subscribe(() => {
const allNets = allowedNetsFactory.createWithAllNets();
allNets.allowedNetsIdentifiers$.pipe(take(1)).subscribe(nets => {
if (this.baseAllowedNets.allowedNets.length !== 0) {
Expand Down
2 changes: 1 addition & 1 deletion projects/netgrif-components-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netgrif/components-core",
"version": "7.0.0-rc.19",
"version": "7.0.0",
"description": "Netgrif Application engine frontend core Angular library",
"homepage": "https://components.netgrif.com",
"license": "SEE LICENSE IN LICENSE",
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {ProxyAuthenticationService} from './proxyAuthentication.service';
import {AuthenticationMethodService} from './services/authentication-method.service';
import {OverlayModule} from '@angular/cdk/overlay';
import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';
import {AnonymousAuthenticationInterceptor} from './services/anonymous-authentication-interceptor';
// import {AnonymousAuthenticationInterceptor} from './services/anonymous-authentication-interceptor';


@NgModule({
Expand All @@ -22,7 +22,7 @@ import {AnonymousAuthenticationInterceptor} from './services/anonymous-authentic
],
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: AuthenticationInterceptor, multi: true },
{ provide: HTTP_INTERCEPTORS, useClass: AnonymousAuthenticationInterceptor, multi: true },
// { provide: HTTP_INTERCEPTORS, useClass: AnonymousAuthenticationInterceptor, multi: true },
{ provide: AuthenticationMethodService, useClass: ProxyAuthenticationService},
// AuthenticationEffects
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export * from './sign-up/public-api';
/* MODULES */
export * from './authentication.module';

/* SERVICES */
export * from './anonymous/anonymous.service';
export * from './services/anonymous-authentication-interceptor'
// export * from './services/anonymous-authentication-interceptor'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

Remove the commented export from the public API surface.

Keeping commented exports in a public API file creates dead code and ambiguity. If this export is intentionally retired, delete it outright.

🧹 Suggested cleanup
-// export * from './services/anonymous-authentication-interceptor'
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// export * from './services/anonymous-authentication-interceptor'
🤖 Prompt for AI Agents
In `@projects/netgrif-components-core/src/lib/authentication/public-api.ts` at
line 13, Remove the commented dead export in public-api.ts: delete the line "//
export * from './services/anonymous-authentication-interceptor'". This cleans up
the public API surface by removing the stale commented export referencing the
anonymous-authentication-interceptor module.

export * from './services/authentication-interceptor'
export * from './proxyAuthentication.service'

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import {Observable, throwError} from 'rxjs';
import {catchError, tap} from 'rxjs/operators';
import {SessionService} from '../session/services/session.service';
import {RedirectService} from '../../routing/redirect-service/redirect.service';
import {AnonymousService} from '../anonymous/anonymous.service';
// import {AnonymousService} from '../anonymous/anonymous.service';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major

Remove commented-out import.

Delete the commented-out import rather than leaving dead code. If the AnonymousService dependency is permanently removed from this interceptor, clean up the remnants.

♻️ Proposed fix
-// import {AnonymousService} from '../anonymous/anonymous.service';
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// import {AnonymousService} from '../anonymous/anonymous.service';
🤖 Prompt for AI Agents
In
`@projects/netgrif-components-core/src/lib/authentication/services/authentication-interceptor.ts`
at line 14, Remove the dead commented import for AnonymousService from
authentication-interceptor.ts and clean up any remaining references or leftover
comments related to AnonymousService in the AuthenticationInterceptor (e.g.,
constructor parameters, private fields, or TODO comments) so the file contains
only active imports and dependencies; ensure the import block and any unused
symbols in the AuthenticationInterceptor class are cleaned up to avoid linter
warnings.

import {SessionIdleTimerService} from "../session/services/session-idle-timer.service";

@Injectable()
export class AuthenticationInterceptor implements HttpInterceptor {

constructor(private _session: SessionService,
private _redirect: RedirectService,
private _anonymousService: AnonymousService,
// private _anonymousService: AnonymousService,
private idleTimerService: SessionIdleTimerService) {
}
Comment on lines 20 to 24

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major

Remove commented-out constructor parameter.

The commented-out _anonymousService parameter should be deleted for cleanliness.

♻️ Proposed fix
 constructor(private _session: SessionService,
             private _redirect: RedirectService,
-            // private _anonymousService: AnonymousService,
             private idleTimerService: SessionIdleTimerService) {
 }
🤖 Prompt for AI Agents
In
`@projects/netgrif-components-core/src/lib/authentication/services/authentication-interceptor.ts`
around lines 20 - 24, Remove the commented-out constructor parameter
_anonymousService from the AuthenticationInterceptor constructor: open the
constructor in authentication-interceptor.ts (the constructor method that
currently lists _session, _redirect, // private _anonymousService:
AnonymousService, and idleTimerService) and delete the commented line so the
constructor only declares the active dependencies (_session, _redirect,
idleTimerService).


Expand All @@ -37,7 +37,7 @@ export class AuthenticationInterceptor implements HttpInterceptor {
return next.handle(req).pipe(
tap(event => {
if (event instanceof HttpResponse) {
if (event.headers.has(this._session.sessionHeader) && !event.headers.has(this._anonymousService.jwtHeader)) {
if (event.headers.has(this._session.sessionHeader)) {
this._session.setVerifiedToken(event.headers.get(this._session.sessionHeader));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class AccessService {
if (view.access !== 'private') {
throw new Error(`Unknown access option '${view.access}'. Only 'public' or 'private' is allowed.`);
}
return !this._userService.user.isEmpty();
return !this._userService.user.isEmpty() && !this._userService.user.isAnonymous();
}

if (!url) {
Expand Down
Loading
Loading