Commit Graph

33652 Commits

Author SHA1 Message Date
Simon Larsen
f1efd65ada Merge pull request #2070 from OneUptime/snyk-upgrade-ecc4458d6ea952fff3607671e1a1fb1d
[Snyk] Upgrade react-router-dom from 6.23.1 to 6.30.1
2025-11-03 08:51:04 +00:00
snyk-bot
bc338f41c7 fix: upgrade react-router-dom from 6.23.1 to 6.30.1
Snyk has created this PR to upgrade react-router-dom from 6.23.1 to 6.30.1.

See this package in npm:
react-router-dom

See this project in Snyk:
https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/40b17bc5-1bd4-48b1-88f1-5b4dc1400e80?utm_source=github&utm_medium=referral&page=upgrade-pr
2025-11-02 10:11:06 +00:00
Simon Larsen
39153735b5 Merge pull request #2069 from OneUptime/chore/npm-audit-fix
chore: npm audit fix
2025-11-02 09:18:55 +00:00
simlarsen
ae9a78f1f4 chore: npm audit fix 2025-11-01 01:49:26 +00:00
Nawaz Dhandala
f224ad6092 fix(ui): display correct feature list and icon for Community Edition
- Map communityFeatures (not enterpriseFeatures) in the Community Edition panel
- Replace wrong/Danger icon with Check and add muted gray styling
2025-10-31 18:14:32 +00:00
Nawaz Dhandala
1abb8bc83f style(ui): reformat EditionLabel and trim whitespace in Dashboard Footer
- Reflow imports, map callbacks and wrapped long strings in EditionLabel for improved readability.
- Remove stray trailing space in Dashboard Footer link.
2025-10-31 18:07:23 +00:00
Nawaz Dhandala
46704b7c5a fix(ui): correct IconProp relative import path in EditionLabel 2025-10-31 16:48:17 +00:00
Nawaz Dhandala
143d91ceab feat(ui): revamp EditionLabel to use shared enterpriseFeatures and render feature lists with icons 2025-10-31 16:46:28 +00:00
Nawaz Dhandala
ea58cacd1b feat(ui): revamp EditionLabel and allow Footer content links
- Update EditionLabel UI: new button styling, status indicator, compact CTA text
- Expand modal content with Community vs Enterprise comparison and use enterprise demo URL
- Pass ModalWidth to modal and refine primary action behavior
- Extend Footer types to accept ReactNode content and render content links
- Embed EditionLabel into Dashboard footer links
2025-10-31 16:43:07 +00:00
Nawaz Dhandala
5e19849ac8 feat(ui): add EditionLabel and expose IS_ENTERPRISE across apps
- Add EditionLabel component to Common UI to show current edition and info modal
- Show edition label in Login page, Dashboard header and Footer
- Add IS_ENTERPRISE env var to config.example.env and export in Common UI Config
- Propagate IS_ENTERPRISE into docker-compose.base.yml service envs
2025-10-31 15:47:12 +00:00
Nawaz Dhandala
f7c05645a9 feat(helm-chart): add image helper and support enterprise image type
- Add Helm helpers oneuptime.image.tag and oneuptime.image to centralize image name/tag formatting
- If image.type is "enterprise-edition" and tag doesn't already contain "enterprise", prefix tag with "enterprise-"
- Replace inline image printf calls with include "oneuptime.image" across deployments, cronjob and tests
- Add image.type to values.schema.json and set default type to "community-edition" in values.yaml
2025-10-31 15:17:41 +00:00
Nawaz Dhandala
1c1a48b78f chore(ci): build/publish enterprise image variants and add IS_ENTERPRISE arg to Dockerfiles 2025-10-31 14:49:07 +00:00
Nawaz Dhandala
13860be56d chore(helm-chart): remove cert-manager integration from oneuptime chart
- Remove cert-manager dependency from Chart.yaml and update Chart.lock (digest/timestamp)
- Delete bundled cert-manager chart (charts/cert-manager-v1.18.2.tgz)
- Remove ClusterIssuer template and cert-manager/Let's Encrypt-related ingress annotations and secret handling
- Remove cert-manager and certManagerLetsEncrypt entries from values.schema.json and values.yaml
- Clean up README to remove Cert-Manager / Let's Encrypt documentation and references
8.0.5496
2025-10-30 21:52:19 +00:00
Simon Larsen
0785f11abe Merge pull request #2066 from OneUptime/live-logs
Live logs
2025-10-30 18:58:45 +00:00
Nawaz Dhandala
f0d9f7c594 chore(incidents): add IncidentUpdatePayload type and use it for updatedIncidentData 2025-10-30 18:58:19 +00:00
Nawaz Dhandala
dc9463f73d chore(logs-viewer,logs): add explicit types for liveRequestInFlight, fetchItems and handleLiveToggle 2025-10-30 18:45:54 +00:00
Nawaz Dhandala
37c8e8b6b6 chore(logs-viewer,logs): tweak LiveLogsToggle styling for improved contrast
- add bg-white/90 and backdrop-blur to base classes
- update active/inactive border, text and hover classes
- adjust indicator colors and make "Live" label font-semibold
2025-10-30 18:42:41 +00:00
Nawaz Dhandala
763dfaa1c9 chore(logs-viewer,logs): track live-updating state and disable live toggle during live fetches 2025-10-30 18:37:55 +00:00
Nawaz Dhandala
c2e0d402d5 chore(logs-viewer,logs): remove live updating indicator and tooltip; simplify LiveLogsToggle API
- Remove isUpdating and tooltip from LiveLogsToggle props and types
- Drop Tooltip import and spinner markup; always return button content
- Remove isLiveUpdating state and related updates from Dashboard LogsViewer
- Simplify liveOptions to only pass isLive and onToggle
2025-10-30 18:34:48 +00:00
Simon Larsen
cdc1526fbf chore(logs-viewer,logs): normalize formatting - inline LiveLogsToggle JSX and reformat catch callback 2025-10-30 18:20:10 +00:00
Simon Larsen
13ebd34e8f feat(logs-viewer): add live logs toggle and realtime refresh support
- Add LiveLogsOptions type and LiveLogsToggle component.
- Wire liveOptions through LogsViewer -> LogsViewerToolbar to render the live toggle.
- Update Dashboard LogsViewer to support live mode:
  - add isLiveEnabled, isLiveUpdating state and liveRequestInFlight ref.
  - change fetchItems to accept skipLoadingState to perform lightweight live refreshes (sets isLiveUpdating instead of full loader).
  - poll every 10s when live is enabled (only on page 1, sorted by time desc) and use skipLoadingState for background refreshes.
  - integrate with realtime listener and avoid overlapping live requests.
  - add handleLiveToggle to enforce page/sort when enabling and to stop live updates when disabling.
