Skip to content

feat(planning): standard text size in history modal, open to all users#1650

Merged
renemadsen merged 1 commit into
stablefrom
feat/history-standard-font-open-access
Jul 15, 2026
Merged

feat(planning): standard text size in history modal, open to all users#1650
renemadsen merged 1 commit into
stablefrom
feat/history-standard-font-open-access

Conversation

@renemadsen

Copy link
Copy Markdown
Member

Summary

  • The Aktivitetslog timeline no longer uses extra-small font sizes — all text inherits the dialog's standard size via the --mat-dialog-supporting-text-size token (verified live at 14px, equal to the workday dialog's own body text). The time column widened to max-content to fit.
  • The history button is no longer admin-only — any user can open the Aktivitetslog. The backend endpoint was never admin-restricted, so this is purely removing the frontend *ngIf (plus its now-dead selector).

Verification

Verified live in the browser: computed font-size 14px on every timeline element (action/time/actor/hint/day-heading/intro), matching the dialog body text; time column fits HH:mm without wrapping; the token override is scoped to this dialog's host and cannot leak to other dialogs.

🤖 Generated with Claude Code

Remove the extra-small font sizes from the Aktivitetslog timeline —
text now inherits the dialog's standard size via the
--mat-dialog-supporting-text-size token (verified 14px, equal to the
dialog body text). Widen the time column to max-content accordingly.

Remove the admin-only gate on the history button; the endpoint was
never admin-restricted server-side.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 15, 2026 04:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot couldn't run its full agentic review because no GitHub Actions runner was available. Make sure your repository has a runner available to run Copilot's review, or add a copilot-setup-steps.yml file specifying one with the runs-on attribute. See the docs for more details.

Updates the Time Planning “Aktivitetslog” (version history) UI to use standard dialog text sizing and makes the history action available to all users (not just admins).

Changes:

  • Removed admin-only gating for opening the version history modal in the Workday dialog.
  • Standardized typography in the version history modal by relying on the dialog’s supporting-text token (and adjusted a few specific elements).
  • Tweaked the history timeline layout to prevent time values from wrapping.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/workday-entity/workday-entity-dialog.component.ts Removes the admin selector usage tied to the history button gating.
eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/workday-entity/workday-entity-dialog.component.html Makes the history button visible for all users by removing *ngIf on admin.
eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/version-history-modal/version-history-modal.component.scss Standardizes modal text sizing via a Material token override and adjusts timeline grid column sizing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 6 to 9
<button
*ngIf="selectAuthIsAdmin$ | async"

mat-icon-button
(click)="openVersionHistory()"
matTooltip="{{'View history' | translate}}">
Comment on lines 67 to 70
.history-event {
display: grid;
grid-template-columns: 3.35rem minmax(0, 1fr);
grid-template-columns: max-content minmax(0, 1fr);
gap: 6px 12px;
@renemadsen
renemadsen merged commit 5195ca9 into stable Jul 15, 2026
39 of 40 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.

2 participants