Skip to content

feat: add and complete Identifiers.java for HasIdentifier contract with dave - #432

Merged
hpehl merged 3 commits into
mainfrom
identifiers
Oct 21, 2026
Merged

hpehl merged 3 commits into
mainfrom
identifiers

Conversation

@hpehl

@hpehl hpehl commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add Identifiers.java with 62 static constants covering all HasIdentifier usages across halOP
  • Delegate AddressTemplate.identifier() to Identifiers.fromTemplate()
  • Update 18 source files to reference Identifiers.* instead of string literals
  • Document dynamic identifier conventions in Javadoc

Audit coverage

All PFJ components implementing HasIdentifier that are used in halOP were traced and classified:

  • Static identifiers → centralized as constants in Identifiers.java
  • Dynamic identifiers → conventions documented in Javadoc
  • Navigation items, tabs, table headers, menu items, dashboard cards, endpoint form, wizard steps, notification actions

Test plan

  • mvn compile -P op -Dquickly builds successfully
  • mvn test -P op -Dquickly all tests pass
  • pnpm sync:identifiers in dave picks up all 62 constants

Closes #433

hpehl added 2 commits October 20, 2026 20:00
Centralizes static identifiers used by HasIdentifier components
into a single file, mirroring the OuiaIds.java pattern for OUIA
IDs. These identifiers are synced to dave via pnpm sync:identifiers
and serve as the contract for [data-identifier="..."] selectors.

Includes:
- 20 static constants (columns, finder items, breadcrumb, tasks)
- build() method for dynamic identifiers (mirrors Id.build())
- fromTemplate() for address template-based identifiers

All configuration column and finder item classes updated to
reference Identifiers constants instead of local string literals.

Closes #428 (partial)
…mplate()

Single source of truth for the template-to-identifier conversion
logic. AddressTemplate now delegates to Identifiers.fromTemplate()
instead of duplicating the replacement and Id.build() call.
…ts (#433)

Audit all PFJ HasIdentifier component usages across halOP and centralize
static identifiers in Identifiers.java (20 → 62 constants). Update 18
source files to reference Identifiers.* instead of string literals.
Document dynamic identifier conventions in Javadoc.
@hpehl hpehl changed the title feat: add Identifiers.java for HasIdentifier contract with dave feat: add and complete Identifiers.java for HasIdentifier contract with dave Oct 20, 2026
@hpehl
hpehl merged commit 9e56e03 into main Oct 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audit HasIdentifier usage and complete Identifiers.java

1 participant