- Automatically disable live mode when user changes filters, page, or sort in ways that conflict with live behavior.
- Minor imports/exports and typing adjustments.
2025-10-30 18:17:17 +00:00
Nawaz Dhandala
3b97c23039 Merge branch 'release' of https://github.com/OneUptime/oneuptime into release 2025-10-30 16:45:43 +00:00
Simon Larsen
7c15424565 Merge pull request #2064 from OneUptime/incident-postmortem
Incident postmortem
2025-10-30 16:45:20 +00:00
Nawaz Dhandala
6817443d9a chore: normalize formatting and comment style across migrations, jobs and postmortem UI
- Reformat MigrationName1761834523183.ts SQL queries to multi-line strings and consistent quoting
- Add trailing comma to migrations Index export
- Convert inline // comments to /* ... */ block comments in KeepCurrentStateConsistent jobs (Alert, Incident, Monitor, ScheduledMaintenance) for consistency
- Minor refactor in IncidentPostmortem: expand setRefreshToggle updater to an explicit return
2025-10-30 16:44:54 +00:00
Nawaz Dhandala
f40a6395a6 feat(incident): set create/edit modal width for incident postmortem templates 2025-10-30 16:42:25 +00:00
Nawaz Dhandala
81eb735aab feat(incident): extract postmortem form fields and apply templates via edit modal 2025-10-30 16:39:25 +00:00
Nawaz Dhandala
923339710b feat(incident): add migration to create IncidentPostmortemTemplate and add postmortemNote to Incident 2025-10-30 14:30:56 +00:00
Nawaz Dhandala
1f9ec3011c feat(incident): add postmortem UI, templates, routes and breadcrumbs
- Add Incident Postmortem page to incident view with:
  - Postmortem note CardModelDetail (edit/save)
  - "Apply Template" modal to pick and apply a postmortem template
