Skip to content

feat(endpoint): implement endpoint view (/u/:endpoint_id)#77

Merged
benStre merged 8 commits intorelease/0.0.1from
feature/endpoint-view
Mar 12, 2026
Merged

feat(endpoint): implement endpoint view (/u/:endpoint_id)#77
benStre merged 8 commits intorelease/0.0.1from
feature/endpoint-view

Conversation

@anmol-virk
Copy link
Collaborator

@anmol-virk anmol-virk commented Mar 4, 2026

Summary

Adds a new Endpoint View to the workbench that allows inspecting a specific endpoint via the route:

'/u/:endpoint_id'

The view provides an overview of endpoint metadata, public interfaces, and documentation.

Features

  • Added EndpointView route (/u/:endpoint_id)

  • Implemented endpoint information sections:

    • Endpoint name
    • Endpoint description / profile
    • Endpoint fingerprint (with download support)
  • Added visualization of exposed pointers

  • Implemented public interface methods documentation

  • Added list of public interfaces with properties

  • Added Markdown rendering for endpoint documentation

Components

New components added under:

'src/components/endpoint/'

  • EndpointView.vue
  • EndpointHeader.vue
  • EndpointFingerprint.vue
  • EndpointPointers.vue
  • EndpointMethods.vue
  • EndpointInterfaces.vue
  • EndpointDocs.vue

These components separate concerns for better maintainability.

Technical Notes

  • Added Markdown rendering using markdown-it
  • Endpoint data structure currently uses mock/runtime data
  • Designed to integrate with the existing DATE X runtime later

Router

New route added:

'/u/:endpoint_id'

which loads EndpointView.vue.

@anmol-virk anmol-virk marked this pull request as ready for review March 4, 2026 13:43
@jonasstrehle
Copy link
Member

Please also rebase this branch to release/v0.0.1, there is a conflict in the router/index.ts @anmol-virk

@jonasstrehle jonasstrehle marked this pull request as draft March 5, 2026 13:37
@anmol-virk anmol-virk force-pushed the feature/endpoint-view branch from d07978f to ac4dcb5 Compare March 6, 2026 09:26
@anmol-virk
Copy link
Collaborator Author

-Added /u/:endpoint_id route to router/index.ts

-- EndpointView.vue

-- New page component at /u/:endpoint_id
-- Async fetchEndpointInfo() stub — will call Datex.Runtime.execute("#public") once runtime is available
-- Endpoint type tag next to the name — me, local, anonymous, named — derived from the endpoint ID pattern (@@Local → local, @@ + hex → anonymous, @ + name → named, matches current runtime endpoint → me)
-- Uses shared comhub.endpoint from useComHub.ts composable to determine if the viewed endpoint is "me"

-- EndpointFingerprint.vue

-- Added endpointId prop
-- Download button now names the file after the endpoint (e.g. @@server-public-key.json)
-- Downloads the public key, not just the raw fingerprint string

@anmol-virk anmol-virk marked this pull request as ready for review March 10, 2026 21:48
@anmol-virk anmol-virk requested a review from jonasstrehle March 12, 2026 12:07
@benStre benStre merged commit 3c84138 into release/0.0.1 Mar 12, 2026
1 check 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.

3 participants