generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add decl pages for topics and subscriptions (#2662)
Issue: #2616 All the remains now is FSM.
- Loading branch information
Showing
4 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
frontend/console/src/features/modules/decls/SubscriptionPanel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { Subscription } from '../../../protos/xyz/block/ftl/v1/schema/schema_pb' | ||
import { PanelHeader } from './PanelHeader' | ||
import { RefLink } from './TypeEl' | ||
|
||
export const SubscriptionPanel = ({ value, moduleName, declName }: { value: Subscription; moduleName: string; declName: string }) => { | ||
return ( | ||
<div className='py-2 px-4'> | ||
<PanelHeader exported={false} comments={value.comments}> | ||
Subscription: {moduleName}.{declName} | ||
</PanelHeader> | ||
<div className='text-sm my-4'> | ||
To Topic: <RefLink r={value.topic} /> | ||
</div> | ||
</div> | ||
) | ||
} |
16 changes: 16 additions & 0 deletions
16
frontend/console/src/features/modules/decls/TopicPanel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { Topic } from '../../../protos/xyz/block/ftl/v1/schema/schema_pb' | ||
import { PanelHeader } from './PanelHeader' | ||
import { TypeEl } from './TypeEl' | ||
|
||
export const TopicPanel = ({ value, moduleName, declName }: { value: Topic; moduleName: string; declName: string }) => { | ||
return ( | ||
<div className='py-2 px-4'> | ||
<PanelHeader exported={value.export} comments={value.comments}> | ||
Topic: {moduleName}.{declName} | ||
</PanelHeader> | ||
<div className='text-sm my-4'> | ||
Event Type: <TypeEl t={value.event} /> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters