Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(client): modules page with basic features set #439

Merged
merged 19 commits into from
Oct 5, 2023

Conversation

EdwardIrby
Copy link
Contributor

@EdwardIrby EdwardIrby commented Oct 4, 2023

  • adds basic zoom to logic for verbs in the viz
  • adds update styling
  • adds timeline
  • adds verb schemas and calls tabbed panel

note: there still some interactions and sizing on the svg I need to tighten up

@EdwardIrby
Copy link
Contributor Author

Screen.Recording.2023-10-04.at.1.42.59.PM.mov

@EdwardIrby EdwardIrby changed the title Eirby/modules zoom to module or verb feat(client): modules page with basic features set Oct 4, 2023
Comment on lines +23 to +26
export const ModulesRequests: React.FC<{
className?: string
modules: Module[]
}> = ({ className, modules }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is good for now, but makes me think we might want a timeline component that we can pass in events to in the future so we don't have to duplicate all this code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed!

Comment on lines 24 to 25
const VerbForm = ({ module, verb }: Props) => {
const client = useClient(VerbService)
Copy link
Collaborator

Choose a reason for hiding this comment

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

There's a VerbForm component in the project today, would that work for this?

Copy link
Contributor Author

@EdwardIrby EdwardIrby Oct 5, 2023

Choose a reason for hiding this comment

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

It should work for now. I want to style the Editor to look better in the panel later. I'll switch for now

Comment on lines 10 to 15
interface MapValue {
deploymentName: string
id: string
verbs: Set<VerbId>
queriedVerbs: Set<VerbId>
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

MapValue seems a bit generic, is there a better name we could use here? Maybe like DeploymentVerbs or something? I'm cool if this makes sense as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Honestly I started generic and never swapped in something better to describe it. Let's rename.

Comment on lines +33 to +36
const filters: EventsQuery_Filter[] = []
if (deployments.length) {
filters.push(modulesFilter(deployments))
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This component is named ModuleRequests, so I just want to point out this is getting all events for a module. This would likely include Logs, Calls, Deployments etc. Is that what you're looking for here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the moment yes. I need to site down and and figure out how to move to a more request trace based log like in the wireframes. Talk about it tomorrow?

@EdwardIrby EdwardIrby merged commit 47fac31 into main Oct 5, 2023
@EdwardIrby EdwardIrby deleted the eirby/modules-zoom-to-module-or-verb branch October 5, 2023 02:04
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