(ctx context.Context, tabId string)
| 72 | } |
| 73 | |
| 74 | func GetLayoutIdForTab(ctx context.Context, tabId string) (string, error) { |
| 75 | tabObj, err := wstore.DBGet[*waveobj.Tab](ctx, tabId) |
| 76 | if err != nil { |
| 77 | return "", fmt.Errorf("unable to get layout id for given tab id %s: %w", tabId, err) |
| 78 | } |
| 79 | return tabObj.LayoutState, nil |
| 80 | } |
| 81 | |
| 82 | func QueueLayoutAction(ctx context.Context, layoutStateId string, actions ...waveobj.LayoutActionData) error { |
| 83 | layoutStateObj, err := wstore.DBGet[*waveobj.LayoutState](ctx, layoutStateId) |
no test coverage detected