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

feature: add image support for Format and Table #268

Draft
wants to merge 15 commits into
base: chore/add-accessors
Choose a base branch
from

Conversation

etienneburdet
Copy link
Contributor

@etienneburdet etienneburdet commented Dec 3, 2024

Summary

The goal for this PR is to add image support for the table and the Format.
(Internal for Opendatasoft only) Associated Shortcut ticket: sc-.

Changes

I added a new format component ImageFormat, which is basically a mix of URL for the display and geo for the tooltip. The current maxWidth is a bit arbitrary, not sure customizable we want that.

I also added the FileRecord type to api-client, athough we don't have much typing on records yet. It's just useful at this point, so why not sharing it?

Review checklist

  • Description is complete
  • Commits respect the Conventional Commits Specification
  • 2 reviewers (1 if trivial)
  • Tests coverage has improved
  • Code is ready for a release on NPM

Copy link

github-actions bot commented Dec 3, 2024

Coverage after merging feature/sc-46281/table-sdk-display-images into chore/add-accessors will be

94.71%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   index.ts100%100%100%100%
src/client
   constants.ts100%100%100%100%
   error.ts100%100%100%100%
   index.ts84.14%74.03%100%95.31%102–103, 124, 13, 146, 148, 148–149, 15, 15, 151, 162, 169, 169, 17, 17, 171, 176, 179, 182, 184, 52, 82
   types.ts100%100%100%100%
src/odsql
   clauses.ts82.61%71.43%80%90.91%14, 32, 42
   index.ts92.05%83.72%95.74%94.19%111, 146, 25, 28, 56–57, 57, 57–58, 68, 78–79

Copy link

github-actions bot commented Dec 4, 2024

Coverage after merging feature/sc-46281/table-sdk-display-images into chore/add-accessors will be

94.71%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   index.ts100%100%100%100%
src/client
   constants.ts100%100%100%100%
   error.ts100%100%100%100%
   index.ts84.14%74.03%100%95.31%102–103, 124, 13, 146, 148, 148–149, 15, 15, 151, 162, 169, 169, 17, 17, 171, 176, 179, 182, 184, 52, 82
   types.ts100%100%100%100%
src/odsql
   clauses.ts82.61%71.43%80%90.91%14, 32, 42
   index.ts92.05%83.72%95.74%94.19%111, 146, 25, 28, 56–57, 57, 57–58, 68, 78–79

@etienneburdet etienneburdet force-pushed the feature/sc-46281/table-sdk-display-images branch from 2d38abd to 1d6f908 Compare December 4, 2024 15:32
Copy link

github-actions bot commented Dec 4, 2024

Coverage after merging feature/sc-46281/table-sdk-display-images into chore/add-accessors will be

94.71%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   index.ts100%100%100%100%
src/client
   constants.ts100%100%100%100%
   error.ts100%100%100%100%
   index.ts84.14%74.03%100%95.31%102–103, 124, 13, 146, 148, 148–149, 15, 15, 151, 162, 169, 169, 17, 17, 171, 176, 179, 182, 184, 52, 82
   types.ts100%100%100%100%
src/odsql
   clauses.ts82.61%71.43%80%90.91%14, 32, 42
   index.ts92.05%83.72%95.74%94.19%111, 146, 25, 28, 56–57, 57, 57–58, 68, 78–79

@etienneburdet etienneburdet force-pushed the chore/add-accessors branch 2 times, most recently from 76b16fe to c3334ba Compare December 10, 2024 09:27
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.

1 participant