App icon indicating copy to clipboard operation
App copied to clipboard

Show configured report columns as fields in the single-expense report and expense views

Open melvin-bot[bot] opened this issue 2 months ago • 60 comments

Problem

Admins can configure which columns display on the report (list) view of a multi-expense report — for example, Category GL code, Exchange rate, or MCC. That configuration doesn't carry into the single-expense report view or the individual expense view, so clicking into an expense shows less information than the row you clicked. Admins have asked for these fields repeatedly on customer calls.

Solution

Follow whatever column preferences are already configured for the report view, and surface that same data as additional fields:

  • Single-expense report view: show the configured columns as fields for that expense.
  • Expense view: show the configured columns as additional fields when you click into an expense from a report.

The data is already available (it renders in the parent report view), so this should mostly be a matter of adding rows rather than building a new editor.

Notes

  • A vertical list of fields can hold more than a horizontally scrolling table, so fitting the extra fields shouldn't be a constraint.
  • An alternative discussed was a per-user "view single-expense reports in list view" toggle (with a POC build). That's worth revisiting if the field-based approach doesn't cover the need, but the agreed direction here is to add the fields.
  • Design input welcome on ordering and how many extra fields to show before it gets noisy.

Reported in Slack.

Issue OwnerCurrent Issue Owner: @QichenZhu

melvin-bot[bot] avatar Sep 16 '26 08:09 melvin-bot[bot]

Triggered auto assignment to @shawnborton (Design), see these Stack Overflow questions for more details.

melvin-bot[bot] avatar Sep 16 '26 11:09 melvin-bot[bot]

I think the main consideration here is we probably just need some kind of "Edit fields" button on the expense view? I would probably put that in the More menu for now as I don't think we have a great place for it otherwise.

Or what exactly are you thinking we need here from a design/mockup perspective?

shawnborton avatar Sep 16 '26 12:09 shawnborton

I agree, I think we'd just make this available in More.

JmillsExpensify avatar Sep 16 '26 12:09 JmillsExpensify

I think the main consideration here is we probably just need some kind of "Edit fields" button on the expense view? I would probably put that in the More menu for now as I don't think we have a great place for it otherwise.

I like that idea.

flaviadefaria avatar Sep 16 '26 13:09 flaviadefaria

So just roughly mocking up this idea here... I think maybe the best place to put this option would be in the More menu, but what should we call it? I have customize view for now, but it might be nice to find harmony between the expense/one-expense report view and how we call it "Custom columns" elsewhere

Image

Then I assume we'll launch a similar draggable row experience. I mean technically, you should be able to reorder anything?

Image

This menu above is going to get a little insane for the one-expense report view though, because in theory we need to show options for both reports AND expenses.

Then if you add any custom columns, I assume they are just read-only rows:

Image

Let me know if that is enough to get the convo started! cc @Expensify/design for eyes, Fig here

shawnborton avatar Sep 18 '26 14:09 shawnborton

With the one-expense view still intact, I don't see a neater solution. I like the reuse and it solves the problem at least.

dubielzyk-expensify avatar Sep 20 '26 22:09 dubielzyk-expensify

I agree, I can't think of a better way to implement this. Should I just add the external label?

flaviadefaria avatar Sep 21 '26 11:09 flaviadefaria

@trjExpensify who worked on the original custom columns implementation? Maybe they would be a good candidate for this before we hit the External label?

shawnborton avatar Sep 21 '26 12:09 shawnborton

Really small thing, though should the options be Customize view and then View details. It slightly throws me off, the repetition of view.

JmillsExpensify avatar Sep 21 '26 12:09 JmillsExpensify

Really small thing, though should the options be Customize view and then View details. It slightly throws me off, the repetition of view.

Should we call this Customize fields for the one-expense view? Any better ideas?

I have customize view for now, but it might be nice to find harmony between the expense/one-expense report view and how we call it "Custom columns" elsewhere

I agree this would be nice, but these just feel like pretty different things at the moment. šŸ¤”

dannymcclain avatar Sep 21 '26 13:09 dannymcclain

I like Customize fields for the one-expense view šŸ‘

flaviadefaria avatar Sep 21 '26 13:09 flaviadefaria

Same, I can get down with that šŸ‘

shawnborton avatar Sep 21 '26 13:09 shawnborton

@trjExpensify who worked on the original custom columns implementation? Maybe they would be a good candidate for this before we hit the External label?

Erm, @JS00001 and @luacmartins used the project as a sprint last year. I don't recall us outsourcing it... šŸ¤”

trjExpensify avatar Sep 21 '26 13:09 trjExpensify

Got it. Maybe we go directly to the C+ room and look for a volunteer then?

shawnborton avatar Sep 21 '26 13:09 shawnborton

Nice, Customize fields works for me too.

JmillsExpensify avatar Sep 21 '26 13:09 JmillsExpensify

We can find a contributor to help with this. @QichenZhu and @brunovjk helped review every custom columns PR during this sprint, so maybe one of them want to implement and one wants to review? I'm also happy to take internal review here

@brunovjk @QichenZhu would you want to help with this project?

JS00001 avatar Sep 21 '26 13:09 JS00001

Great! I’d be happy to participate, implement or review. Thanks.

brunovjk avatar Sep 21 '26 13:09 brunovjk

@brunovjk, assigning you here for implementation.

flaviadefaria avatar Sep 21 '26 16:09 flaviadefaria

so maybe one of them want to implement and one wants to review?

@brunovjk, assigning you here for implementation.

Thanks! So I can do the review then?

QichenZhu avatar Sep 22 '26 02:09 QichenZhu

Sounds great!

JS00001 avatar Sep 22 '26 11:09 JS00001