- Add Settings pages for postmortem templates:
  - IncidentPostmortemTemplates (list/create)
  - IncidentPostmortemTemplateView (view/edit/delete)
- Wire up routes, route map, page map and side menu links for postmortem views
- Add breadcrumbs entries for incident postmortem and settings pages
- Minor cleanup/formatting tweaks in IncidentPostmortemTemplate model and IncidentService
2025-10-30 14:17:24 +00:00
Nawaz Dhandala
668093b09c feat(incident): add postmortem template & postmortem note feed support
- add IncidentPostmortemTemplate model and IncidentPostmortemTemplateService
- expose model in Common/Models/DatabaseModels index and register API route in BaseAPI
- add postmortemNote column to Incident model
- add IncidentFeedEventType.PostmortemNote enum value
- emit IncidentFeed item when postmortemNote is added/updated/cleared (IncidentService)
- update Dashboard IncidentFeed to show Book icon for PostmortemNote events
2025-10-30 12:27:13 +00:00
Simon Larsen
f39f51e8ee Merge pull request #2063 from OneUptime/master
chore(jobs): comment out KeepCurrentStateConsistent implementations a…
2025-10-30 12:08:05 +00:00
Nawaz Dhandala
0bff616ca9 chore(jobs): comment out KeepCurrentStateConsistent implementations and unused imports for Alert, Incident, Monitor, and ScheduledMaintenance 8.0.5489 2025-10-30 11:59:07 +00:00
Nawaz Dhandala
709b9b8343 fix(link): add title to ComponentProps and forward it to the anchor element 2025-10-30 11:36:46 +00:00
Nawaz Dhandala
aa93252407 Merge branch 'master' into release 2025-10-29 20:38:27 +00:00
Simon Larsen
b4e7ffce43 Merge pull request #2062 from OneUptime/log-ui
Log UI
2025-10-29 20:37:16 +00:00
Nawaz Dhandala
1053d22d3f refactor(logs-viewer): add overflow-y-hidden to table container to prevent vertical overflow 2025-10-29 20:35:09 +00:00
Nawaz Dhandala
a37bdb303d refactor(logs-viewer): simplify empty-state copy, remove decorative '>' and tone down text colors 2025-10-29 20:33:31 +00:00
Nawaz Dhandala
860af1bbf3 refactor(logs-viewer): polish empty-state layout and styling
Replace bare empty message with a centered card-style panel:
- add full-height centered wrapper with slate background
- constrain width, add rounded border, padding and inner shadow
- update typography to monospace, uppercase tracking and emerald accent
- tweak spacing and muted text color for helper copy
2025-10-29 20:30:26 +00:00
Nawaz Dhandala
d5e72c1af2 refactor(logs-viewer): normalize formatting and tidy JSX
- Clean up multiline signatures and expressions for readability
- Standardize JSX tag formatting and expanded-content rendering (explicit return)
- Minor whitespace/indentation tweaks in LogsViewer, LogsTable, LogDetailsPanel, and Dashboard LogsViewer

No functional changes.
2025-10-29 20:29:07 +00:00
Nawaz Dhandala
6cc6fc4bf1 refactor(logs-viewer): polish LogDetailsPanel layout, surface cards, badges and trace/span links 2025-10-29 20:27:50 +00:00
Nawaz Dhandala
f890f24650 refactor(logs-viewer): use icon sort indicators and refine table styling
- replace text-based sort markers with Icon (Chevron/ArrowUpDown) and add helper funcs
- adjust table/header/tbody classes (dividers, background, text colors)
- tweak row hover/selected styles and message/service text colors for better contrast
- update small typography and trace/span color for consistency
2025-10-29 20:22:34 +00:00
Nawaz Dhandala
d077e55241 refactor(logs-viewer): add pagination & sorting API, move sort controls to table headers
- Add server/client-aware pagination & sorting to LogsViewer (props: totalCount, page, pageSize, onPageChange, onPageSizeChange, sortField, sortOrder, onSortChange)
- Implement client-side sort fallback, severity-weight sorting and stable time sorting
- Move sort UI into LogsTable column headers and remove autoscroll / toolbar sort buttons
- Introduce internal page/size/sort state, reset behavior on filter/apply, and improved displayedLogs handling
- Update page size defaults and options (DEFAULT_PAGE_SIZE=100, PAGE_SIZE_OPTIONS=[100,250,500,1000])
- Wire Dashboard viewer to new API (pass totalCount, page, pageSize, sort handlers) and adjust realtime fetch logic
- Reduce default page limit usages from 250 to 100
2025-10-29 20:07:59 +00:00
Nawaz Dhandala
a4b7c99b8a refactor(logs-viewer): replace gradients with solid backgrounds and enable log message wrapping 2025-10-29 19:18:06 +00:00
Nawaz Dhandala
671be425ae refactor(logs-viewer): render log details inline and unify panel variants
- Add renderExpandedContent prop to LogsTable and render LogDetailsPanel inline for expanded rows
- Introduce "embedded" variant in LogDetailsPanel and extract container/header/card classes for shared styling
- Update table and surrounding container styles (rounded, gradients, backdrop) and add a click-to-open hint banner
- Remove standalone selectedLog memo and the separate details pane UI; use selectedLogId to control inline expansion
2025-10-29 19:01:53 +00:00
Nawaz Dhandala
d2d7a51842 Merge branch 'master' of https://github.com/OneUptime/oneuptime 2025-10-29 18:24:49 +00:00
Simon Larsen
1142a20d64 refactor(logs-viewer): tighten types and clean up formatting across components
- Add explicit type annotations for callbacks, helpers and theme (SeverityTheme)
- Strengthen severityTheme getSeverityTheme signature and consume typed return
- Remove unused catch variables and mark unused params where applicable
- Minor JSX/formatting tweaks and whitespace cleanup in table, pagination, details panel
- Small import/format fix in Execute.ts
2025-10-29 18:02:19 +00:00
Simon Larsen
8d0d7dc759 refactor(logs-viewer): modularize viewer into table, pagination and details panel
- Remove legacy LogItem and the old scroll-based monolithic layout.
- Add modular components under LogsViewer/components:
  - LogsTable (tabular list view, row selection, copy actions)
  - LogDetailsPanel (expanded details, copy buttons, trace/span links)
  - LogsViewerToolbar (autoscroll toggle, sort controls, summary)
  - LogsPagination (page controls & page-size selector)
  - LogsFilterCard (filters wrapper using FiltersForm)
  - SeverityBadge + severityTheme (centralized severity styling)
- Replace manual scroll alignment with page-based auto-scroll and safer pagination logic.
- Preserve getTraceRoute/getSpanRoute behavior and filter lifecycle (attributes loading, apply filters).
- Improve state handling (selection, pagination, page size, service map loading) and reduce component complexity.
2025-10-29 17:52:26 +00:00
Simon Larsen
cedf06ba42 chore(ci): schedule npm-audit-fix workflow and create PR via action
Switch workflow to run on a daily schedule (and via workflow_dispatch) and
replace direct git commit/push steps with peter-evans/create-pull-request to
open changes as a PR instead of pushing to the default branch.
2025-10-29 17:02:50 +00:00
Nawaz Dhandala
b347e18749 chore: update package-locks — add deps, bump versions & sync subdeps
- Update lockfiles for root, TestServer, Worker and Workflow
- Add new/top-level packages and types:
  - @simplewebauthn/server, archiver, botbuilder
  - @types/archiver
- Bump notable package versions:
  - axios, nodemailer, playwright, react-syntax-highlighter
- Sync a large set of transitive dependency upgrades:
  - @babel/* (code-frame, parser, template, types, helpers, helper-*), brace-expansion, braces, fill-range, micromatch, picocolors, cross-spawn, to-regex-range and others
- Remove/clean outdated lock entries (e.g. to-fast-properties removed where unnecessary)
- Add/fix license fields for several packages in the lockfiles
- General lockfile normalization to ensure consistent subdependency versions across packages

This keeps dependency trees aligned across monorepo packages and pulls in recent bug/security fixes from transitive upgrades.
2025-10-29 16:43:36 +00:00
Nawaz Dhandala
50e9a53547 chore(ci): don't mark whole run as failed when npm audit fix errors; only report the error 2025-10-29 16:26:40 +00:00
Nawaz Dhandala
d0de004498 docs(devpromps): fix typo in TerraformPrompt.md and add note to avoid editing generated provider code 2025-10-29 16:24:51 +00:00